1. 20 Nov, 2002 2 commits
  2. 19 Nov, 2002 1 commit
  3. 14 Nov, 2002 1 commit
    • mjs's avatar
      WebKit: · 6a96e2b0
      mjs authored
      	Change things so the public interface to loading is loadRequest:
      	and everything else is private.
      
              * Plugins.subproj/WebBaseNetscapePluginView.m:
              (-[WebBaseNetscapePluginView loadRequest:inTarget:withNotifyData:]):
              * Plugins.subproj/WebPluginController.m:
              (-[WebPluginController showURL:inFrame:]):
              * WebView.subproj/WebController.h:
              * WebView.subproj/WebController.m:
              (-[WebController init]):
              * WebView.subproj/WebControllerPrivate.m:
              (-[WebController _createFrameNamed:inParent:allowsScrolling:]):
              (-[WebController _downloadURL:toPath:]):
              * WebView.subproj/WebFrame.h:
              * WebView.subproj/WebFrame.m:
              (-[WebFrame init]):
              (-[WebFrame initWithName:webView:controller:]):
              (-[WebFrame loadRequest:]):
              (-[WebFrame reload]):
              * WebView.subproj/WebFramePrivate.h:
              * WebView.subproj/WebFramePrivate.m:
              (-[WebFrame _timedLayout:]):
              (-[WebFrame _clearProvisionalDataSource]):
              (-[WebFrame _loadItem:fromItem:withLoadType:]):
              (-[WebFrame _loadRequest:triggeringAction:]):
              (-[WebFrame _reloadAllowingStaleDataWithOverrideEncoding:]):
              (-[WebFrame _itemForRestoringDocState]):
              (-[WebFrame _setProvisionalDataSource:]):
              (-[WebFrame _startLoading]):
              (-[WebFrame _downloadRequest:toPath:]):
              * WebView.subproj/WebMainResourceClient.m:
              (-[WebMainResourceClient handle:willSendRequest:]):
              (-[WebMainResourceClient stopLoadingAfterContentPolicy]):
              (-[WebMainResourceClient handle:didReceiveResponse:]):
              * WebView.subproj/WebView.m:
              (-[WebView concludeDragOperation:]):
      
      WebBrowser:
      
      	Change things so the public interface to loading is loadRequest:
      	and everything else is private.
      
              * BrowserDocument.m:
              (-[BrowserDocument goToRequest:]):
              * BrowserWebController.m:
              (-[BrowserWebController initWithBrowserDocument:]):
              * Debug/SnippetController.h:
              * Debug/SnippetController.m:
              (-[SnippetController dealloc]):
              (-[SnippetController windowWillClose:]):
              (-[SnippetController load]):
              (-[SnippetController loadComplete]):
              (-[SnippetController mainDataSource]):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@2683 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      6a96e2b0
  4. 01 Nov, 2002 2 commits
    • darin's avatar
      * Plugins.subproj/WebBaseNetscapePluginView.m: (-[WebBaseNetscapePluginView sendEvent:]): · db0964f7
      darin authored
      	Fixed uninitialized variable problem.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@2539 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      db0964f7
    • cblu's avatar
      WebFoundation: · fb4f8550
      cblu authored
              * Misc.subproj/WebError.m:
      
      WebKit:
      
      	- Moved plug-in error handling to WebResourceLoadDelegate
      	- Report plug-in load failure, java load failure, and plug-in not found errors.
      	- Added WebPluginError, subclass of WebError.
      	- Attempted fix: 3090675 - Standalone WMP (Window Media Player) content crashes Alexander
      
              * English.lproj/Localizable.strings:
              * Misc.subproj/WebKitErrors.h:
              * Plugins.subproj/WebBaseNetscapePluginView.m:
              (-[WebBaseNetscapePluginView sendEvent:]): don't send event to null function
              * Plugins.subproj/WebNetscapePluginDocumentView.m:
              (-[WebNetscapePluginDocumentView setDataSource:]): report plug-in load failure
              * Plugins.subproj/WebNullPluginView.h:
              * Plugins.subproj/WebNullPluginView.m: take a WebPluginError
              (-[WebNullPluginView dealloc]):
              (-[WebNullPluginView viewDidMoveToWindow]):
              * Plugins.subproj/WebPluginError.h: Added.
              * Plugins.subproj/WebPluginError.m: Added.
              (-[WebPluginErrorPrivate dealloc]):
              (-[WebPluginError dealloc]):
              (-[WebPluginError pluginPageURL]):
              (-[WebPluginError pluginName]):
              (-[WebPluginError MIMEType]):
              * WebCoreSupport.subproj/WebBridge.m:
              (-[WebBridge viewForPluginWithURL:attributes:baseURL:MIMEType:]): report plug-in load failure
              (-[WebBridge viewForJavaAppletWithFrame:attributes:baseURL:]): report plug-in load failure
              * WebKit.pbproj/project.pbxproj:
              * WebView.subproj/WebController.m:
              (-[WebResourceLoadDelegate pluginFailedWithError:dataSource:]): added, does nothing
              * WebView.subproj/WebControllerPolicyDelegate.h:
              * WebView.subproj/WebResourceLoadDelegate.h:
              * WebView.subproj/WebView.m:
              (+[WebView initialize]): added new error strings
      
      WebBrowser:
      
      	- Moved plug-in error handling to WebResourceLoadDelegate
      
              * BrowserWebController.m:
              * English.lproj/Localizable.strings:
              * LoadProgressMonitor.m:
              (-[LoadProgressMonitor pluginNotFoundSheetEnded:returnCode:contextInfo:]):
              (-[LoadProgressMonitor pluginFailedWithError:dataSource:]): display special sheets for new errors.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@2532 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      fb4f8550
  5. 25 Oct, 2002 2 commits
    • cblu's avatar
      - Fix case where we would name a new window _blank · ec5c44a4
      cblu authored
      	- If a data source can't be created for a plug-in request, don't create the frame or open a window.
      	- cleaned up plug-in stream notifications
      
              * Plugins.subproj/WebBaseNetscapePluginView.h:
              * Plugins.subproj/WebBaseNetscapePluginView.m:
              (-[WebBaseNetscapePluginView initWithFrame:]): create streamNotifications dict
              (-[WebBaseNetscapePluginView dealloc]): release streamNotifications dict
              (-[WebBaseNetscapePluginView frameStateChanged:]): cleaned up
              (-[WebBaseNetscapePluginView loadRequest:inTarget:withNotifyData:]): create data source before frame
              * Plugins.subproj/WebPluginController.m:
              (-[WebPluginController showURL:inFrame:]): create data source before frame
              * WebView.subproj/WebControllerPrivate.m:
              (-[WebController _setTopLevelFrameName:]): don't allow _blank frames
              * WebView.subproj/WebFrame.m:
              (-[WebFrame findOrCreateFramedNamed:]): no need to check for _blank
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@2471 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ec5c44a4
    • cblu's avatar
      WebCore: · 20be1bdc
      cblu authored
      	Cleaned up the frame searching shenanigans. Things are much cleaner and clearer now.
      
              * kwq/KWQKHTMLPartBrowserExtension.mm:
              (KHTMLPartBrowserExtension::createNewWindow): call findFrameNamed
              * kwq/KWQKHTMLPartImpl.mm:
              (KWQKHTMLPartImpl::bridgeForFrameName): call findOrCreateFramedNamed
              * kwq/WebCoreBridge.h:
      
      WebKit:
      
      	Cleaned up the frame searching shenanigans. Things are much cleaner and clearer now.
      
              * Plugins.subproj/WebBaseNetscapePluginView.m:
              (-[WebBaseNetscapePluginView loadRequest:inTarget:withNotifyData:]): call findOrCreateFramedNamed
              * Plugins.subproj/WebPluginController.m:
              (-[WebPluginController showURL:inFrame:]): call findOrCreateFramedNamed
              * WebCoreSupport.subproj/WebBridge.m:
              (-[WebBridge childFrames]): moved
              (-[WebBridge mainFrame]): moved
              (-[WebBridge findOrCreateFramedNamed:]): call findOrCreateFramedNamed on the frame
              (-[WebBridge pluginViewWithPackage:attributes:baseURL:]): call _pluginController
              * WebView.subproj/WebControllerPrivate.m:
              (-[WebController _frameInThisWindowNamed:]): call _descendantFrameNamed
              * WebView.subproj/WebFrame.h:
              * WebView.subproj/WebFrame.m:
              (-[WebFrame findFrameNamed:]): was frameNamed. First checks special-case frame names, descendant frames, then the whole controller, then other controllers.
              (-[WebFrame findOrCreateFramedNamed:]): calls findFrameNamed, opens new window if necessary
              * WebView.subproj/WebFramePrivate.h:
              * WebView.subproj/WebFramePrivate.m:
              (-[WebFrame _descendantFrameNamed:]): searches children, children's children etc.
              (-[WebFrame _pluginController]): this method needed an "_"
              * WebView.subproj/WebHTMLView.m:
              (-[WebHTMLView addSubview:]): call _pluginController
              * WebView.subproj/WebHTMLViewPrivate.m:
              (-[WebHTMLView _elementAtPoint:]): no need to special case for "_blank" since findFrameNamed will return nil for that name
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@2469 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      20be1bdc
  6. 23 Oct, 2002 1 commit
    • cblu's avatar
      WebCore: · 0a2d9abd
      cblu authored
      	Call the arguments for plug-ins "attributes" everywhere.
      
              * kwq/KWQKHTMLPartImpl.mm:
              (KWQKHTMLPartImpl::createPart):
              * kwq/KWQKJavaAppletWidget.mm:
              (KJavaAppletWidget::showApplet):
              * kwq/WebCoreBridge.h:
      
      WebKit:
      
      	Call the arguments for plug-ins "attributes" everywhere.
      
              * Plugins.subproj/WebBaseNetscapePluginView.h:
              * Plugins.subproj/WebBaseNetscapePluginView.m:
              (-[WebBaseNetscapePluginView setAttributes:]):
              * Plugins.subproj/WebNetscapePluginEmbeddedView.h:
              * Plugins.subproj/WebNetscapePluginEmbeddedView.m:
              (-[WebNetscapePluginEmbeddedView initWithFrame:plugin:URL:baseURL:mime:attributes:]):
              * Plugins.subproj/WebNullPluginView.h:
              * Plugins.subproj/WebNullPluginView.m:
              (-[WebNullPluginView initWithFrame:mimeType:attributes:]):
              (-[WebNullPluginView drawRect:]):
              * Plugins.subproj/WebPluginController.h:
              * Plugins.subproj/WebPluginController.m:
              (-[WebPluginController initWithWebFrame:]):
              (-[WebPluginController dealloc]):
              (-[WebPluginController addPluginView:]):
              * Plugins.subproj/WebPluginPackage.h:
              * Plugins.subproj/WebPluginPackage.m:
              (-[WebPluginPackage viewFactory]):
              * WebCoreSupport.subproj/WebBridge.m:
              (-[WebBridge pluginViewWithPackage:attributes:baseURL:]):
              (-[WebBridge viewForPluginWithURL:attributes:baseURL:serviceType:]):
              (-[WebBridge viewForJavaAppletWithFrame:attributes:baseURL:]):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@2439 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0a2d9abd
  7. 22 Oct, 2002 1 commit
    • cblu's avatar
      - Moved things around to make room for new plug-in API. · c885e864
      cblu authored
      	- Renamed WebNetscapePlugin to WebNetscapePluginPackage.
      	- Renamed WebNetscapePluginDatabase to WebPluginDatabase.
      
              * Plugins.subproj/WebBaseNetscapePluginStream.m:
              (-[WebBaseNetscapePluginStream setPluginPointer:]):
              * Plugins.subproj/WebBaseNetscapePluginView.h:
              * Plugins.subproj/WebBaseNetscapePluginView.m:
              (-[WebBaseNetscapePluginView plugin]):
              * Plugins.subproj/WebNetscapePluginDocumentView.m:
              (-[WebNetscapePluginDocumentView setDataSource:]):
              * Plugins.subproj/WebNetscapePluginEmbeddedView.h:
              * Plugins.subproj/WebNetscapePluginEmbeddedView.m:
              (-[WebNetscapePluginEmbeddedView initWithFrame:plugin:URL:baseURL:mime:arguments:]):
              * Plugins.subproj/WebNetscapePluginNullEventSender.h: Added.
              * Plugins.subproj/WebNetscapePluginNullEventSender.m: Added.
              (-[WebNetscapePluginNullEventSender initWithPluginView:]):
              (-[WebNetscapePluginNullEventSender dealloc]):
              (-[WebNetscapePluginNullEventSender sendNullEvents]):
              (-[WebNetscapePluginNullEventSender stop]):
              * Plugins.subproj/WebNetscapePluginPackage.h: Added.
              * Plugins.subproj/WebNetscapePluginPackage.m: Added.
              (-[WebNetscapePluginPackage openResourceFile]):
              (-[WebNetscapePluginPackage closeResourceFile:]):
              (-[WebNetscapePluginPackage stringForStringListID:andIndex:]):
              (-[WebNetscapePluginPackage getPluginInfo]):
              (-[WebNetscapePluginPackage stringByResolvingSymlinksAndAliasesInPath:]):
              (-[WebNetscapePluginPackage initWithPath:]):
              (-[WebNetscapePluginPackage load]):
              (-[WebNetscapePluginPackage unload]):
              (-[WebNetscapePluginPackage NPP_SetWindow]):
              (-[WebNetscapePluginPackage NPP_New]):
              (-[WebNetscapePluginPackage NPP_Destroy]):
              (-[WebNetscapePluginPackage NPP_NewStream]):
              (-[WebNetscapePluginPackage NPP_StreamAsFile]):
              (-[WebNetscapePluginPackage NPP_DestroyStream]):
              (-[WebNetscapePluginPackage NPP_WriteReady]):
              (-[WebNetscapePluginPackage NPP_Write]):
              (-[WebNetscapePluginPackage NPP_HandleEvent]):
              (-[WebNetscapePluginPackage NPP_URLNotify]):
              (-[WebNetscapePluginPackage NPP_GetValue]):
              (-[WebNetscapePluginPackage NPP_SetValue]):
              (-[WebNetscapePluginPackage NPP_Print]):
              (-[WebNetscapePluginPackage MIMEToExtensionsDictionary]):
              (-[WebNetscapePluginPackage extensionToMIMEDictionary]):
              (-[WebNetscapePluginPackage MIMEToDescriptionDictionary]):
              (-[WebNetscapePluginPackage name]):
              (-[WebNetscapePluginPackage filename]):
              (-[WebNetscapePluginPackage path]):
              (-[WebNetscapePluginPackage isLoaded]):
              (-[WebNetscapePluginPackage pluginDescription]):
              (-[WebNetscapePluginPackage description]):
              (functionPointerForTVector):
              (tVectorForFunctionPointer):
              * Plugins.subproj/WebPlugin.h: Removed.
              * Plugins.subproj/WebPlugin.m: Removed.
              * Plugins.subproj/WebPluginDatabase.h:
              * Plugins.subproj/WebPluginDatabase.m:
              (+[WebPluginDatabase installedPlugins]):
              (-[WebPluginDatabase pluginForMIMEType:]):
              (-[WebPluginDatabase pluginForExtension:]):
              (-[WebPluginDatabase pluginForFilename:]):
              (-[WebPluginDatabase MIMETypes]):
              (-[WebPluginDatabase init]):
              * Plugins.subproj/WebPluginNullEventSender.h: Removed.
              * Plugins.subproj/WebPluginNullEventSender.m: Removed.
              * WebCoreSupport.subproj/WebViewFactory.m:
              (-[WebViewFactory viewForPluginWithURL:serviceType:arguments:baseURL:]):
              (-[WebViewFactory pluginsInfo]):
              (-[WebViewFactory viewForJavaAppletWithFrame:baseURL:parameters:]):
              * WebKit.pbproj/project.pbxproj:
              * WebView.subproj/WebController.m:
              (+[WebController canShowMIMEType:]):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@2414 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c885e864
  8. 21 Oct, 2002 1 commit
  9. 20 Oct, 2002 1 commit
    • cblu's avatar
      Fixed: 3025868 - Plugin context menu disappears then reappears if you click off of it · 8179556f
      cblu authored
      	Also fixed some rare dragging weirdness in WebHTMLView. If you attempted to drag a plug-in after dragging an image, the image would drag again.
      
              * Plugins.subproj/WebBaseNetscapePluginView.m:
              (-[WebBaseNetscapePluginView mouseDragged:]): subclass and do nothing to prevent calling mouseDragged in WebHTMLView
              (-[WebBaseNetscapePluginView performKeyEquivalent:]): no changes to this method, removed menuForEvent, wasn't needed after all
              * Plugins.subproj/WebNetscapePluginStream.m:
              (-[WebNetscapePluginStream stop]): minor clean-up
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@2388 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8179556f
  10. 19 Oct, 2002 1 commit
  11. 16 Oct, 2002 1 commit
  12. 15 Oct, 2002 1 commit
    • darin's avatar
      WebCore: · 58af41be
      darin authored
      	WebCore support for using referrer even in loads that are not initiated
      	by WebCore itself.
      
              * kwq/KWQKHTMLPartBrowserExtension.mm:
              (KHTMLPartBrowserExtension::createNewWindow): Don't pass a referrer.
      	We get the referrer from the part.
      
              * kwq/KWQKHTMLPartImpl.h: Add a new referrer method that works on the
      	part, and remove the old one that got it from the URL arguments.
              * kwq/KWQKHTMLPartImpl.mm:
              (KWQKHTMLPartImpl::bridgeForFrameName): Don't pass a referrer when
      	creating a new window.
              (KWQKHTMLPartImpl::openURLRequest): Don't pass a referrer when doing a load.
              (KWQKHTMLPartImpl::urlSelected): Don't pass a referrer when doing a load.
              (KWQKHTMLPartImpl::createPart): Don't pass a referrer when creating a child
      	frame for this window.
              (KWQKHTMLPartImpl::submitForm): Don't pass a referrer when doing a load.
              (KWQKHTMLPartImpl::referrer): Added.
      
              * kwq/KWQLoaderImpl.mm: (KWQServeRequest): Don't pass a referrer when starting
      	a load.
              * kwq/WebCoreBridge.h: Add referrer method. Remove referrer parameter from
      	many other methods.
              * kwq/WebCoreBridge.mm: (-[WebCoreBridge referrer]): Added.
      
      WebKit:
      
      	- fixed 3062393 -- need to send proper referrer for "open in new window" menu items and keyboard shortcuts
      
              * WebCoreSupport.subproj/WebBridge.m:
              (-[WebBridge createWindowWithURL:frameName:]): Don't take a referrer parameter any more.
      	Get the referrer by calling to the other side of the bridge, instead.
              (-[WebBridge startLoadingResource:withURL:]): Ditto.
              (-[WebBridge loadURL:]): Ditto.
              (-[WebBridge postWithURL:data:contentType:]): Ditto.
              (-[WebBridge createChildFrameNamed:withURL:renderPart:allowsScrolling:marginWidth:marginHeight:]):
      	Ditto.
      
              * WebView.subproj/WebDefaultContextMenuDelegate.m:
              (-[WebDefaultContextMenuDelegate openNewWindowWithURL:]): Don't take a referrer parameter,
      	which was always nil anyway. Instead, get the referrer from the bridge.
              (-[WebDefaultContextMenuDelegate openLinkInNewWindow:]): Don't pass nil for referrer.
              (-[WebDefaultContextMenuDelegate openImageInNewWindow:]): Ditto.
              (-[WebDefaultContextMenuDelegate openFrameInNewWindow:]): Ditto.
      
              * WebView.subproj/WebHTMLViewPrivate.m:
              (-[WebHTMLView _continueAfterClickPolicyForEvent:]): Pass a referrer from the bridge, rather
      	than nil, for both WebClickPolicyOpenNewWindow and WebClickPolicyOpenNewWindowBehind.
      
              * Plugins.subproj/WebBaseNetscapePluginView.m:
              (-[WebBaseNetscapePluginView loadRequest:inTarget:withNotifyData:]): Add a FIXME.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@2336 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      58af41be
  13. 14 Oct, 2002 1 commit
    • cblu's avatar
      - Eliminated the dual-role behavior of WebPluginStream. Renamed... · f1fdc081
      cblu authored
      	- Eliminated the dual-role behavior of WebPluginStream. Renamed WebPluginStream to WebBaseNetscapePluginStream.
       WebNetscapePluginRepresentation, a subclass of WebNetscapePluginRepresentation, is the document representation for standalone plug-ins. WebNetscapePluginStream, also a subclass of WebNetscapePluginRepresentation, is the general plug-in stream loader for embedded plug-ins or plug-in requested streams.
      
      	23 plug-in source files with more likely to come!
      
              * Plugins.subproj/WebBaseNetscapePluginStream.h: Added.
              * Plugins.subproj/WebBaseNetscapePluginStream.m: Added.
              (-[WebBaseNetscapePluginStream dealloc]):
              (-[WebBaseNetscapePluginStream setPluginPointer:]):
              (-[WebBaseNetscapePluginStream setResponse:]):
              (-[WebBaseNetscapePluginStream receivedData:]):
              (-[WebBaseNetscapePluginStream receivedError:]):
              (-[WebBaseNetscapePluginStream finishedLoadingWithData:]):
              * Plugins.subproj/WebBaseNetscapePluginView.h:
              * Plugins.subproj/WebBaseNetscapePluginView.m:
              (-[WebBaseNetscapePluginView setWindow]):
              (-[WebBaseNetscapePluginView pluginPointer]):
              (-[WebBaseNetscapePluginView drawRect:]):
              (-[WebBaseNetscapePluginView loadRequest:inTarget:withNotifyData:]):
              * Plugins.subproj/WebNetscapePluginDocumentView.m:
              * Plugins.subproj/WebNetscapePluginRepresentation.h: Added.
              * Plugins.subproj/WebNetscapePluginRepresentation.m: Added.
              (-[WebNetscapePluginRepresentation setDataSource:]):
              (-[WebNetscapePluginRepresentation receivedData:withDataSource:]):
              (-[WebNetscapePluginRepresentation receivedError:withDataSource:]):
              (-[WebNetscapePluginRepresentation finishedLoadingWithDataSource:]):
              * Plugins.subproj/WebNetscapePluginStream.h: Added.
              * Plugins.subproj/WebNetscapePluginStream.m: Added.
              (-[WebNetscapePluginStream setCurrentURL:]):
              (-[WebNetscapePluginStream initWithRequest:pluginPointer:notifyData:]):
              (-[WebNetscapePluginStream dealloc]):
              (-[WebNetscapePluginStream start]):
              (-[WebNetscapePluginStream stop]):
              (-[WebNetscapePluginStream loadEnded]):
              (-[WebNetscapePluginStream handle:willSendRequest:]):
              (-[WebNetscapePluginStream handle:didReceiveResponse:]):
              (-[WebNetscapePluginStream handle:didReceiveData:]):
              (-[WebNetscapePluginStream handleDidFinishLoading:]):
              (-[WebNetscapePluginStream handle:didFailLoadingWithError:]):
              * Plugins.subproj/WebPluginDatabase.m:
              (-[WebNetscapePluginDatabase init]):
              * Plugins.subproj/WebPluginStream.h: Removed.
              * Plugins.subproj/WebPluginStream.m: Removed.
              * WebKit.pbproj/project.pbxproj:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@2312 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f1fdc081
  14. 11 Oct, 2002 1 commit
  15. 10 Oct, 2002 1 commit
    • cblu's avatar
      top level: · 4a800e29
      cblu authored
      	Fix typos.
      
              * Site/Internal/How-To/pc-os-installation.html:
              * Site/Internal/index.html:
      
      WebKit:
      
      	No need to send update event when activating/deactivating. This was as old workaround for the plug-in drawing problems.
      
              * Plugins.subproj/WebBaseNetscapePluginView.m:
              (-[WebBaseNetscapePluginView windowBecameKey:]):
              (-[WebBaseNetscapePluginView windowResignedKey:]):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@2301 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4a800e29
  16. 09 Oct, 2002 1 commit
    • darin's avatar
      WebCore: · c7a89cb8
      darin authored
      	- fixed 3069264 -- REGRESSION: windows created for links with
      	target=blank start out hidden (window menu only)
      
              * kwq/WebCoreBridge.h: Removed openNewWindowWithURL:referrer:frameName: and
      	added createWindowWithURL:referrer:frameName: and showWindow.
      
              * kwq/KWQKHTMLPartBrowserExtension.mm:
              (KHTMLPartBrowserExtension::createNewWindow): Call createWindowWithURL,
      	and then showWindow after the window is set up. Also change the code that
      	flips coordinates to always use the height of the first screen instead of
      	using the height of the screen the window is on, which sounds right, but
      	is wrong.
      
              * kwq/KWQKHTMLPartImpl.mm:
              (KWQKHTMLPartImpl::bridgeForFrameName): Call createWindowWithURL and then
      	showWindow in the case where we create a window.
              (KWQKHTMLPartImpl::urlSelected): Remove unused command-click code. The real
      	command-click code is in the browser now.
      
      WebKit:
      
      	WebKit support for creating windows and then showing them later
      	after setting them up.
      
              * WebCoreSupport.subproj/WebBridge.m:
              (-[WebBridge createWindowWithURL:referrer:frameName:]): Replaced the old
      	openNewWindowWithURL with this. It calls the new window operations delegate
      	method.
              (-[WebBridge showWindow]): Added. Calls the window operations delegate showWindow method.
              (-[WebBridge createChildFrameNamed:withURL:referrer:renderPart:allowsScrolling:marginWidth:marginHeight:]):
      	Call _createFrameNamed instead of createFrameNamed.
      
              * WebView.subproj/WebWindowOperationsDelegate.h: Replaced the openNewWindowWithURL
      	method with a new method named createWindowWithURL. Added showWindow and showWindowBehindFrontmost.
      
              * WebView.subproj/WebControllerPrivate.h: Renamed createFrameNamed to _createFrameNamed
      	and removed the data source parameter. Added _openNewWindowWithURL:referrer:behind:
      	for the convenience of those who used to call the window operations delegate directly
      	to open the window.
              * WebView.subproj/WebControllerPrivate.m:
              (-[WebController _createFrameNamed:inParent:allowsScrolling:]): Renamed, and removed
      	the data source parameter.
              (-[WebController _openNewWindowWithURL:referrer:behind:]): Added.
      
              * Plugins.subproj/WebBaseNetscapePluginView.m:
              (-[WebBaseNetscapePluginView loadRequest:inTarget:withNotifyData:]):
              * WebView.subproj/WebDefaultContextMenuDelegate.m:
              (-[WebDefaultContextMenuDelegate openNewWindowWithURL:referrer:]):
              * WebView.subproj/WebFrame.m: (-[WebFrame frameNamed:]):
              * WebView.subproj/WebHTMLViewPrivate.m:
              (-[WebHTMLView _continueAfterClickPolicyForEvent:]):
      	Use a private WebController method instead of calling the delegate directly,
      	because it now takes two method calls to create and display a new window.
      
              * Misc.subproj/WebNSViewExtras.m:
              * WebCoreSupport.subproj/WebSubresourceClient.m:
              * WebView.subproj/WebController.m:
              * WebView.subproj/WebDataSource.m:
              * WebView.subproj/WebFramePrivate.m:
              * WebView.subproj/WebHTMLView.m:
              * WebView.subproj/WebMainResourceClient.m:
              * WebView.subproj/WebPreferences.m:
              * WebView.subproj/WebView.m:
              * WebView.subproj/WebViewPrivate.m:
      	Tweaked comments.
      
      WebBrowser:
      
      	WebBrowser support for creating windows and then showing them later
      	after setting them up.
      
              * BrowserDocumentController.h: Add a new policy, CreateHiddenWindow.
              * BrowserDocumentController.m:
              (-[BrowserDocumentController _goToEachURL:referrer:windowPolicy:]):
      	Pass NO for display if policy is CreateHiddenWindow.
              (-[BrowserDocumentController tryMultipleURLs:windowPolicy:]): Ditto.
      
              * BrowserWebController.m:
              (-[BrowserWebController createWindowWithURL:referrer:]): Added. Like
      	the old openNewWindowWithURL method, but uses CreateHiddenWindow.
              (-[BrowserWebController showWindow]): Added. Tells the window controller
      	to show the window.
              (-[BrowserWebController showWindowBehindFrontmost]): Added. Tells the
      	window controllers to show the window after telling the document that
      	the window should open behind the frontmost.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@2291 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c7a89cb8
  17. 08 Oct, 2002 2 commits
    • darin's avatar
      - fixed 3069764 -- REGRESSION: Plug-ins sometimes don't respond to · 80589b3d
      darin authored
      	update events, causes disappearing
      
              * Plugins.subproj/WebBaseNetscapePluginView.m:
              (-[WebBaseNetscapePluginView drawRect:]): Set the visible region of the port to the
      	port bounds to work around the fact that NSWindow tries to help us by doing a
      	BeginUpdate call. This ensures we can draw where we think we are dirty, not just
      	where Carbon thinks we are dirty.
      
              * Plugins.subproj/WebNetscapePluginDocumentView.m: Tweak includes.
              * Plugins.subproj/WebNetscapePluginEmbeddedView.m: Tweak includes.
              * WebCoreSupport.subproj/WebBridge.m:
              (-[WebBridge openNewWindowWithURL:referrer:frameName:]): Tweak.
      
              * English.lproj/StringsNotToBeLocalized.txt: Update for recent changes.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@2288 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      80589b3d
    • cblu's avatar
      Minor plug-in code clean-up. · 233ca338
      cblu authored
              * Plugins.subproj/WebBaseNetscapePluginView.m:
              (-[WebBaseNetscapePluginView sendActivateEvent:]):
              (-[WebBaseNetscapePluginView sendUpdateEvent]):
              (-[WebBaseNetscapePluginView loadRequest:inTarget:withNotifyData:]):
              * Plugins.subproj/WebPluginStream.m:
              (-[WebNetscapePluginStream receivedData:]):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@2273 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      233ca338
  18. 02 Oct, 2002 1 commit
    • darin's avatar
      WebKit: · d1356935
      darin authored
      	More work on "open window behind".
      
              * WebView.subproj/WebControllerPolicyDelegate.h: Add new OpenNewWindowBehind
      	constants to the enums.
      
              * WebView.subproj/WebWindowOperationsDelegate.h: Add a behind: parameter to
      	the openNewWindowWithURL method.
      
              * WebView.subproj/WebHTMLViewPrivate.m:
              (-[WebHTMLView _continueAfterClickPolicyForEvent:]): In the new
      	WebClickPolicyOpenNewWindowBehind case, pass YES for behind.
      
              * Plugins.subproj/WebBaseNetscapePluginView.m:
              (-[WebBaseNetscapePluginView loadRequest:inTarget:withNotifyData:]):
              * WebCoreSupport.subproj/WebBridge.m:
              (-[WebBridge openNewWindowWithURL:referrer:frameName:]):
              * WebView.subproj/WebDefaultContextMenuDelegate.m:
              (-[WebDefaultContextMenuDelegate openNewWindowWithURL:referrer:]):
              * WebView.subproj/WebFrame.m:
              (-[WebFrame frameNamed:]):
      	Pass NO for behind.
      
      WebBrowser:
      
      	More work on "open window behind".
      
              * BrowserWebController.m:
              (-[BrowserWebController openNewWindowWithURL:referrer:behind:]): Add new behind
      	parameter to match change to window operations delegate in WebKit.
              (-[BrowserWebController clickPolicyForElement:button:modifierFlags:]): Use the
      	WebClickPolicyOpenNewWindowBehind policy if the shift key and command key are down.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@2227 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d1356935
  19. 01 Oct, 2002 3 commits
    • cblu's avatar
      Fixed build breakage. · c4ad9ad9
      cblu authored
              * Plugins.subproj/WebBaseNetscapePluginView.m:
              (-[WebBaseNetscapePluginView setWindow]):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@2221 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c4ad9ad9
    • cblu's avatar
      - Added debug drawing · c1b39f7e
      cblu authored
      	- removed unnecessary ifdef'ing.
      
              * Plugins.subproj/WebBaseNetscapePluginView.m:
              (-[WebBaseNetscapePluginView sendActivateEvent:]):
              (-[WebBaseNetscapePluginView becomeFirstResponder]):
              (-[WebBaseNetscapePluginView resignFirstResponder]):
              (-[WebBaseNetscapePluginView mouseDown:]):
              (-[WebBaseNetscapePluginView mouseUp:]):
              (-[WebBaseNetscapePluginView mouseEntered:]):
              (-[WebBaseNetscapePluginView mouseExited:]):
              (-[WebBaseNetscapePluginView menuForEvent:]):
              (-[WebBaseNetscapePluginView setWindow]):
              (-[WebBaseNetscapePluginView start]):
              (-[WebBaseNetscapePluginView drawRect:]):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@2218 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c1b39f7e
    • kocienda's avatar
      WebFoundation: · b10c9d76
      kocienda authored
      	Big set of changes to move the code closer to the proposed WebFoundation API. Major work includes:
      
      	- Implemented new callbacks for WebResourceHandleDelegate. All delegates of WebResourceHandle
      	  were updated to reflect this change.
      
      	- Modified the way WebProtocolHandler creates protocol-specific responses.
      
      	- Move WebResourceHandle API much closer to the final proposal. The public API on this class
      	  is very thin now. Some private methods are still available to code inside Intrigue (to ease
      	  the transition), and the dependencies on these private methods will be reduced over time.
      
      	- WebResourceRequest and WebResourceResponse classes are now closer to their proposed APIs, but
      	  work remains to be done with them.
      
      	- Synchronous loading code received a large rewrite.
      
      	And an extra:
      
      	- Sped up implementation of file protocol handler. This protocol handler no longer kicks a thread for each file load.
      
              * CacheLoader.subproj/IFHTTPURLHandleC.h:
              * CacheLoader.subproj/IFHTTPURLHandleC.m:
              (IFHTTPURLHandleGetRequestMethod)
              (IFHTTPURLHandleGetRequestHeaders)
              * CacheLoader.subproj/IFURLHandleC.m:
              (IFURLHandleBackgroundLoadFailedWithResultCode)
              (IFURLHandleGetURL)
              (IFURLHandleGetCanonicalURL)
              (IFURLHandleGetStatusCode)
              (IFURLHandleGetResultCode)
              (IFURLHandleGetContentType)
              (IFURLHandleGetError)
              (IFURLHandleGetContentLength)
              (IFURLHandleGetContentLengthReceived)
              (IFURLHandleGetPercentComplete)
              * CacheLoader.subproj/WebMemoryCache.m:
              (-[WebMemoryCache _truncateToSizeLimit])
              * CacheLoader.subproj/WebProtocolHandler.h:
              * CacheLoader.subproj/WebProtocolHandler.m:
              (-[WebProtocolHandler responseClass])
              (-[WebProtocolHandler responseMetadataAvailable])
              (-[WebProtocolHandler setResponseMetadata:])
              * CacheLoader.subproj/WebResourceCallbackClient.m:
              (-[WebResourceCallbackClient handle:willSendRequest:])
              (-[WebResourceCallbackClient handle:didReceiveResponse:])
              * CacheLoader.subproj/WebResourceHandle.h:
              * CacheLoader.subproj/WebResourceHandle.m:
              (+[WebResourceHandle sendSynchronousRequest:])
              (-[WebResourceHandle initWithRequest:delegate:])
              * CacheLoader.subproj/WebResourceHandleDelegate.h:
              * CacheLoader.subproj/WebResourceHandleInternal.h:
              * CacheLoader.subproj/WebResourceHandleInternal.m:
              (-[WebResourceHandleInstanceVariables prepareCallbacks])
              (-[WebResourceHandleInstanceVariables dealloc])
              (-[WebResourceHandle _loadInBackground])
              (-[WebResourceHandle _sendCallbacks])
              (-[WebResourceHandle _notifyClientWillSendRequest])
              (-[WebResourceHandle _notifyClientDidReceiveResponse])
              (-[WebResourceHandle _notifyClientDataDidBecomeAvailable])
              (-[WebResourceHandle _notifyClientDidFailLoading])
              (-[WebResourceHandle _notifyClientDidFinishLoading])
              * CacheLoader.subproj/WebResourceHandlePrivate.h:
              * CacheLoader.subproj/WebResourceHandlePrivate.m:
              (-[WebResourceHandle _didReceiveResponseMetadata:])
              (-[WebResourceHandle _backgroundLoadComplete])
              (-[WebResourceHandle _backgroundLoadFailed])
              (-[WebResourceHandle _didRedirectToURL:])
              (-[WebResourceHandle _request])
              (-[WebResourceHandle _response])
              (-[WebResourceHandle _redirectedURL])
              * CacheLoader.subproj/WebResourceLoad.h:
              * CacheLoader.subproj/WebResourceLoad.m:
              (-[WebResourceLoad initWithRequest:])
              (-[WebResourceLoad didLoadBytes:length:])
              (-[WebResourceLoad succeeded])
              (-[WebResourceLoad failedWithResultCode:inDomain:failingURL:])
              (-[WebResourceLoad addHandle:])
              (-[WebResourceLoad cacheObjectCheckingRedirects:])
              (-[WebResourceLoad didRedirectToURL:permanent:])
              (-[WebResourceLoad originalRequest])
              (-[WebResourceLoad _beginLoad])
              (-[WebResourceLoad _cacheKey])
              (-[WebResourceLoad description])
              (-[WebResourceLoad dealloc])
              * CacheLoader.subproj/WebResourceLoadManager.m:
              (+[WebResourceLoadKey keyWithHandle:])
              (+[WebResourceLoadKey keyWithLoad:])
              (-[WebResourceLoadKey hash])
              (-[WebResourceLoadManager requestWithURLHandle:])
              * CacheLoader.subproj/WebResourceLoadQueue.m:
              (-[WebResourceLoadQueue put:])
              * CacheLoader.subproj/WebResourceRequest.h:
              * CacheLoader.subproj/WebResourceRequest.m:
              (-[WebResourceRequest initWithURL:])
              (-[WebResourceRequest canonicalURL])
              (-[WebResourceRequest protocolHandlerClass])
              (-[WebResourceRequest copyWithZone:])
              (-[WebResourceRequest copyWithURL:])
              * CacheLoader.subproj/WebResourceResponse.m:
              (-[WebResourceResponse contentType])
              * CacheLoader.subproj/WebResourceSynchronousClient.h:
              * CacheLoader.subproj/WebResourceSynchronousClient.m:
              (-[WebResourceHandleSynchronousDelegate initWithRequest:monitor:])
              (-[WebResourceHandleSynchronousDelegate dealloc])
              (-[WebResourceHandleSynchronousDelegate run:])
              (-[WebResourceHandleSynchronousDelegate started])
              (-[WebResourceHandleSynchronousDelegate handle])
              (-[WebResourceHandleSynchronousDelegate response])
              (-[WebResourceHandleSynchronousDelegate result])
              (-[WebResourceHandleSynchronousDelegate handle:willSendRequest:])
              (-[WebResourceHandleSynchronousDelegate handleDidFinishLoading:])
              (-[WebResourceHandleSynchronousDelegate handle:didReceiveResponse:])
              (-[WebResourceHandleSynchronousDelegate handle:didReceiveData:])
              * Misc.subproj/WebFoundation.h:
              * Misc.subproj/WebFoundationLogging.h:
              * Misc.subproj/WebFoundationLogging.m:
              * Misc.subproj/WebNSStringExtras.m:
              (-[NSString _web_isCaseInsensitiveEqualToString:]
              * ProtocolHandlers.subproj/WebAboutProtocolHandler.h:
              * ProtocolHandlers.subproj/WebAboutProtocolHandler.m:
              (-[WebAboutProtocolHandler beginLoad])
              (-[WebAboutProtocolHandler responseClass])
              (-[WebAboutProtocolHandler responseMetadataAvailable])
              (-[WebAboutProtocolHandler setResponseMetadata:])
              * ProtocolHandlers.subproj/WebCFNetworkHTTPProtocolHandler.m:
              (-[WebCFNetworkHTTPProtocolHandler addAuthenticationHeaders:andCall:])
              (-[WebCFNetworkHTTPProtocolHandler continueAfterBytesAvailable])
              (-[WebCFNetworkHTTPProtocolHandler handleReadStreamEvent:event:])
              (-[WebCFNetworkHTTPProtocolHandler performHTTPHeaderRead:andCall:])
              * ProtocolHandlers.subproj/WebFileProtocolHandler.h:
              * ProtocolHandlers.subproj/WebFileProtocolHandler.m:
              (-[WebFileProtocolHandler initWithResourceLoad:])
              (-[WebFileProtocolHandler dealloc])
              (-[WebFileProtocolHandler didLoadData:])
              (-[WebFileProtocolHandler beginLoad])
              (-[WebFileProtocolHandler endLoad])
              (-[WebFileProtocolHandler responseClass])
              (-[WebFileProtocolHandler responseMetadataAvailable])
              (-[WebFileProtocolHandler setResponseMetadata:])
              * ProtocolHandlers.subproj/WebHTTPProtocolHandler.m:
              (-[WebHTTPProtocolHandler responseClass])
              (-[WebHTTPProtocolHandler responseMetadataAvailable])
              (-[WebHTTPProtocolHandler setResponseMetadata:])
              (-[WebHTTPProtocolHandler shouldCacheResponse:])
              (-[WebHTTPProtocolHandler URL])
              (-[WebHTTPProtocolHandler retryWithRedirectedURLAndResultCode:])
              * ProtocolHandlers.subproj/WebSimpleHTTPProtocolHandler.m:
              (-[WebSimpleHTTPProtocolHandler createHTTPRequest])
              (-[WebSimpleHTTPProtocolHandler _examineHeaders])
              * WebFoundation.exp
              * WebFoundation.pbproj/project.pbxproj
      
      WebKit:
      
      	Many changes to coincide with API work in WebFoundation. Most of the modifications
      	here have to do with changes for the new callback scheme.
      
              * Misc.subproj/WebIconLoader.m:
              (-[WebIconLoader handleDidFinishLoading:])
              (-[WebIconLoader handle:willSendRequest:]): New method. A no-op here.
              (-[WebIconLoader handle:didReceiveResponse:]): Ditto.
              * Plugins.subproj/WebBaseNetscapePluginView.m:
              (-[WebBaseNetscapePluginView stop]): Fix for Deployment build breakage.
              * Plugins.subproj/WebPluginStream.h: Add response ivar.
              * Plugins.subproj/WebPluginStream.m:
              (-[WebNetscapePluginStream startLoad]): Tweak method name for new API.
              (-[WebNetscapePluginStream receivedData:withHandle:]):
              (-[WebNetscapePluginStream handle:willSendRequest:]): New method. Replaces old redirect callback.
              (-[WebNetscapePluginStream handle:didReceiveResponse:]): New method. Set the response ivar.
              * WebCoreSupport.subproj/WebSubresourceClient.h: Add response ivar.
              * WebCoreSupport.subproj/WebSubresourceClient.m:
              (-[WebSubresourceClient dealloc]): Release response ivar.
              (+[WebSubresourceClient startLoadingResource:withURL:referrer:forDataSource:]): Set the request user agent here.
              (-[WebSubresourceClient handle:willSendRequest:]): New method. Handle like a redirect.
              (-[WebSubresourceClient handle:didReceiveResponse:]): New method. Set the response ivar.
              (-[WebSubresourceClient handle:didReceiveData:]): Tweaks for new WebFoundation API and method names.
              (-[WebSubresourceClient handleDidFinishLoading:]): Ditto.
              (-[WebSubresourceClient handle:didFailLoadingWithError:]): Ditto.
              * WebView.subproj/WebControllerPrivate.m:
              (-[WebController _receivedError:forResourceHandle:partialProgress:fromDataSource:]): Ditto.
              * WebView.subproj/WebDataSourcePrivate.h: Add _setRequest method.
              * WebView.subproj/WebDataSourcePrivate.m:
              (-[WebDataSource _startLoading]): Call didStartLoadingWithURL with request URL instead of handle URL.
              (-[WebDataSource _setRequest:]): Add implementation.
              * WebView.subproj/WebLoadProgress.m:
              (-[WebLoadProgress initWithResourceHandle:]): Tweaks for new WebFoundation API and method names.
              * WebView.subproj/WebMainResourceClient.h: Add response ivar.
              * WebView.subproj/WebMainResourceClient.m:
              (-[WebMainResourceClient initWithDataSource:]): Set user agent on request here.
              (-[WebMainResourceClient dealloc]): Release response ivar.
              (-[WebMainResourceClient didCancelWithHandle:]): Tweaks for new WebFoundation API and method names.
              (-[WebMainResourceClient handleDidFinishLoading:]): Tweaks for new WebFoundation API and method names.
              (-[WebMainResourceClient handle:willSendRequest:]): New method. Handle like a redirect.
              (-[WebMainResourceClient handle:didReceiveResponse:]): New method. Set the response ivar.
              (-[WebMainResourceClient handle:didReceiveData:]): Tweaks for new WebFoundation API and method names.
              (-[WebMainResourceClient handle:didFailLoadingWithError:]): Ditto.
      
      WebBrowser:
      
      	Updated a couple methods to reflect changes in WebFoundation API names.
      
              * BrowserWebController.m:
              (-[BrowserWebController receivedProgress:forResourceHandle:fromDataSource:complete:]): Call for the URL on the handles response
      	instead of the URL of the handle itself.
              (-[BrowserWebController receivedError:forResourceHandle:partialProgress:fromDataSource:]): Ditto.
              * DownloadMonitor.m:
              (-[DownloadMonitor receivedError:forResourceHandle:partialProgress:fromDataSource:]): Request accessor for handle
      	is now private; reflect that in method name (i.e. add an underscore).
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@2213 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b10c9d76
  20. 30 Sep, 2002 2 commits
    • cblu's avatar
      A ton o' plugin view clean-up and arch changes. Turned WebPluginView into... · d5af8808
      cblu authored
      	A ton o' plugin view clean-up and arch changes. Turned WebPluginView into WebBaseNetscapePluginView. New classes WebNetscapePluginEmbeddedView and WebNetscapePluginDocumentView are subclasses of WebBaseNetscapePluginView. WebNetscapePluginDocumentView handles non-HTML plug-in content and WebNetscapePluginEmbeddedView is the WebHTMLView subview.
      
      	Found that we leak the world on complex pages with plug-ins such as macromedia.com and marvel.com when closing the window. Still need to figure this out.
      
              * Plugins.subproj/WebBaseNetscapePluginView.h: Added.
              * Plugins.subproj/WebBaseNetscapePluginView.m: Added.
              (+[WebBaseNetscapePluginView getCarbonEvent:]):
              (-[WebBaseNetscapePluginView getCarbonEvent:]):
              (-[WebBaseNetscapePluginView modifiersForEvent:]):
              (-[WebBaseNetscapePluginView getCarbonEvent:withEvent:]):
              (-[WebBaseNetscapePluginView keyMessageForEvent:]):
              (-[WebBaseNetscapePluginView sendEvent:]):
              (-[WebBaseNetscapePluginView sendActivateEvent:]):
              (-[WebBaseNetscapePluginView sendUpdateEvent]):
              (-[WebBaseNetscapePluginView acceptsFirstResponder]):
              (-[WebBaseNetscapePluginView becomeFirstResponder]):
              (-[WebBaseNetscapePluginView resignFirstResponder]):
              (-[WebBaseNetscapePluginView mouseDown:]):
              (-[WebBaseNetscapePluginView mouseUp:]):
              (-[WebBaseNetscapePluginView mouseEntered:]):
              (-[WebBaseNetscapePluginView mouseExited:]):
              (-[WebBaseNetscapePluginView keyUp:]):
              (-[WebBaseNetscapePluginView keyDown:]):
              (-[WebBaseNetscapePluginView isInResponderChain]):
              (-[WebBaseNetscapePluginView performKeyEquivalent:]):
              (-[WebBaseNetscapePluginView menuForEvent:]):
              (-[WebBaseNetscapePluginView setUpWindowAndPort]):
              (-[WebBaseNetscapePluginView setWindow]):
              (-[WebBaseNetscapePluginView removeTrackingRect]):
              (-[WebBaseNetscapePluginView resetTrackingRect]):
              (-[WebBaseNetscapePluginView start]):
              (-[WebBaseNetscapePluginView stop]):
              (-[WebBaseNetscapePluginView dataSource]):
              (-[WebBaseNetscapePluginView webFrame]):
              (-[WebBaseNetscapePluginView controller]):
              (-[WebBaseNetscapePluginView plugin]):
              (-[WebBaseNetscapePluginView setMIMEType:]):
              (-[WebBaseNetscapePluginView setBaseURL:]):
              (-[WebBaseNetscapePluginView setArguments:]):
              (-[WebBaseNetscapePluginView setMode:]):
              (-[WebBaseNetscapePluginView initWithFrame:]):
              (-[WebBaseNetscapePluginView dealloc]):
              (-[WebBaseNetscapePluginView drawRect:]):
              (-[WebBaseNetscapePluginView isFlipped]):
              (-[WebBaseNetscapePluginView viewWillMoveToWindow:]):
              (-[WebBaseNetscapePluginView viewDidMoveToWindow]):
              (-[WebBaseNetscapePluginView viewHasMoved:]):
              (-[WebBaseNetscapePluginView windowWillClose:]):
              (-[WebBaseNetscapePluginView windowBecameKey:]):
              (-[WebBaseNetscapePluginView windowResignedKey:]):
              (-[WebBaseNetscapePluginView defaultsHaveChanged:]):
              (-[WebBaseNetscapePluginView frameStateChanged:]):
              (-[WebBaseNetscapePluginView pluginInstance]):
              (-[WebBaseNetscapePluginView pluginURLFromCString:]):
              (-[WebBaseNetscapePluginView loadRequest:inTarget:withNotifyData:]):
              (-[WebBaseNetscapePluginView getURLNotify:target:notifyData:]):
              (-[WebBaseNetscapePluginView getURL:target:]):
              (-[WebBaseNetscapePluginView postURLNotify:target:len:buf:file:notifyData:]):
              (-[WebBaseNetscapePluginView postURL:target:len:buf:file:]):
              (-[WebBaseNetscapePluginView newStream:target:stream:]):
              (-[WebBaseNetscapePluginView write:len:buffer:]):
              (-[WebBaseNetscapePluginView destroyStream:reason:]):
              (-[WebBaseNetscapePluginView status:]):
              (-[WebBaseNetscapePluginView invalidateRect:]):
              (-[WebBaseNetscapePluginView invalidateRegion:]):
              (-[WebBaseNetscapePluginView forceRedraw]):
              * Plugins.subproj/WebBaseNetscapePluginViewPrivate.h: Added.
              * Plugins.subproj/WebNetscapePluginDocumentView.h: Added.
              * Plugins.subproj/WebNetscapePluginDocumentView.m: Added.
              (-[WebNetscapePluginDocumentView initWithFrame:]):
              (-[WebNetscapePluginDocumentView dealloc]):
              (-[WebNetscapePluginDocumentView drawRect:]):
              (-[WebNetscapePluginDocumentView dataSource]):
              (-[WebNetscapePluginDocumentView setDataSource:]):
              (-[WebNetscapePluginDocumentView dataSourceUpdated:]):
              (-[WebNetscapePluginDocumentView setNeedsLayout:]):
              (-[WebNetscapePluginDocumentView layout]):
              * Plugins.subproj/WebNetscapePluginEmbeddedView.h: Added.
              * Plugins.subproj/WebNetscapePluginEmbeddedView.m: Added.
              (-[WebNetscapePluginEmbeddedView initWithFrame:plugin:URL:baseURL:mime:arguments:]):
              (-[WebNetscapePluginEmbeddedView dealloc]):
              (-[WebNetscapePluginEmbeddedView viewDidMoveToWindow]):
              (-[WebNetscapePluginEmbeddedView start]):
              (-[WebNetscapePluginEmbeddedView dataSource]):
              * Plugins.subproj/WebNetscapePluginViewPrivate.h: Removed.
              * Plugins.subproj/WebPluginDatabase.m:
              (-[WebNetscapePluginDatabase init]):
              * Plugins.subproj/WebPluginNullEventSender.h:
              * Plugins.subproj/WebPluginNullEventSender.m:
              (-[WebNetscapePluginNullEventSender initWithPluginView:]):
              (-[WebNetscapePluginNullEventSender sendNullEvents]):
              * Plugins.subproj/WebPluginStream.h:
              * Plugins.subproj/WebPluginStream.m:
              (-[WebNetscapePluginStream getFunctionPointersFromPluginView:]):
              (-[WebNetscapePluginStream initWithURL:pluginPointer:notifyData:]):
              (-[WebNetscapePluginStream dealloc]):
              (-[WebNetscapePluginStream startLoad]):
              (-[WebNetscapePluginStream receivedData:withDataSource:]):
              (-[WebNetscapePluginStream handleWillUseUserAgent:forURL:]):
              (-[WebNetscapePluginStream handle:didReceiveData:]):
              (-[WebNetscapePluginStream handleDidFinishLoading:]):
              (-[WebNetscapePluginStream cancel]):
              (-[WebNetscapePluginStream handle:didFailLoadingWithError:]):
              (-[WebNetscapePluginStream handleDidRedirect:toURL:]):
              * Plugins.subproj/WebPluginView.h: Removed.
              * Plugins.subproj/WebPluginView.m: Removed.
              * Plugins.subproj/npapi.m:
              (NPN_GetURLNotify):
              (NPN_GetURL):
              (NPN_PostURLNotify):
              (NPN_PostURL):
              (NPN_NewStream):
              (NPN_Write):
              (NPN_DestroyStream):
              (NPN_Status):
              (NPN_InvalidateRect):
              (NPN_InvalidateRegion):
              (NPN_ForceRedraw):
              * WebCoreSupport.subproj/WebViewFactory.m:
              (-[WebViewFactory viewForPluginWithURL:serviceType:arguments:baseURL:]):
              (-[WebViewFactory viewForJavaAppletWithFrame:baseURL:parameters:]):
              * WebKit.pbproj/project.pbxproj:
              * WebView.subproj/WebHTMLViewPrivate.m:
              (-[NSView _web_stopIfPluginView]):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@2212 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d5af8808
    • darin's avatar
      - fixed crashing part of 3063517 -- crash loading .png in separate window · 18c3b035
      darin authored
              * Plugins.subproj/WebPluginView.m:
              (-[WebNetscapePluginView start]): Don't try to start if the NPP_New is 0.
      	This indicates the the plugin hasn't been loaded.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@2205 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      18c3b035
  21. 29 Sep, 2002 1 commit
    • cblu's avatar
      WebKit: · 2c91d6bb
      cblu authored
      	Fixed: 2978258 - quake3arena.com sends me to the flash=false site
      	The page has a flash plugin that once loaded, requests the flash=true page. If the plugin doesn't load, the meta refresh tag to the flash=false page fires after 3 seconds. This is how this site's flash detection works.
      
      	The reason this doesn't work for us is because the flash movie is at the bottom of the page. Plugins don't start until the initial drawRect. Since the movie is at the bottom of the page and out of site, the plugin never gets the drawRect and thus, never starts. We now start plug-ins when they are added to the window.
      
      	Fixed: 3062224 - context menu includes "Download Item to Disk" for mailto links
      
      	- Fixed click then click and drag causes crash.
      
              * Plugins.subproj/WebPluginView.m:
              (-[WebNetscapePluginView drawRect:]): don't start plug-in here
              (-[WebNetscapePluginView viewDidMoveToWindow]): start it here
              * WebView.subproj/WebDefaultContextMenuDelegate.m:
              (-[WebDefaultContextMenuDelegate contextMenuItemsForElement:defaultMenuItems:]): don't provide "Download Link To Disk" and "Open Link In New Window" items for URLs we cant handle.
              * WebView.subproj/WebHTMLView.m:
              (-[WebHTMLView dragImage:at:offset:event:pasteboard:source:slideBack:]): clean-up
              (-[WebHTMLView mouseDragged:]): Don't allow drag if the frame has a provisional data source because this view may be released and the drag callbacks might reference this released view.
      
      WebBrowser:
      
      	Fixed: 3062224 - context menu includes "Download Item to Disk" for mailto links
      	- Added "Open With QuickTime Player" context menu for URLs ending with .mov.
      	- Only show "Open With*" items for http URLs.
      
              * ContextMenuHandler.m:
              (-[ContextMenuHandler contextMenuItemsForElement:defaultMenuItems:]):
              (-[ContextMenuHandler openWithiTunes:]):
              (-[ContextMenuHandler openWithQuickTime:]):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@2202 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2c91d6bb
  22. 27 Sep, 2002 1 commit
    • cblu's avatar
      WebCore: · f938ca5e
      cblu authored
      	WebPlugin clean up.
      
              * kwq/KWQKConfigBase.mm:
              (KConfig::readEntry):
              * kwq/WebCoreViewFactory.h:
      
      WebKit:
      
      	Fixed: 3056559 - QT plugin doesn't load (claudius)
      	Fixed: 3042850 - Enable Java by default
      
      	Cleaned up WebPlugin and WebPluginDatabase.
      
              * Plugins.subproj/WebPlugin.h:
              * Plugins.subproj/WebPlugin.m:
              (-[WebNetscapePlugin openResourceFile]):
              (-[WebNetscapePlugin closeResourceFile:]):
              (-[WebNetscapePlugin stringForStringListID:andIndex:]):
              (-[WebNetscapePlugin getPluginInfo]):
              (-[WebNetscapePlugin initWithPath:]):
              (-[WebNetscapePlugin load]):
              (-[WebNetscapePlugin unload]):
              (-[WebNetscapePlugin MIMEToExtensionsDictionary]):
              (-[WebNetscapePlugin extensionToMIMEDictionary]):
              (-[WebNetscapePlugin MIMEToDescriptionDictionary]):
              (-[WebNetscapePlugin description]):
              * Plugins.subproj/WebPluginDatabase.h:
              * Plugins.subproj/WebPluginDatabase.m:
              (-[WebNetscapePluginDatabase pluginForMIMEType:]):
              (-[WebNetscapePluginDatabase pluginForExtension:]):
              (-[WebNetscapePluginDatabase pluginForFilename:]):
              (-[WebNetscapePluginDatabase MIMETypes]):
              (-[WebNetscapePluginDatabase init]):
              * Plugins.subproj/WebPluginView.m:
              (-[WebNetscapePluginView setDataSource:]):
              * WebCoreSupport.subproj/WebViewFactory.m:
              (-[WebViewFactory viewForPluginWithURL:serviceType:arguments:baseURL:]):
              (-[WebViewFactory viewForJavaAppletWithFrame:baseURL:parameters:]):
              * WebView.subproj/WebPreferences.m:
              (+[WebPreferences load]): Enable Java by default
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@2190 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f938ca5e
  23. 25 Sep, 2002 2 commits
    • rjw's avatar
      API and documentation tweaks. · 2f7b855d
      rjw authored
              WebDocumentDragSettings:  canDrag -> acceptsDrag
              WebDataSource:  removed originalURL
              WebStandardPanels:  use -> uses
      
              * History.subproj/WebBackForwardList.h:
              * Misc.subproj/WebDownloadHandler.m:
              (-[WebDownloadHandler initWithDataSource:]):
              * Panels.subproj/WebStandardPanels.h:
              * Panels.subproj/WebStandardPanels.m:
              (-[WebStandardPanels setUsesStandardAuthenticationPanel:]):
              (-[WebStandardPanels usesStandardAuthenticationPanel]):
              * Plugins.subproj/WebPluginView.m:
              (-[WebNetscapePluginView frameStateChanged:]):
              * WebCoreSupport.subproj/WebSubresourceClient.m:
              (-[WebSubresourceClient cancel]):
              * WebView.subproj/WebController.h:
              * WebView.subproj/WebDataSource.h:
              * WebView.subproj/WebDataSourcePrivate.m:
              (-[WebDataSource _commitIfReady]):
              * WebView.subproj/WebDocument.h:
              * WebView.subproj/WebFrame.m:
              (-[WebFrame setProvisionalDataSource:]):
              (-[WebFrame startLoading]):
              * WebView.subproj/WebFramePrivate.m:
              (-[WebFrame _transitionToCommitted]):
              (-[WebFrame _setState:]):
              (-[WebFrame _goToItem:withFrameLoadType:]):
              * WebView.subproj/WebHTMLView.m:
              (-[WebHTMLView setAcceptsDrags:]):
              (-[WebHTMLView acceptsDrags]):
              (-[WebHTMLView setAcceptsDrops:]):
              (-[WebHTMLView acceptsDrops]):
              * WebView.subproj/WebImageView.m:
              (-[WebImageView setAcceptsDrags:]):
              (-[WebImageView acceptsDrags]):
              (-[WebImageView setAcceptsDrops:]):
              (-[WebImageView acceptsDrops]):
              * WebView.subproj/WebLoadProgress.h:
              * WebView.subproj/WebLocationChangeDelegate.h:
              * WebView.subproj/WebMainResourceClient.m:
              (-[WebMainResourceClient didCancelWithHandle:]):
              * WebView.subproj/WebView.h:
      
              Updated to reflect API tweaks.
      
              * AppController.m:
              (-[AppController awakeFromNib]):
              * DownloadProgressEntry.m:
              (-[DownloadProgressEntry stop]):
              * LocationChangeHandler.m:
              (-[LocationChangeHandler locationChangeStartedForDataSource:]):
              (-[LocationChangeHandler locationChangeCommittedForDataSource:]):
              (-[LocationChangeHandler locationChangeDone:forDataSource:]):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@2170 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2f7b855d
    • cblu's avatar
      Fixed: 3050665 - REGRESSION: mp3 audio loads and plays, but no progress or play control is visible · 3b02e463
      cblu authored
              * Plugins.subproj/WebPluginView.h:
              * Plugins.subproj/WebPluginView.m:
              (-[WebNetscapePluginView setNeedsLayout:]):
              (-[WebNetscapePluginView layout]):
              (-[WebNetscapePluginView drawRect:]):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@2165 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3b02e463
  24. 24 Sep, 2002 1 commit
    • darin's avatar
      Cleaned up some loose ends from adding setNeedsLayout to the WebDocumentView · 702f87c6
      darin authored
      	protocol. Was causing exceptions.
      
              * Plugins.subproj/WebPluginView.m: (-[WebNetscapePluginView setNeedsLayout:]):
              * WebView.subproj/WebTextView.m: (-[WebTextView setNeedsLayout:]):
      	Added missing stubs.
      
              * WebCoreSupport.subproj/WebBridge.m: (-[WebBridge setNeedsReapplyStyles]):
      	Removed unneeded cast.
              * WebView.subproj/WebFramePrivate.m: (-[WebFrame _isLoadComplete]): Remove an
      	unneeded cast and call to isDocumentHTML.
              * WebView.subproj/WebHTMLView.h: No need to re-declare setNeedsLayout.
              * WebView.subproj/WebView.m: (-[WebView setFrame:]): Get rid of unneeded check
      	of isDocumentHTML.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@2142 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      702f87c6
  25. 23 Sep, 2002 1 commit
    • rjw's avatar
      WebContextMenuHandler becomes WebContextMenuDelegate · 3ca88877
      rjw authored
              WebControllerPolicyHandler becomes WebControllerPolicyDelegate
              WebLocationChangeHandler becomes WebLocationChangeDelegate
              WebResourceProgressHandler becomes WebResourceProgressDelegate
              WebWindowContext becomes WebWindowOperationsDelegate
      
              * Misc.subproj/WebDownloadHandler.m:
              * Plugins.subproj/WebNullPluginView.m:
              (-[WebNullPluginView drawRect:]):
              * Plugins.subproj/WebPluginView.m:
              (-[WebNetscapePluginView loadRequest:inTarget:withNotifyData:]):
              (-[WebNetscapePluginView status:]):
              * WebCoreSupport.subproj/WebBridge.m:
              (-[WebBridge openNewWindowWithURL:referrer:frameName:]):
              (-[WebBridge areToolbarsVisible]):
              (-[WebBridge setToolbarsVisible:]):
              (-[WebBridge isStatusBarVisible]):
              (-[WebBridge setStatusBarVisible:]):
              (-[WebBridge setWindowFrame:]):
              (-[WebBridge window]):
              (-[WebBridge setStatusText:]):
              (-[WebBridge reportClientRedirectTo:delay:fireDate:]):
              (-[WebBridge reportClientRedirectCancelled]):
              * WebKit.exp:
              * WebKit.pbproj/project.pbxproj:
              * WebView.subproj/WebContextMenuDelegate.h:
              * WebView.subproj/WebContextMenuHandler.h: Removed.
              * WebView.subproj/WebController.h:
              * WebView.subproj/WebController.m:
              (-[WebController setWindowOperationsDelegate:]):
              (-[WebController windowOperationsDelegate]):
              (-[WebController setResourceProgressDelegate:]):
              (-[WebController resourceProgressDelegate]):
              (-[WebController setDownloadProgressDelegate:]):
              (-[WebController downloadProgressDelegate]):
              (-[WebController setContextMenuDelegate:]):
              (-[WebController contextMenuDelegate]):
              (-[WebController setPolicyDelegate:]):
              (-[WebController policyDelegate]):
              (-[WebController setLocationChangeDelegate:]):
              (-[WebController locationChangeDelegate]):
              * WebView.subproj/WebControllerPolicyDelegate.m: Added.
              (-[WebPolicyPrivate dealloc]):
              (-[WebPolicy _setPolicyAction:]):
              (-[WebPolicy policyAction]):
              (-[WebPolicy path]):
              (-[WebPolicy URL]):
              (-[WebPolicy _setPath:]):
              (-[WebPolicy dealloc]):
              (+[WebURLPolicy webPolicyWithURLAction:]):
              (+[WebFileURLPolicy webPolicyWithFileAction:]):
              (+[WebContentPolicy webPolicyWithContentAction:andPath:]):
              * WebView.subproj/WebControllerPolicyDelegatePrivate.h:
              * WebView.subproj/WebControllerPolicyHandler.h: Removed.
              * WebView.subproj/WebControllerPolicyHandler.m: Removed.
              * WebView.subproj/WebControllerPolicyHandlerPrivate.h: Removed.
              * WebView.subproj/WebControllerPrivate.h:
              * WebView.subproj/WebControllerPrivate.m:
              (-[WebControllerPrivate init]):
              (-[WebControllerPrivate dealloc]):
              (-[WebController _defaultContextMenuDelegate]):
              (-[WebController _receivedProgress:forResourceHandle:fromDataSource:complete:]):
              (-[WebController _mainReceivedProgress:forResourceHandle:fromDataSource:complete:]):
              (-[WebController _receivedError:forResourceHandle:partialProgress:fromDataSource:]):
              (-[WebController _mainReceivedError:forResourceHandle:partialProgress:fromDataSource:]):
              * WebView.subproj/WebDataSourcePrivate.m:
              (-[WebDataSource _startLoading]):
              (-[WebDataSource _setTitle:]):
              (-[WebDataSource _setURL:]):
              (-[WebDataSource _loadIcon]):
              * WebView.subproj/WebDefaultContextMenuDelegate.h:
              * WebView.subproj/WebDefaultContextMenuDelegate.m:
              (-[WebDefaultContextMenuDelegate openNewWindowWithURL:referrer:]):
              (-[WebDefaultContextMenuDelegate downloadURL:]):
              * WebView.subproj/WebDefaultContextMenuHandler.h: Removed.
              * WebView.subproj/WebDefaultContextMenuHandler.m: Removed.
              * WebView.subproj/WebDefaultPolicyDelegate.h:
              * WebView.subproj/WebDefaultPolicyDelegate.m:
              * WebView.subproj/WebDefaultPolicyHandler.h: Removed.
              * WebView.subproj/WebDefaultPolicyHandler.m: Removed.
              * WebView.subproj/WebDocument.h:
              * WebView.subproj/WebFrame.m:
              (-[WebFrame setProvisionalDataSource:]):
              (-[WebFrame frameNamed:]):
              * WebView.subproj/WebFramePrivate.m:
              (-[WebFrame _timedLayout:]):
              (-[WebFrame _transitionToCommitted]):
              (-[WebFrame _isLoadComplete]):
              (-[WebFrame handleUnimplementablePolicy:errorCode:forURL:]):
              (-[WebFrame _shouldShowURL:]):
              * WebView.subproj/WebHTMLView.m:
              (-[WebHTMLView menuForEvent:]):
              * WebView.subproj/WebHTMLViewPrivate.m:
              (-[WebHTMLView _continueAfterClickPolicyForEvent:]):
              * WebView.subproj/WebImageView.m:
              (-[WebImageView setNeedsLayout:]):
              * WebView.subproj/WebLocationChangeDelegate.h:
              * WebView.subproj/WebLocationChangeDelegate.m:
              * WebView.subproj/WebLocationChangeHandler.h: Removed.
              * WebView.subproj/WebLocationChangeHandler.m: Removed.
              * WebView.subproj/WebMainResourceClient.h:
              * WebView.subproj/WebMainResourceClient.m:
              (-[WebMainResourceClient dealloc]):
              (-[WebMainResourceClient receivedProgressWithHandle:complete:]):
              (-[WebMainResourceClient receivedError:forHandle:]):
              (-[WebMainResourceClient handleDidReceiveData:data:]):
              * WebView.subproj/WebResourceProgressDelegate.h:
              * WebView.subproj/WebResourceProgressHandler.h: Removed.
              * WebView.subproj/WebView.m:
              (-[WebView window]):
              * WebView.subproj/WebWindowContext.h: Removed.
              * WebView.subproj/WebWindowOperationsDelegate.h:
      
              WebContextMenuHandler becomes WebContextMenuDelegate
              WebControllerPolicyHandler becomes WebControllerPolicyDelegate
              WebLocationChangeHandler becomes WebLocationChangeDelegate
              WebResourceProgressHandler becomes WebResourceProgressDelegate
              WebWindowContext becomes WebWindowOperationsDelegate
      
              * BrowserDocument.h:
              * BrowserDocument.m:
              (-[BrowserDocument init]):
              (-[BrowserDocument dealloc]):
              (-[BrowserDocument close]):
              * BrowserWebController.h:
              * BrowserWebController.m:
              (-[BrowserWebController setFrame:]):
              * ContextMenuHandler.h:
              * ContextMenuHandler.m:
              (-[ContextMenuHandler contextMenuItemsForElement:defaultMenuItems:]):
              * DownloadMonitor.h:
              * LocationChangeHandler.h:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@2131 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3ca88877
  26. 18 Sep, 2002 1 commit
    • rjw's avatar
      Added documentation keywords to header. · 7c3a184d
      rjw authored
              Create seperate files for the protocols
              that were defined in WebController.h.
              Made -[WebController createFrameNamed:for:inParent:allowsScrolling:]):
              private.
      
              * Plugins.subproj/WebPluginView.m:
              * WebCoreSupport.subproj/WebBridge.m:
              * WebKit.pbproj/project.pbxproj:
              * WebView.subproj/WebContextMenuHandler.h: Added.
              * WebView.subproj/WebController.h:
              * WebView.subproj/WebController.m:
              * WebView.subproj/WebControllerPrivate.h:
              * WebView.subproj/WebControllerPrivate.m:
              * WebView.subproj/WebDefaultContextMenuHandler.m:
              * WebView.subproj/WebFrame.m:
              * WebView.subproj/WebHTMLView.m:
              * WebView.subproj/WebHTMLViewPrivate.m:
              * WebView.subproj/WebMainResourceClient.m:
              * WebView.subproj/WebResourceProgressHandler.h: Added.
              * WebView.subproj/WebView.m:
              * WebView.subproj/WebWindowContext.h: Added.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@2092 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7c3a184d
  27. 13 Sep, 2002 2 commits
    • darin's avatar
      WebCore: · 15d67e44
      darin authored
      	Here's the *real* mistake that killed plugins. I accidentally
      	stopped creating objects at all! Duh. Fixed now.
      
              * kwq/KWQKHTMLPartImpl.mm: (KWQKHTMLPartImpl::createPart):
      	Make a part for a plugin if we need one. Not a KHTMLPart, but
      	a KWQPluginPart.
      
      WebKit:
      
      	Added assertions, and dealt with some breakage I created while
      	trying to fix, here, what I broke in WebCore.
      
              * Plugins.subproj/WebPluginView.m: (-[WebNetscapePluginView start]):
      	Do get the dataSource from our parent when we are being used as an
      	object in a view rather than a document view.
      
              * Plugins.subproj/WebPluginStream.m:
              * WebView.subproj/WebDataSource.m:
              * WebView.subproj/WebFrame.m:
      	Leave in the assertions I used to debug.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@2064 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      15d67e44
    • darin's avatar
      Fix dataSource-related plugin crash. · b3cf3672
      darin authored
              * Plugins.subproj/WebPluginView.m:
              (-[WebNetscapePluginView start]): Don't grab dataSource here.
      	It's too early.
              (-[WebNetscapePluginView setDataSource:]): Grab it here.
      
              * Plugins.subproj/WebPluginStream.h:
              * Plugins.subproj/WebPluginStream.m:
      	Simplified includes and added asserts while debugging.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@2060 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b3cf3672
  28. 11 Sep, 2002 3 commits
    • mjs's avatar
      Combined provisionalDataSourceChanged: and · 9e280113
      mjs authored
      	provisionalDataSourceCommitted: methods into a single
      	setDataSource:, since they are always called one immediately after
      	the other.
      
              * Plugins.subproj/WebPluginView.m:
              (-[WebNetscapePluginView setDataSource:]):
              (-[WebNetscapePluginView loadRequest:inTarget:withNotifyData:]):
              * WebView.subproj/WebDocument.h:
              * WebView.subproj/WebHTMLView.m:
              (-[WebHTMLView setDataSource:]):
              * WebView.subproj/WebImageView.m:
              (-[WebImageView setDataSource:]):
              * WebView.subproj/WebTextView.m:
              (-[WebTextView setDataSource:]):
              * WebView.subproj/WebViewPrivate.m:
              (-[WebView _makeDocumentViewForDataSource:]):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@2040 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9e280113
    • kocienda's avatar
      WebFoundation: · 4af87c97
      kocienda authored
      	Major change to the API and design of WebFoundation.
      
      	Attributes, as a design concept, are now completely gone. The old usages of
      	attributes have been replaced with new API on the WebResourceRequest
      	and WebResourceResponse classes.
      
              * CacheLoader.subproj/IFHTTPURLHandleC.m:
              (IFHTTPURLHandleGetRequestMethod): Removed attribute usage. Replace with calls to new API.
              (IFHTTPURLHandleGetRequestHeaders): Ditto.
              * CacheLoader.subproj/WebCFNetworkHTTPProtocolHandler.m:
              (-[WebCFNetworkHTTPProtocolHandler addUserRequestHeaders:]): Ditto.
              (-[WebCFNetworkHTTPProtocolHandler addUnconditionalUserRequestHeaders:]): Ditto.
              (-[WebCFNetworkHTTPProtocolHandler addAcceptHeaders:]): Ditto.
              (-[WebCFNetworkHTTPProtocolHandler addCookieHeaders:]): Ditto.
              (-[WebCFNetworkHTTPProtocolHandler hasConditionalCustomHeaders]): Ditto.
              * CacheLoader.subproj/WebCacheLoaderConstants.h: Removed newly obsoleted attributes.
              * CacheLoader.subproj/WebCacheLoaderConstants.m: Ditto.
              * CacheLoader.subproj/WebHTTPProtocolHandler.m:
              (-[WebHTTPProtocolHandler shouldAttemptOriginLoad]): Removed attribute usage. Replace with calls to new API.
              (-[WebHTTPProtocolHandler shouldCacheResourceData]): Ditto.
              (-[WebHTTPProtocolHandler requestMethod]): Ditto.
              (-[WebHTTPProtocolHandler requestData]): Ditto.
              (-[WebHTTPProtocolHandler retryWithRedirectedURLAndResultCode:]): Ditto.
              (-[WebHTTPProtocolHandler testAndSetCacheObjectState:]): Ditto.
              * CacheLoader.subproj/WebResourceHandle.h: Removed attributeForKey method.
              * CacheLoader.subproj/WebResourceHandle.m:
              (-[WebResourceHandle description]): Removed attribute usage. Replace with calls to new API.
              (-[WebResourceHandle initWithRequest:client:]): WebResourceRequest no longer requires explicit validation.
              * CacheLoader.subproj/WebResourceHandleInternal.h: Removed processedAttributes.
              * CacheLoader.subproj/WebResourceHandleInternal.m:
              (-[WebResourceHandleInstanceVariables dealloc]): Ditto.
              * CacheLoader.subproj/WebResourceHandlePrivate.h: Removed _setAttribute method.
              * CacheLoader.subproj/WebResourceHandlePrivate.m: Ditto.
              * CacheLoader.subproj/WebResourceLoad.h: Removed processedAttributes ivar. Removed attributeForKey and setAttribute:forKey: methods.
              * CacheLoader.subproj/WebResourceLoad.m:
              (-[WebResourceLoad initWithRequest:]): Ditto.
              (-[WebResourceLoad description]): Ditto.
              (-[WebResourceLoad dealloc]): Ditto.
              * CacheLoader.subproj/WebResourceLoadManager.m:
              (+[WebResourceLoadKey keyWithHandle:]): Removed attributes from cache key. Need to put back some request info soon.
              (+[WebResourceLoadKey keyWithLoad:]): Ditto.
              * CacheLoader.subproj/WebResourceRequest.h: Removed attributes ivar. Added method, headers, extraCookies and data ivars. 		Added getter and setter methods for each of the new ivars.
              * CacheLoader.subproj/WebResourceRequest.m:
              (-[WebResourceRequest initWithURL:]): API and implementation rejiggering to deal with removing attributes from the init methods.
              (-[WebResourceRequest initWithURL:flags:]): Ditto.
              (-[WebResourceRequest initWithURL:userAgent:flags:]): Ditto.
              (-[WebResourceRequest method]): Added.
              (-[WebResourceRequest setMethod:]): Added.
              (-[WebResourceRequest headers]): Added.
              (-[WebResourceRequest setHeaders:]): Added.
              (-[WebResourceRequest referrer]): Added.
              (-[WebResourceRequest setReferrer:]): Added.
              (-[WebResourceRequest extraCookies]): Added.
              (-[WebResourceRequest setExtraCookies:]): Added.
              (-[WebResourceRequest data]): Added.
              (-[WebResourceRequest setData:]): Added.
              (-[WebResourceRequest flags]): Just moved method in the file. No changes.
              (-[WebResourceRequest protocolHandlerClass]): Ditto.
              (-[WebResourceRequest copyWithZone:]): Made sure new ivars get copied.
              (-[WebResourceRequest dealloc]): Added new ivars.
              * CacheLoader.subproj/WebSimpleHTTPProtocolHandler.m:
              (-[WebSimpleHTTPProtocolHandler createHTTPRequest]): Removed attribute usage. Replace with calls to new API.
              * WebFoundation.exp: Removed attribute key exports.
      
      WebKit:
      
              Major change to the API and design of WebFoundation. WebKit has been modified
      	to use the new API.
      
              WebFoundation attributes, as a design concept, are now completely gone. The old usages of
              attributes have been replaced with new API on the WebResourceRequest
              and WebResourceResponse classes.
      
              * Plugins.subproj/WebPluginStream.h: Removed attribute usage in init API. No need for replacement.
              * Plugins.subproj/WebPluginStream.m:
              (-[WebNetscapePluginStream initWithURL:pluginPointer:]): Removed attribute usage in init API.
              (-[WebNetscapePluginStream initWithURL:pluginPointer:notifyData:]): Ditto.
              (-[WebNetscapePluginStream dealloc]): Remove attribute release.
              (-[WebNetscapePluginStream startLoad]): Removed attribute usage. Replace with calls to new API.
              (-[WebNetscapePluginStream receivedData:withHandle:]): Ditto.
              * Plugins.subproj/WebPluginView.m:
              (-[WebNetscapePluginView pluginURLFromCString:]): Added this helper method.
              (-[WebNetscapePluginView loadRequest:inTarget:withNotifyData:]): Added.
              (-[WebNetscapePluginView getURLNotify:target:notifyData:]): Modified to call new loadRequest:inTarget:withNotifyData: method.
              (-[WebNetscapePluginView getURL:target:]): Ditto.
              (-[WebNetscapePluginView postURLNotify:target:len:buf:file:notifyData:]): Ditto.
              * WebCoreSupport.subproj/WebBridge.h: Removed attribute usage in loadURL API. No need for replacement.
              * WebCoreSupport.subproj/WebBridge.m: Added loadRequest:withParent:
              (-[WebBridge createChildFrameNamed:withURL:renderPart:allowsScrolling:marginWidth:marginHeight:]):
              (-[WebBridge startLoadingResource:withURL:referrer:]): Removed attribute usage. Replace with calls to new API.
              (-[WebBridge isReloading]): Ditto.
              (-[WebBridge loadRequest:withParent:]): Added.
              (-[WebBridge loadURL:]): Modified to use new loadRequest:withParent: API
              (-[WebBridge loadURL:referrer:]): Ditto.
              (-[WebBridge loadURL:flags:withParent:]): Ditto.
              (-[WebBridge postWithURL:data:]): Ditto.
              * WebCoreSupport.subproj/WebSubresourceClient.h: Changed API to use an NSString referrer instead of an attributes dictionary.
              * WebCoreSupport.subproj/WebSubresourceClient.m:
              (+[WebSubresourceClient startLoadingResource:withURL:referrer:forDataSource:]): Removed attribute usage. Replace with calls to new API.
              * WebView.subproj/WebDataSource.h: Added initWithRequest: method.
              * WebView.subproj/WebDataSource.m:
              (-[WebDataSource initWithURL:]): Removed attribute usage in init API.
              (-[WebDataSource initWithURL:flags:]): Ditto.
              (-[WebDataSource initWithRequest:]): Added.
              (-[WebDataSource request]): Added.
              * WebView.subproj/WebDataSourcePrivate.h: Added WebResourceRequest ivar.
              * WebView.subproj/WebDataSourcePrivate.m:
              (-[WebDataSourcePrivate dealloc]): Added WebResourceRequest ivar.
              (-[WebDataSource _startLoading:]): Removed attribute usage. Replace with calls to new API.
              * WebView.subproj/WebFrame.m:
              (-[WebFrame reload:]): Removed attribute usage. Replace with calls to new API.
              * WebView.subproj/WebFramePrivate.m:
              (-[WebFrame _goToItem:withFrameLoadType:]): Use new WebDataSource init API.
      
      WebBrowser:
      
      	Updated to use new referrer ivar and accessor methods on WebResourceRequest, instead
      	of using attributes.
      
              * BrowserDocument.m:
              (-[BrowserDocument _goToURL:referrer:withFallbackURLs:])
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@2033 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4af87c97
    • darin's avatar
      WebCore: · 6b20527b
      darin authored
      	WebCore part of support for the "Referer" header.
      
              * khtml/khtml_part.cpp:
              (KHTMLPart::urlSelected): Use much more of this function.
              (KHTMLPart::submitForm): Use much more of this function.
      
              * kwq/KWQKHTMLPartBrowserExtension.mm:
              (KHTMLPartBrowserExtension::createNewWindow): Parse the
      	referrer out of the URLArgs and pass it along.
      
              * kwq/KWQKHTMLPartImpl.h: Change parameters to urlSelected
      	and submitForm to allow KHTML to do more of the work. Add
      	referrer helper function.
              * kwq/KWQKHTMLPartImpl.mm:
              (KWQKHTMLPartImpl::bridgeForFrameName): Pass referrer of nil
      	when opening a blank window.
              (KWQKHTMLPartImpl::referrer): Extract referrer from metadata.
              (KWQKHTMLPartImpl::openURLRequest): Pass referrer from args
      	through the bridge.
              (KWQKHTMLPartImpl::urlSelected): Remove code that duplicates
      	what's in KHTMLPart. Also pass referrer from args through the
      	bridge as above.
              (KWQKHTMLPartImpl::submitForm): Ditto.
      
              * kwq/kdeui/kmessagebox.h: Add information member function.
              * kwq/KWQKMessageBox.mm: (KMessageBox::information): Implement.
      
              * kwq/kdecore/kurl.h: Add encode_string member function.
              * kwq/KWQKURL.mm:
              (KURL::KURL): Fix buffer overflow bug, and add an assert so we
      	will notice these overflows even when using the static buffer.
              (KURL::parse): Added a similar assert, even though I didn't fix
      	any overflow bug here.
              (KURL::encode_string): Implemented this, but didn't test it.
      
              * kwq/KWQLoaderImpl.mm: (KWQServeRequest): Pass referrer through
      	the bridge.
      
              * kwq/WebCoreBridge.h: Add referrer parameters to loadURL, postWithURL,
      	openNewWindowWithURL, and startLoadingResource.
      
              * kwq/kparts/browserextension.h: Implement setDoPost, setContentType,
      	const version of metaData().
      
              * kwq/qt/qstring.h: Implement fromLatin1(const char *, int).
      
              * WebCore-tests.exp: Not sure why, but I needed to remove isMalformed,
      	and the tests seem to still work with it removed.
      
      WebKit:
      
      	WebKit part of support for the "Referer" header.
      
              * WebCoreSupport.subproj/WebBridge.m:
              (-[WebBridge openNewWindowWithURL:referrer:frameName:]): Add referrer parameter,
      	and pass it on to the window context method.
              (-[WebBridge addAttributeForReferrer:toDictionary:]): Added.
              (-[WebBridge attributesForReferrer:]): Added.
              (-[WebBridge startLoadingResource:withURL:referrer:]): Put the referrer into an
      	attributes dictionary and pass it to the WebSubresourceClient method.
              (-[WebBridge loadURL:referrer:]): Put the referrer into an attributes dictionary
      	and pass it along.
              (-[WebBridge postWithURL:referrer:data:]): Put the referrer into an attributes
      	dictionary and pass it along.
      
              * WebCoreSupport.subproj/WebSubresourceClient.h: Add an attributes parameter to
      	the method that starts loading.
              * WebCoreSupport.subproj/WebSubresourceClient.m:
              (+[WebSubresourceClient startLoadingResource:withURL:attributes:forDataSource:]):
      	Put the attributes into the WebResourceRequest.
      
              * WebView.subproj/WebController.h: Add a referrer parameter to the WebWindowContext
      	openNewWindowWithURL method.
              * WebView.subproj/WebDefaultContextMenuHandler.m:
              (-[WebDefaultContextMenuHandler openNewWindowWithURL:referrer:]): Pass the referrer
      	on to the window context.
              (-[WebDefaultContextMenuHandler openLinkInNewWindow:]): Pass nil for the referrer
      	for now. Not sure if this is best.
              (-[WebDefaultContextMenuHandler openImageInNewWindow:]): Ditto.
              (-[WebDefaultContextMenuHandler openFrameInNewWindow:]): Ditto.
      
              * WebView.subproj/WebFrame.m: (-[WebFrame frameNamed:]): Pass nil for the referrer
      	here where we are creating a new empty window.
      
              * WebView.subproj/WebHTMLViewPrivate.m:
              (-[WebHTMLView _continueAfterClickPolicyForEvent:]): Pass nil for the referrer here
      	in the WebClickPolicyOpenNewWindow. The policy API doesn't provide a way for the
      	policy handler to specify the referrer; we might want to change that later.
      
              * Plugins.subproj/WebPluginView.m:
              (-[WebNetscapePluginView loadURL:inTarget:withNotifyData:andHandleAttributes:]):
      	Pass nil for the referrer here. But it seems wrong that this function discards
      	the handle attributes that are passed in for the case where it opens a new window.
      
      WebBrowser:
      
      	WebBrowser part of support for the "Referer" header.
      
              * BrowserWebController.m:
              (-[BrowserWebController openNewWindowWithURL:referrer:]): Add referrer parameter, and
      	pass it through to the document controller.
              (-[BrowserWebController pluginNotFoundSheetEnded:returnCode:contextInfo:]):
      	Pass nil for referrer.
      
              * BrowserDocumentController.h: Add referrer parameter to the long version of goToURL.
              * BrowserDocumentController.m:
              (-[BrowserDocumentController openDocumentWithContentsOfURL:referrer:display:]):
      	Change to not all makeDocumentWithContentsOfURL and instead create the document
      	here, because we need to pass the referrer through.
              (-[BrowserDocumentController openDocumentWithContentsOfURL:display:]): Just call
      	the version above that has a referrer, passing a referrer of nil.
              (-[BrowserDocumentController _goToEachURL:referrer:forceNewWindow:orderFront:]):
      	Pas referrer to goToURL and to openDocumentWithContentsOfURL.
              (-[BrowserDocumentController goToEachURL:]): Pass nil for referrer.
              (-[BrowserDocumentController goToURL:referrer:forceNewWindow:orderFront:]):
      	Add referrer parameter, and pass through to _goToEachURL.
      
              * BrowserDocument.h: Add _openWithReferrer field, initWithContentsOfURL method
      	that takes a referrer, and goToURL method that takes a referrer.
              * BrowserDocument.m:
              (-[BrowserDocument initWithContentsOfURL:referrer:]): Set _openWithReferrer.
              (-[BrowserDocument dealloc]): Release _openWithReferrer.
              (-[BrowserDocument _goToURL:referrer:withFallbackURLs:]): Add referrer parameter.
      	Set up attributes dictionary with referrer in it.
              (-[BrowserDocument goToURL:]): Call through to goToURL:referrer:.
              (-[BrowserDocument goToURL:referrer:]): Added. Passes referrer on.
              (-[BrowserDocument goToInitialURL:]): Pass _openWithReferrer.
              (-[BrowserDocument tryMultipleURLs:]): Pass nil for referrer.
      
              * ActivityViewer.m: (-[ActivityViewer _goToClickedItem:]): Pass nil for referrer.
              * AppController.m:
              (-[AppController application:openFile:]): Ditto.
              (-[AppController handleGURLEvent:withReplyEvent:]): Ditto.
              * BrowserWebBookmarkExtras.m: (-[WebBookmark _goToForceNewWindow:]): Ditto.
              * Test/PageLoadTestRunner.m: (-[PageLoadTestRunner goToPage]): Ditto.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@2032 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      6b20527b
  29. 09 Sep, 2002 1 commit
    • darin's avatar
      WebFoundation: · fd1e7a4f
      darin authored
              * Misc.subproj/WebAssertions.h: Use 0 instead of undefined
      	for the XXX_DISABLED macros to be more consistent with the
      	case where they are explicitly defined on purpose.
      
              * CacheLoader.subproj/WebHTTPProtocolHandler.m:
      	Use #if ! rather than #ifndef with LOG_DISABLED, since it
      	is set to 0 rather than not defined when LOG is enabled.
      
              * CacheLoader.subproj/WebResourceLoad.m:
      	Same, but for ERROR, rather than LOG.
      
      WebKit:
      
              * Plugins.subproj/WebPluginStream.m:
              * Plugins.subproj/WebPluginView.m:
      	Use #if ! rather than #ifndef with LOG_DISABLED, since it
      	is set to 0 rather than not defined when LOG is enabled.
      
      WebBrowser:
      
              * BookmarksController.m:
              * GlobalHistory.m:
      	Use #if ! rather than #ifndef with LOG_DISABLED, since it
      	is set to 0 rather than not defined when LOG is enabled.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@2002 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      fd1e7a4f