⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 252427 in webkit


Ignore:
Timestamp:
Nov 13, 2019, 1:31:26 PM (7 years ago)
Author:
youenn@apple.com
Message:

Several XHR and CORS tests are flaky due to inconsistent order of console messages
https://bugs.webkit.org/show_bug.cgi?id=179607

Reviewed by Alex Christensen.

LayoutTests/imported/w3c:

  • web-platform-tests/xhr/access-control-and-redirects-async-expected.txt:
  • web-platform-tests/xhr/access-control-and-redirects-async-same-origin-expected.txt:
  • web-platform-tests/xhr/access-control-preflight-async-header-denied-expected.txt:
  • web-platform-tests/xhr/access-control-preflight-async-method-denied-expected.txt:
  • web-platform-tests/xhr/access-control-preflight-async-not-supported-expected.txt:
  • web-platform-tests/xhr/access-control-preflight-sync-header-denied-expected.txt:
  • web-platform-tests/xhr/access-control-preflight-sync-method-denied-expected.txt:
  • web-platform-tests/xhr/access-control-preflight-sync-not-supported-expected.txt:
  • web-platform-tests/xhr/event-error.sub-expected.txt:
  • web-platform-tests/xhr/send-conditional-cors-expected.txt:

LayoutTests:

Use DumpJSConsoleLogInStdErr to remove console lines.

