Changeset 206074 in webkit


Ignore:
Timestamp:
Sep 17, 2016 4:14:38 AM (8 years ago)
Author:
ddkilzer@apple.com
Message:

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:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r206065 r206074  
     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  Yusuke Suzuki  <utatane.tea@gmail.com>
    218
  • trunk/Source/WebCore/loader/WorkerThreadableLoader.cpp

    r206009 r206074  
    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.