[Webkit-unassigned] [Bug 189709] New: InjectedBundle parameters often need initialization function called before unarchiving

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Sep 18 13:43:16 PDT 2018


https://bugs.webkit.org/show_bug.cgi?id=189709

            Bug ID: 189709
           Summary: InjectedBundle parameters often need initialization
                    function called before unarchiving
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebKit2
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: bfulgham at webkit.org

In Bug 186788 I revised the InjectedBundle serialization to use NSSecureCoding. Since some users of InjectedBundles want to serialize custom classes, they need to tell the WebContent process which classes it is allowed to safely serialize. This is generally done in the bundle initialization function.

Unfortunately, InjectedBundle::initialize attempts to decode the bundle parameters before running the initialization function, so misses any custom classes needed by the embedding application.

This patch checks if serialization of the bundle parameters succeeded. If it did not, it attempts to decode the parameters after the initialization function runs so that it can take advantage of any new classes registered by the embedding application.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20180918/627987c4/attachment.html>


More information about the webkit-unassigned mailing list