Changeset 207081 in webkit


Ignore:
Timestamp:
Oct 11, 2016 3:40:16 AM (8 years ago)
Author:
Carlos Garcia Campos
Message:

Merge r206074 - MainThreadBridge needs an isolatedCopy() of SecurityOrigin
<https://webkit.org/b/162116>
<rdar://problem/27525870>

Reviewed by Carlos Garcia Campos.

Covered by existing tests.

  • loader/WorkerThreadableLoader.cpp:

(WebCore::WorkerThreadableLoader::MainThreadBridge::MainThreadBridge):
Make an isolatedCopy() of SecurityOrigin here since that's the
correct idiom to use when the object is passed from a worker
thread back to the main thread. Fix suggested by Daniel Bates.

Location:
releases/WebKitGTK/webkit-2.14/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • releases/WebKitGTK/webkit-2.14/Source/WebCore/ChangeLog

    r207080 r207081  
     12016-09-17  David Kilzer  <ddkilzer@apple.com>
     2
     3        MainThreadBridge needs an isolatedCopy() of SecurityOrigin
     4        <https://webkit.org/b/162116>
     5        <rdar://problem/27525870>
     6
     7        Reviewed by Carlos Garcia Campos.
     8
     9        Covered by existing tests.
     10
     11        * loader/WorkerThreadableLoader.cpp:
     12        (WebCore::WorkerThreadableLoader::MainThreadBridge::MainThreadBridge):
     13        Make an isolatedCopy() of SecurityOrigin here since that's the
     14        correct idiom to use when the object is passed from a worker
     15        thread back to the main thread.  Fix suggested by Daniel Bates.
     16
    1172016-09-16  Chris Dumez  <cdumez@apple.com>
    218
  • releases/WebKitGTK/webkit-2.14/Source/WebCore/loader/WorkerThreadableLoader.cpp

    r205113 r207081  
    109109    ASSERT(contentSecurityPolicy);
    110110
    111     auto contentSecurityPolicyCopy = std::make_unique<ContentSecurityPolicy>(*securityOrigin);
     111    auto contentSecurityPolicyCopy = std::make_unique<ContentSecurityPolicy>(securityOrigin->isolatedCopy());
    112112    contentSecurityPolicyCopy->copyStateFrom(contentSecurityPolicy);
    113113
Note: See TracChangeset for help on using the changeset viewer.