Changeset 136598 in webkit


Ignore:
Timestamp:
Dec 4, 2012, 5:05:53 PM (12 years ago)
Author:
aestes@apple.com
Message:

[WebKit2] WKWebProcessPlugInBrowserContextControllers should be treated as type WKBrowsingContextControllerType for encoding purposes
https://bugs.webkit.org/show_bug.cgi?id=104063

Reviewed by Sam Weinig.

Objective-C message graphs can include browsing context controller
objects, which are decoded as WKWebProcessPlugInBrowserContextControllers
in the web process plug-in and as WKBrowsingContextControllers in the UI
process. Ensure we correctly encode WKWebProcessPlugInBrowserContextControllers
by treating them as type WKBrowsingContextControllerType.

  • Shared/mac/ObjCObjectGraphCoders.mm:

(WebKit::typeFromObject):

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r136594 r136598  
     12012-12-04  Andy Estes  <aestes@apple.com>
     2
     3        [WebKit2] WKWebProcessPlugInBrowserContextControllers should be treated as type WKBrowsingContextControllerType for encoding purposes
     4        https://bugs.webkit.org/show_bug.cgi?id=104063
     5
     6        Reviewed by Sam Weinig.
     7
     8        Objective-C message graphs can include browsing context controller
     9        objects, which are decoded as WKWebProcessPlugInBrowserContextControllers
     10        in the web process plug-in and as WKBrowsingContextControllers in the UI
     11        process. Ensure we correctly encode WKWebProcessPlugInBrowserContextControllers
     12        by treating them as type WKBrowsingContextControllerType.
     13
     14        * Shared/mac/ObjCObjectGraphCoders.mm:
     15        (WebKit::typeFromObject):
     16
    1172012-12-04  Simon Fraser  <simon.fraser@apple.com>
    218
  • trunk/Source/WebKit2/Shared/mac/ObjCObjectGraphCoders.mm

    r136141 r136598  
    7676        return NSDataType;
    7777#if defined(__LP64__) && defined(__clang__)
    78     if ([object isKindOfClass:[WKBrowsingContextController class]])
     78    if ([object isKindOfClass:[WKBrowsingContextController class]] || [object isKindOfClass:[WKWebProcessPlugInBrowserContextController class]])
    7979        return WKBrowsingContextControllerType;
    8080#endif
Note: See TracChangeset for help on using the changeset viewer.