Location:
trunk/LayoutTests
Files:
13 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r252420 r252427  
     12019-11-13  Youenn Fablet  <youenn@apple.com>
     2
     3        Several XHR and CORS tests are flaky due to inconsistent order of console messages
     4        https://bugs.webkit.org/show_bug.cgi?id=179607
     5
     6        Reviewed by Alex Christensen.
     7
     8        Use DumpJSConsoleLogInStdErr to remove console lines.
     9        * TestExpectations:
     10
    1112019-11-13  Devin Rousso  <drousso@apple.com>
    212
  • trunk/LayoutTests/TestExpectations

    r252363 r252427  
    487487imported/w3c/web-platform-tests/cors/request-headers.htm [ DumpJSConsoleLogInStdErr ]
    488488imported/w3c/web-platform-tests/xhr/event-error-order.sub.html [ DumpJSConsoleLogInStdErr ]
    489 
    490 imported/w3c/web-platform-tests/xhr/event-error.sub.html [ Failure ]
     489imported/w3c/web-platform-tests/xhr/event-error.sub.html [ DumpJSConsoleLogInStdErr ]
     490
    491491imported/w3c/web-platform-tests/xhr/send-authentication-basic-setrequestheader-existing-session.htm [ Failure ]
    492492imported/w3c/web-platform-tests/xhr/send-authentication-competing-names-passwords.htm [ Failure ]
     
    719719
    720720imported/w3c/web-platform-tests/xhr/send-redirect-bogus-sync.htm [ DumpJSConsoleLogInStdErr ]
    721 
    722 webkit.org/b/179607 imported/w3c/web-platform-tests/xhr/access-control-and-redirects-async.htm [ Pass Failure ]
    723 webkit.org/b/179607 imported/w3c/web-platform-tests/xhr/access-control-and-redirects-async-same-origin.htm [ Pass Failure ]
    724 webkit.org/b/179608 imported/w3c/web-platform-tests/xhr/access-control-preflight-async-header-denied.htm [ Failure ]
    725 webkit.org/b/179608 imported/w3c/web-platform-tests/xhr/access-control-preflight-async-method-denied.htm [ Failure ]
    726 webkit.org/b/179608 imported/w3c/web-platform-tests/xhr/access-control-preflight-async-not-supported.htm [ Failure ]
    727 webkit.org/b/179608 imported/w3c/web-platform-tests/xhr/access-control-preflight-sync-header-denied.htm [ Failure ]
    728 webkit.org/b/179608 imported/w3c/web-platform-tests/xhr/access-control-preflight-sync-method-denied.htm [ Failure ]
    729 webkit.org/b/179608 imported/w3c/web-platform-tests/xhr/access-control-preflight-sync-not-supported.htm [ Failure ]
    730 webkit.org/b/179608 imported/w3c/web-platform-tests/xhr/send-conditional-cors.htm [ Failure ]
    731 webkit.org/b/179611 imported/w3c/web-platform-tests/xhr/send-entity-body-document.htm [ Pass Failure ]
     721webkit.org/b/179607 imported/w3c/web-platform-tests/xhr/access-control-and-redirects-async.htm [ DumpJSConsoleLogInStdErr ]
     722webkit.org/b/179607 imported/w3c/web-platform-tests/xhr/access-control-and-redirects-async-same-origin.htm [ DumpJSConsoleLogInStdErr ]
     723webkit.org/b/179608 imported/w3c/web-platform-tests/xhr/access-control-preflight-async-header-denied.htm [ DumpJSConsoleLogInStdErr ]
     724webkit.org/b/179608 imported/w3c/web-platform-tests/xhr/access-control-preflight-async-method-denied.htm [ DumpJSConsoleLogInStdErr ]
     725webkit.org/b/179608 imported/w3c/web-platform-tests/xhr/access-control-preflight-async-not-supported.htm [ DumpJSConsoleLogInStdErr ]
     726webkit.org/b/179608 imported/w3c/web-platform-tests/xhr/access-control-preflight-sync-header-denied.htm [ DumpJSConsoleLogInStdErr ]
     727webkit.org/b/179608 imported/w3c/web-platform-tests/xhr/access-control-preflight-sync-method-denied.htm [ DumpJSConsoleLogInStdErr ]
     728webkit.org/b/179608 imported/w3c/web-platform-tests/xhr/access-control-preflight-sync-not-supported.htm [ DumpJSConsoleLogInStdErr ]
     729webkit.org/b/179608 imported/w3c/web-platform-tests/xhr/send-conditional-cors.htm [ DumpJSConsoleLogInStdErr ]
     730
    732731webkit.org/b/184066 imported/w3c/web-platform-tests/IndexedDB/nested-cloning-large-multiple.html [ Skip ]
    733732webkit.org/b/184066 imported/w3c/web-platform-tests/IndexedDB/nested-cloning-large.html [ Skip ]
  • trunk/LayoutTests/imported/w3c/ChangeLog

    r252397 r252427  
     12019-11-13  Youenn Fablet  <youenn@apple.com>
     2
     3        Several XHR and CORS tests are flaky due to inconsistent order of console messages
     4        https://bugs.webkit.org/show_bug.cgi?id=179607
     5
     6        Reviewed by Alex Christensen.
     7
     8        * web-platform-tests/xhr/access-control-and-redirects-async-expected.txt:
     9        * web-platform-tests/xhr/access-control-and-redirects-async-same-origin-expected.txt:
     10        * web-platform-tests/xhr/access-control-preflight-async-header-denied-expected.txt:
     11        * web-platform-tests/xhr/access-control-preflight-async-method-denied-expected.txt:
     12        * web-platform-tests/xhr/access-control-preflight-async-not-supported-expected.txt:
     13        * web-platform-tests/xhr/access-control-preflight-sync-header-denied-expected.txt:
     14        * web-platform-tests/xhr/access-control-preflight-sync-method-denied-expected.txt:
     15        * web-platform-tests/xhr/access-control-preflight-sync-not-supported-expected.txt:
     16        * web-platform-tests/xhr/event-error.sub-expected.txt:
     17        * web-platform-tests/xhr/send-conditional-cors-expected.txt:
     18
    1192019-11-13  Rob Buis  <rbuis@igalia.com>
    220
  • trunk/LayoutTests/imported/w3c/web-platform-tests/xhr/access-control-and-redirects-async-expected.txt

    r252348 r252427  
    1 CONSOLE MESSAGE: Cross-origin redirection to http://127.0.0.1:8800/xhr/resources/access-control-basic-allow-star.py denied by Cross-Origin Resource Sharing policy: Origin http://localhost:8800 is not allowed by Access-Control-Allow-Origin.
    2 CONSOLE MESSAGE: XMLHttpRequest cannot load http://127.0.0.1:8800/xhr/resources/redirect-cors.py?location=http://127.0.0.1:8800/xhr/resources/access-control-basic-allow-star.py& due to access control checks.
    3 CONSOLE MESSAGE: Cross-origin redirection to http://127.0.0.1:8800/xhr/resources/access-control-basic-allow-star.py denied by Cross-Origin Resource Sharing policy: redirection URL http://username:password@127.0.0.1:8800/xhr/resources/access-control-basic-allow-star.py has credentials
    4 CONSOLE MESSAGE: XMLHttpRequest cannot load http://127.0.0.1:8800/xhr/resources/redirect-cors.py?location=http://username:password@127.0.0.1:8800/xhr/resources/access-control-basic-allow-star.py&allow_origin=true due to access control checks.
    5 CONSOLE MESSAGE: Cross-origin redirection to foo://bar.cgi denied by Cross-Origin Resource Sharing policy: not allowed to follow a cross-origin CORS redirection with non CORS scheme
    6 CONSOLE MESSAGE: XMLHttpRequest cannot load http://127.0.0.1:8800/xhr/resources/redirect-cors.py?location=foo://bar.cgi&allow_origin=true due to access control checks.
    7 CONSOLE MESSAGE: Preflight response is not successful
    8 CONSOLE MESSAGE: XMLHttpRequest cannot load http://127.0.0.1:8800/xhr/resources/redirect-cors.py?location=http://127.0.0.1:8800/xhr/resources/access-control-basic-allow-star.py&allow_origin=true&redirect_preflight=true due to access control checks.
    9 CONSOLE MESSAGE: Preflight response is not successful
    10 CONSOLE MESSAGE: XMLHttpRequest cannot load http://127.0.0.1:8800/xhr/resources/redirect-cors.py?location=http://127.0.0.1:8800/xhr/resources/access-control-basic-allow-star.py&allow_origin=true&allow_header=x-test&redirect_preflight=true due to access control checks.
    111
    122PASS Request is redirected without CORS headers to a response with Access-Control-Allow-Origin=*
  • trunk/LayoutTests/imported/w3c/web-platform-tests/xhr/access-control-and-redirects-async-same-origin-expected.txt

    r252349 r252427  
    1 CONSOLE MESSAGE: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true.
    2 CONSOLE MESSAGE: XMLHttpRequest cannot load http://127.0.0.1:8800/xhr/resources/access-control-basic-allow-star.py due to access control checks.
    3 CONSOLE MESSAGE: Credentials flag is true, but Access-Control-Allow-Credentials is not "true".
    4 CONSOLE MESSAGE: XMLHttpRequest cannot load http://127.0.0.1:8800/xhr/resources/access-control-basic-allow-no-credentials.py due to access control checks.
    51
    62PASS Request without credentials is redirected to a cross-origin response with Access-Control-Allow-Origin=* (with star)
  • trunk/LayoutTests/imported/w3c/web-platform-tests/xhr/access-control-preflight-async-header-denied-expected.txt

    r235354 r252427  
    1 CONSOLE MESSAGE: XMLHttpRequest cannot load http://127.0.0.1:8800/XMLHttpRequest/resources/access-control-preflight-denied.py?token=e3414997-b8d9-44c5-ac25-b008d36bee33&command=header. Request header field x-test is not allowed by Access-Control-Allow-Headers.
    21
    32PASS Async request denied at preflight
  • trunk/LayoutTests/imported/w3c/web-platform-tests/xhr/access-control-preflight-async-method-denied-expected.txt

    r235354 r252427  
    1 CONSOLE MESSAGE: XMLHttpRequest cannot load http://127.0.0.1:8800/XMLHttpRequest/resources/access-control-preflight-denied.py?token=1962aedd-a0e5-4366-a927-abb4eb2273ff&command=method. Method DELETE is not allowed by Access-Control-Allow-Methods.
    21
    32PASS Async request denied at preflight
  • trunk/LayoutTests/imported/w3c/web-platform-tests/xhr/access-control-preflight-async-not-supported-expected.txt

    r235354 r252427  
    1 CONSOLE MESSAGE: XMLHttpRequest cannot load http://127.0.0.1:8800/XMLHttpRequest/resources/access-control-preflight-denied.py?token=9eb4bbeb-4ea2-4594-a908-491a02378bd9. Method PUT is not allowed by Access-Control-Allow-Methods.
    21
    32PASS Async PUT request denied at preflight
  • trunk/LayoutTests/imported/w3c/web-platform-tests/xhr/access-control-preflight-sync-header-denied-expected.txt

    r235354 r252427  
    1 CONSOLE MESSAGE: line 26: XMLHttpRequest cannot load http://127.0.0.1:8800/XMLHttpRequest/resources/access-control-preflight-denied.py?token=aaa7efac-176b-4187-a85f-9d06157bf792&command=header. Request header field x-test is not allowed by Access-Control-Allow-Headers.
    21
    32PASS Sync request denied at preflight
  • trunk/LayoutTests/imported/w3c/web-platform-tests/xhr/access-control-preflight-sync-method-denied-expected.txt

    r235354 r252427  
    1 CONSOLE MESSAGE: line 25: XMLHttpRequest cannot load http://127.0.0.1:8800/XMLHttpRequest/resources/access-control-preflight-denied.py?token=b70429f0-0dd0-44b0-a5e8-dc0b7d355e72&command=method. Method DELETE is not allowed by Access-Control-Allow-Methods.
    21
    32PASS Sync request denied at preflight because of non-CORS-safelisted method
  • trunk/LayoutTests/imported/w3c/web-platform-tests/xhr/access-control-preflight-sync-not-supported-expected.txt

    r235354 r252427  
    1 CONSOLE MESSAGE: line 25: XMLHttpRequest cannot load http://127.0.0.1:8800/XMLHttpRequest/resources/access-control-preflight-denied.py?token=84ccb17b-d065-4a34-b161-0855f4d57d96. Method PUT is not allowed by Access-Control-Allow-Methods.
    21
    32PASS Sync PUT request denied at preflight
  • trunk/LayoutTests/imported/w3c/web-platform-tests/xhr/event-error.sub-expected.txt

    r235354 r252427  
    1 Blocked access to external URL http://nonexistent-origin.localhost:8800/
    2 CONSOLE MESSAGE: line 22: XMLHttpRequest cannot load http://nonexistent-origin.localhost:8800/ due to access control checks.
     1Blocked access to external URL http://nonexistent.localhost:8800/
    32
    43PASS XMLHttpRequest Test: event - error
  • trunk/LayoutTests/imported/w3c/web-platform-tests/xhr/send-conditional-cors-expected.txt

    r252349 r252427  
    1 CONSOLE MESSAGE: Origin http://localhost:8800 is not allowed by Access-Control-Allow-Origin.
    2 CONSOLE MESSAGE: XMLHttpRequest cannot load http://127.0.0.1:8800/xhr/resources/conditional.py?tag=0.017259906889160348 due to access control checks.
    31
    42PASS 304 without appropriate CORS header
Note: See TracChangeset for help on using the changeset viewer.