Closed
Bug 1219085
Opened 9 years ago
Closed 9 years ago
Import the fetch-request-redirect.https.html test from Blink
Categories
(Core :: DOM: Service Workers, defect)
Core
DOM: Service Workers
Tracking
()
RESOLVED
FIXED
mozilla45
Tracking | Status | |
---|---|---|
firefox45 | --- | fixed |
People
(Reporter: ehsan.akhgari, Assigned: bkelly)
References
Details
Attachments
(1 file, 1 obsolete file)
34.09 KB,
patch
|
bkelly
:
review+
|
Details | Diff | Splinter Review |
No description provided.
Reporter | ||
Comment 1•9 years ago
|
||
Attachment #8679761 -
Flags: review?(josh)
Comment 2•9 years ago
|
||
Comment on attachment 8679761 [details] [diff] [review] Import the fetch-request-redirect.https.html test from Blink Review of attachment 8679761 [details] [diff] [review]: ----------------------------------------------------------------- ::: testing/web-platform/mozilla/tests/service-workers/service-worker/resources/fetch-rewrite-worker.js @@ +16,5 @@ > var init = {}; > init['method'] = params['method'] || base['method']; > init['mode'] = params['mode'] || base['mode']; > init['credentials'] = params['credentials'] || base['credentials']; > + init['redirect'] = params['redirect-mode'] || base['redirect']; This seems like we should be rewriting the test, rather than changing this.
Attachment #8679761 -
Flags: review?(josh) → review+
This broke wpt(4): https://treeherder.mozilla.org/logviewer.html#?job_id=16417818&repo=mozilla-inbound Backed out in https://hg.mozilla.org/integration/mozilla-inbound/rev/6b66dba1086c
Flags: needinfo?(ehsan)
Reporter | ||
Comment 5•9 years ago
|
||
I can reproduce the timeout in an opt build but not on a debug build. This test sets up 2 iframes and waits for 10 seconds to wait for an asynchronous operation. RyanVM said on IRC that the default timeout for these tests is 20s, but eyeballing the test run in an opt build, the test times out in clearly less than 20 seconds. Furthermore, if I run it with --timeout-multiplier 2, it passes, which seems to suggest to me that the default timeout values in debug vs opt runs is actually different! James, what is the default timeout value? And what's the equivalent of SimpleTest.requestLongerTimeout() in WPT? Thanks!
Flags: needinfo?(james)
Reporter | ||
Comment 6•9 years ago
|
||
I also tried adding |<meta name="timeout" content="long">| to the test to no avail.
Flags: needinfo?(ehsan)
Comment 7•9 years ago
|
||
The default timeout is 10s in opt builds. Debug builds have a default timeout multiplier of three, chosen because tests seems to be mostly stable with that value, but not with 2. <meta name="timeout" content="long"> before <script src=/resources/testharness.js> is the right way to update the timeout value, but because the harness also sets a timeout you need to make sure that the metadata is updated after you add this to the file; run with --manifest-update to do the update.
Flags: needinfo?(james)
Reporter | ||
Comment 8•9 years ago
|
||
Thanks a lot, James!
Assignee | ||
Updated•9 years ago
|
Assignee: nobody → bkelly
Status: NEW → ASSIGNED
Assignee | ||
Comment 9•9 years ago
|
||
Updated with long timeout in manifest.
Attachment #8679761 -
Attachment is obsolete: true
Attachment #8688718 -
Flags: review+
Assignee | ||
Comment 10•9 years ago
|
||
The e10s path is quite racy and we're unlikely to fix it in the short term. Lets see if we can land this test for non-e10s only. https://treeherder.mozilla.org/#/jobs?repo=try&revision=f5dc82e18882
Assignee | ||
Comment 11•9 years ago
|
||
I forgot to hg add the wpt .ini file in that last try push, but the test clearly passes in non-e10s. I'm just going to land with the ini.
Comment 13•9 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/6d2641e05d2b
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
status-firefox45:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla45
You need to log in
before you can comment on or make changes to this bug.
Description
•