Closed Bug 2076680 Opened 2 months ago Closed 2 days ago

Speculation-rules prefetch with a same-site redirect and a service worker fetch handler intermittently sends an extra non-prefetch request

Categories

(Core :: DOM: Networking, defect, P3)

defect

Tracking

()

RESOLVED FIXED
163 Branch
Tracking Status
firefox163 --- fixed

People

(Reporter: smayya, Assigned: helmut)

References

(Blocks 1 open bug)

Details

(Keywords: intermittent-failure, Whiteboard: [necko-triaged])

Attachments

(1 external file)

While testing bug 2070841, speculation-rules/prefetch/tentative/service-worker/redirect.sub.https.html?origin=same-site&sc=in-out&sw=fetch-handler failed 1 time in 11 runs in a local macOS debug build (--headless):

assert_equals: a non-prefetch request should be sentlllis to the server. expected 1 but got 2

The navigation sometimes issues a second non-prefetch request instead of one. That could mean the prefetch was partially used, or that the redirected request went through both the prefetch path and the service worker path.

The test is marked expected: [PASS, FAIL] in the patches for bug 2070841.

https://wpt.fyi/results/speculation-rules/prefetch/tentative/service-worker?label=master&label=experimental&aligned&q=redirect.sub.https.html

Component: Networking → DOM: Networking
Whiteboard: [necko-triaged]
Severity: -- → S3
Priority: -- → P3
Blocks: 2076681
No longer blocks: 2037091

With bug 2076759 the SW now sees the prefetch request deterministically,
so the test's request count is stable. 20 local repeats all fail the
same way; keep expected: FAIL.

Assignee: nobody → helmut
Status: NEW → ASSIGNED
Attachment #9688984 - Attachment description: Bug 2076680 - Drop intermittent annotation on the prefetch+redirect+SW WPT r?#necko-reviewers → WIP: Bug 2076680 - Drop intermittent annotation on the prefetch+redirect+SW WPT r?#necko-reviewers
Attachment #9688984 - Attachment description: WIP: Bug 2076680 - Drop intermittent annotation on the prefetch+redirect+SW WPT r?#necko-reviewers → Bug 2076680 - Drop intermittent annotation on the prefetch+redirect+SW WPT r?#necko-reviewers
Status: ASSIGNED → RESOLVED
Closed: 2 days ago
Resolution: --- → FIXED
Target Milestone: --- → 163 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: