Expose NavigationPreloadManager interface
Categories
(Core :: DOM: Service Workers, enhancement, P2)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox91 | --- | fixed |
People
(Reporter: perry, Assigned: edenchuang)
References
()
Details
Attachments
(6 files, 2 obsolete files)
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review |
This bug isn't concerned with issuing the request while a SW start up. We want as a first step to be able to have a navigation preload flag and query its state. There should also be a pref like dom.serviceWorkers.navigationPreloadManager.enabled (or something similar) if things are to be merged incrementally.
Tests that should pass:
service-workers/service-worker/navigation-preload/navigationPreload.https.html
service-workers/service-worker/navigation-preload/get-state.https.html
| Reporter | ||
Updated•7 years ago
|
| Reporter | ||
Comment 2•7 years ago
|
||
- Enabled only with dom.serviceWorkers.navigationPreload.enabled=true (enforced
by the generated bindings) and dom.serviceWorkers.parent_intercept=true
(enforced by a release assertion in NavigationPreloadManager's constructor). - Persist the NavigationPreloadState with ServiceWorkerRegistration data.
| Reporter | ||
Comment 3•7 years ago
|
||
Comment 4•6 years ago
|
||
Hi :perry, can we assign this patch to dom-workers-and-storage-reviewers to move it forward more quickly?
| Reporter | ||
Comment 5•6 years ago
|
||
We could, but I think asuth would be the only person comfortable reviewing it. The patch is also only a subset of the NavigationPreloadManager API and without the other parts of the API, the patch here wouldn't add any real functionality, so I wouldn't say there's a rush to land it all ASAP (other than avoiding merge conflicts due to the number of files touched).
Comment 6•6 years ago
|
||
Yeah, to be clear, I've been deferring review intentionally pending the parent-intercept stuff. But the bit-rot concern is a good point; I hadn't been expecting to be deferring it this long. Thankfully I think most of my concerns as it relates to that have been addressed.
Probably the right next step is to send out an intent to prototype for this (https://wiki.mozilla.org/ExposureGuidelines#Intent_to_prototype) and then I can review pending the feedback on that. Needinfo on perry for intent to prototype.
| Reporter | ||
Comment 7•6 years ago
|
||
Sent an email to the mailing list with subject "Intent to prototype: NavigationPreloadManager API". It's awaiting "moderator approval" so may not be delivered immediately.
Comment 8•6 years ago
|
||
What's the status here? We have some wpt tests in https://bugzilla.mozilla.org/show_bug.cgi?id=1636178 which are currently timing out because we're missing NavigationPreloadManager.
| Reporter | ||
Comment 10•6 years ago
|
||
NavigationPreloadManager isn't high up on the priority list right now, but that may change in H2. So as of now I don't think we will be able to address the timing-out tests. This particular bug/patch is only a portion of the feature anyways; landing this bug's patch would only address two of the WPTs in the navigation-preload directory.
| Reporter | ||
Updated•6 years ago
|
Updated•5 years ago
|
Comment 11•5 years ago
|
||
(Our Phabricator integration likes to maintain invariants about the state of the bug when there are patches, but Perry is no longer working on this and it would be premature to commandeer the revision.)
| Assignee | ||
Comment 12•5 years ago
|
||
Updated•5 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
| Assignee | ||
Comment 13•5 years ago
|
||
| Assignee | ||
Comment 14•5 years ago
|
||
Depends on D116913
| Assignee | ||
Comment 15•5 years ago
|
||
Depends on D116914
| Assignee | ||
Comment 16•5 years ago
|
||
Depends on D116916
| Assignee | ||
Comment 17•5 years ago
|
||
Depends on D116917
Updated•5 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
| Assignee | ||
Comment 18•5 years ago
|
||
Depends on D116918
Updated•5 years ago
|
Comment 19•5 years ago
|
||
Link to the intent to prototype that was previously sent by Perry on Dec 6th, 2019: https://groups.google.com/g/mozilla.dev.platform/c/wZwIB-QFugs/m/mLPLKbfhBAAJ
Comment 20•5 years ago
|
||
Many thanks to Perry for preparing the original patch for this and Eden for updating and excellently splitting up the patch into more bite size pieces; it really does simplify the review process immeasurably!
Comment 21•5 years ago
|
||
Comment 22•5 years ago
|
||
Backed out for ServiceWorkerRegistrar failures.
backout: https://hg.mozilla.org/integration/autoland/rev/8c5e8c087f2e9732881214e7d20377da3f9c29d8
failure log: https://treeherder.mozilla.org/logviewer?job_id=342332437&repo=autoland&lineNumber=31286
[task 2021-06-10T01:50:19.256Z] 01:50:19 INFO - TEST-START | ServiceWorkerRegistrar.TestReadData
[task 2021-06-10T01:50:19.256Z] 01:50:19 WARNING - TEST-UNEXPECTED-FAIL | ServiceWorkerRegistrar.TestReadData | Expected equality of these values:
[task 2021-06-10T01:50:19.257Z] 01:50:19 INFO - NS_OK
[task 2021-06-10T01:50:19.257Z] 01:50:19 INFO - Which is: 4-byte object <00-00 00-00>
[task 2021-06-10T01:50:19.257Z] 01:50:19 INFO - rv
[task 2021-06-10T01:50:19.257Z] 01:50:19 INFO - Which is: 4-byte object <57-00 07-80>
[task 2021-06-10T01:50:19.257Z] 01:50:19 INFO - ReadData() should not fail @ /builds/worker/checkouts/gecko/dom/serviceworkers/test/gtest/TestReadWrite.cpp:197
[task 2021-06-10T01:50:19.257Z] 01:50:19 WARNING - TEST-UNEXPECTED-FAIL | ServiceWorkerRegistrar.TestReadData | test completed (time: 1ms)
Comment 23•5 years ago
|
||
| Assignee | ||
Updated•5 years ago
|
Comment 24•5 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/2148ef30186a
https://hg.mozilla.org/mozilla-central/rev/afae3c50f7ac
https://hg.mozilla.org/mozilla-central/rev/185488c90cb8
https://hg.mozilla.org/mozilla-central/rev/d321a8a2a098
https://hg.mozilla.org/mozilla-central/rev/62a4f85ced42
https://hg.mozilla.org/mozilla-central/rev/fc6124f09abd
Description
•