Changeset 228241 in webkit


Ignore:
Timestamp:
Feb 7, 2018 1:55:23 PM (6 years ago)
Author:
commit-queue@webkit.org
Message:

ASSERTION FAILED: m_timeOrigin in Performance::Performance()
https://bugs.webkit.org/show_bug.cgi?id=182558
<rdar://problem/37297551>

Patch by Youenn Fablet <youenn@apple.com> on 2018-02-07
Reviewed by Chris Dumez.

Source/WebCore:

Test: http/wpt/fetch/cors-preflight-star.any.serviceworker.html

  • loader/CrossOriginPreflightChecker.cpp:

(WebCore::CrossOriginPreflightChecker::startPreflight):

LayoutTests:

Make use of WPT cors-preflight-star.any.js test in service worker.
This test should be removed once WPT will run any.js tests in service workers as well as workers and window.

  • http/wpt/service-workers/cors-preflight-star.any.js: Added.
  • http/wpt/service-workers/cors-preflight-star.any.serviceworker-expected.txt: Added.
  • http/wpt/service-workers/cors-preflight-star.any.serviceworker.html: Added.
Location:
trunk
Files:
3 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r228240 r228241  
     12018-02-07  Youenn Fablet  <youenn@apple.com>
     2
     3        ASSERTION FAILED: m_timeOrigin in Performance::Performance()
     4        https://bugs.webkit.org/show_bug.cgi?id=182558
     5        <rdar://problem/37297551>
     6
     7        Reviewed by Chris Dumez.
     8
     9        Make use of WPT cors-preflight-star.any.js test in service worker.
     10        This test should be removed once WPT will run any.js tests in service workers as well as workers and window.
     11
     12        * http/wpt/service-workers/cors-preflight-star.any.js: Added.
     13        * http/wpt/service-workers/cors-preflight-star.any.serviceworker-expected.txt: Added.
     14        * http/wpt/service-workers/cors-preflight-star.any.serviceworker.html: Added.
     15
    1162018-02-07  Wenson Hsieh  <wenson_hsieh@apple.com>
    217
  • trunk/Source/WebCore/ChangeLog

    r228240 r228241  
     12018-02-07  Youenn Fablet  <youenn@apple.com>
     2
     3        ASSERTION FAILED: m_timeOrigin in Performance::Performance()
     4        https://bugs.webkit.org/show_bug.cgi?id=182558
     5        <rdar://problem/37297551>
     6
     7        Reviewed by Chris Dumez.
     8
     9        Test: http/wpt/fetch/cors-preflight-star.any.serviceworker.html
     10
     11        * loader/CrossOriginPreflightChecker.cpp:
     12        (WebCore::CrossOriginPreflightChecker::startPreflight):
     13
    1142018-02-07  Wenson Hsieh  <wenson_hsieh@apple.com>
    215
  • trunk/Source/WebCore/loader/CrossOriginPreflightChecker.cpp

    r227270 r228241  
    109109    options.contentSecurityPolicyImposition = ContentSecurityPolicyImposition::SkipPolicyCheck;
    110110    options.serviceWorkersMode = ServiceWorkersMode::None;
     111    options.initiatorContext = m_loader.options().initiatorContext;
    111112
    112113    CachedResourceRequest preflightRequest(createAccessControlPreflightRequest(m_request, m_loader.securityOrigin(), m_loader.referrer()), options);
Note: See TracChangeset for help on using the changeset viewer.