Skip to content
  • tsepez@chromium.org's avatar
    Source/WebCore: Pass Content-Security-Policy directives to worker threads. · 34a3d9f3
    tsepez@chromium.org authored
    https://bugs.webkit.org/show_bug.cgi?id=73242
    
    Reviewed by David Levin.
    
    Tests: http/tests/security/contentSecurityPolicy/shared-worker-connect-src-allowed.html
           http/tests/security/contentSecurityPolicy/shared-worker-connect-src-blocked.html
           http/tests/security/contentSecurityPolicy/worker-connect-src-allowed.html
           http/tests/security/contentSecurityPolicy/worker-connect-src-blocked.html
    
    * page/ContentSecurityPolicy.h:
    (WebCore::ContentSecurityPolicy::policy):
    (WebCore::ContentSecurityPolicy::headerType):
    * workers/DedicatedWorkerContext.cpp:
    (WebCore::DedicatedWorkerContext::DedicatedWorkerContext):
    * workers/DedicatedWorkerContext.h:
    (WebCore::DedicatedWorkerContext::create):
    * workers/DedicatedWorkerThread.cpp:
    (WebCore::DedicatedWorkerThread::create):
    (WebCore::DedicatedWorkerThread::DedicatedWorkerThread):
    (WebCore::DedicatedWorkerThread::createWorkerContext):
    * workers/DedicatedWorkerThread.h:
    * workers/De...
    34a3d9f3