WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
205417
Resync web-platform-tests/beacon tests from upstream
https://bugs.webkit.org/show_bug.cgi?id=205417
Summary
Resync web-platform-tests/beacon tests from upstream
Chris Dumez
Reported
2019-12-18 14:51:07 PST
Resync web-platform-tests/beacon tests from upstream.
Attachments
Patch
(54.92 KB, patch)
2019-12-18 14:52 PST
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
Patch
(52.84 KB, patch)
2019-12-19 09:09 PST
,
Chris Dumez
youennf
: review+
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Chris Dumez
Comment 1
2019-12-18 14:52:23 PST
Created
attachment 386010
[details]
Patch
Ryosuke Niwa
Comment 2
2019-12-18 20:58:49 PST
The failure of imported/w3c/web-platform-tests/beacon/beacon-cors.sub.window.html on iOS & macOS WK2 seems real.
youenn fablet
Comment 3
2019-12-19 00:41:03 PST
Comment on
attachment 386010
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=386010&action=review
> LayoutTests/imported/w3c/web-platform-tests/beacon/beacon-cors.sub.window-expected.txt:21 > +Blocked access to external URL
http://www.localhost:8800/beacon/resources/beacon.py?cmd=store&sid=5edb8afd-19c1-44c8-861c-546f9537bcca&tid=SmallCORSContentTypeText-PREFLIGHT-ALLOW&tidx=0&origin=http://localhost:8800&credentials=true&preflightExpected=true
We should skip this test for now since it is using www.localhost. We should then modify the test to replace domains[www] by {hosts[alt][]} so as to use 127.0.0.1 in our CI instead of www.localhost.
Chris Dumez
Comment 4
2019-12-19 08:32:06 PST
(In reply to youenn fablet from
comment #3
)
> Comment on
attachment 386010
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=386010&action=review
> > > LayoutTests/imported/w3c/web-platform-tests/beacon/beacon-cors.sub.window-expected.txt:21 > > +Blocked access to external URL
http://www.localhost:8800/beacon/resources/beacon.py?cmd=store&sid=5edb8afd-19c1-44c8-861c-546f9537bcca&tid=SmallCORSContentTypeText-PREFLIGHT-ALLOW&tidx=0&origin=http://localhost:8800&credentials=true&preflightExpected=true
> > We should skip this test for now since it is using www.localhost. > We should then modify the test to replace domains[www] by {hosts[alt][]} so > as to use 127.0.0.1 in our CI instead of www.localhost.
It seems the Blink import script takes care of this for them: imported/w3c/web-platform-tests/service-workers/tools/blink-import.py It would be good if our import script could do the same.
Chris Dumez
Comment 5
2019-12-19 09:09:45 PST
Created
attachment 386108
[details]
Patch
Chris Dumez
Comment 6
2019-12-19 09:11:06 PST
Comment on
attachment 386108
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=386108&action=review
> Tools/Scripts/webkitpy/w3c/test_converter.py:53 > + contents = contents.replace('{{domains[www]}}', '{{hosts[alt][]}}')
I updated our import script to replace {{domains[www]}} with {{hosts[alt][]}} automatically.
youenn fablet
Comment 7
2019-12-19 09:51:52 PST
Comment on
attachment 386108
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=386108&action=review
>> Tools/Scripts/webkitpy/w3c/test_converter.py:53 >> + contents = contents.replace('{{domains[www]}}', '{{hosts[alt][]}}') > > I updated our import script to replace {{domains[www]}} with {{hosts[alt][]}} automatically.
We should probably add a unit test for this in Tools/Scripts/webkitpy/w3c/test_converter_unittest.py. Some tests will still not be converted properly as they might be using things like 'www' + location.host, but this seems convenient and will fix many tests I believe. I think we should still work on fixing these tests upstream instead of relying on this conversion. Note also that this conversion is wrong in a few cases since some tests actually require www.localhost instead of 127.0.0.1. We probably do not care since we do not have the infra to run these tests in WebKit CI.
> Tools/Scripts/webkitpy/w3c/test_importer.py:449 > + folders_needing_file_rewriting = ['web-platform-tests/', ]
Could remove the ', '
Chris Dumez
Comment 8
2019-12-19 09:55:45 PST
Committed
r253760
: <
https://trac.webkit.org/changeset/253760
>
Radar WebKit Bug Importer
Comment 9
2019-12-19 09:56:25 PST
<
rdar://problem/58082541
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug