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)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla45
Tracking Status
firefox45 --- fixed

People

(Reporter: ehsan.akhgari, Assigned: bkelly)

References

Details

Attachments

(1 file, 1 obsolete file)

      No description provided.
Blocks: 1200677
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+
Depends on: 1219469
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)
I also tried adding |<meta name="timeout" content="long">| to the test to no avail.
Flags: needinfo?(ehsan)
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)
Thanks a lot, James!
Assignee: nobody → bkelly
Status: NEW → ASSIGNED
Updated with long timeout in manifest.
Attachment #8679761 - Attachment is obsolete: true
Attachment #8688718 - Flags: review+
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
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.
No longer depends on: 1219469
https://hg.mozilla.org/mozilla-central/rev/6d2641e05d2b
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla45
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: