Changeset 128112 in webkit


Ignore:
Timestamp:
Sep 10, 2012 2:52:24 PM (12 years ago)
Author:
jer.noble@apple.com
Message:

NSInvalidArgumentException in WebFrameLoaderClient::shouldSendDoNotTrackHTTPHeader()
https://bugs.webkit.org/show_bug.cgi?id=96320

Reviewed by Geoffrey Garen.

Client was being cached as the FrameLoaderClient, but requests were sent to the ResourceLoadClient.

  • WebCoreSupport/WebFrameLoaderClient.mm:

(WebFrameLoaderClient::shouldSendDoNotTrackHTTPHeader): Send the request to the FrameLoadDelegate.

  • WebView/WebDelegateImplementationCaching.h:
  • WebView/WebDelegateImplementationCaching.mm:

(CallFrameLoadDelegateReturningBoolean): Added.

Location:
trunk/Source/WebKit/mac
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/mac/ChangeLog

    r128081 r128112  
     12012-09-10  Jer Noble  <jer.noble@apple.com>
     2
     3        NSInvalidArgumentException in WebFrameLoaderClient::shouldSendDoNotTrackHTTPHeader()
     4        https://bugs.webkit.org/show_bug.cgi?id=96320
     5
     6        Reviewed by Geoffrey Garen.
     7
     8        Client was being cached as the FrameLoaderClient, but requests were sent to the ResourceLoadClient.
     9
     10        * WebCoreSupport/WebFrameLoaderClient.mm:
     11        (WebFrameLoaderClient::shouldSendDoNotTrackHTTPHeader): Send the request to the FrameLoadDelegate.
     12        * WebView/WebDelegateImplementationCaching.h:
     13        * WebView/WebDelegateImplementationCaching.mm:
     14        (CallFrameLoadDelegateReturningBoolean): Added.
     15
    1162012-09-07  Jer Noble  <jer.noble@apple.com>
    217
  • trunk/Source/WebKit/mac/WebCoreSupport/WebFrameLoaderClient.mm

    r128081 r128112  
    19871987
    19881988    if (implementations->shouldSendDoNotTrackHTTPHeaderFunc)
    1989         return CallResourceLoadDelegateReturningBoolean(YES, implementations->shouldSendDoNotTrackHTTPHeaderFunc, webView, @selector(webViewShouldSendDoNotTrackHTTPHeader:));
     1989        return CallFrameLoadDelegateReturningBoolean(YES, implementations->shouldSendDoNotTrackHTTPHeaderFunc, webView, @selector(webViewShouldSendDoNotTrackHTTPHeader:));
    19901990    return false;
    19911991}
  • trunk/Source/WebKit/mac/WebView/WebDelegateImplementationCaching.h

    r128081 r128112  
    131131id CallFrameLoadDelegate(IMP, WebView *, SEL, id, NSTimeInterval, id, id);
    132132
     133BOOL CallFrameLoadDelegateReturningBoolean(BOOL, IMP, WebView *, SEL);
     134
    133135id CallResourceLoadDelegate(IMP, WebView *, SEL, id, id);
    134136id CallResourceLoadDelegate(IMP, WebView *, SEL, id, id, id);
  • trunk/Source/WebKit/mac/WebView/WebDelegateImplementationCaching.mm

    r128081 r128112  
    476476}
    477477
     478BOOL CallFrameLoadDelegateReturningBoolean(BOOL result, IMP implementation, WebView *self, SEL selector)
     479{
     480    @try {
     481        return reinterpret_cast<BOOL (*)(id, SEL, WebView *)>(objc_msgSend)(self->_private->frameLoadDelegate, selector, self);
     482    } @catch(id exception) {
     483        ReportDiscardedDelegateException(selector, exception);
     484    }
     485    return result;
     486}
     487
    478488id CallResourceLoadDelegate(IMP implementation, WebView *self, SEL selector, id object1, id object2)
    479489{
Note: See TracChangeset for help on using the changeset viewer.