• 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.
    	- 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:]):
            * 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
WebBaseNetscapePluginView.m 26.5 KB