Repository navigation
Implement NavigationPreloadManager for ServiceWorker - #22218
Conversation
|
Heads up! This PR modifies the following files:
|
|
@bors-servo try=wpt |
Implement NavigationPreloadManager for ServiceWorker --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix part of #19302 . - [ ] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/22218) <!-- Reviewable:end -->
|
☀️ Test successful - linux-rel-css, linux-rel-wpt |
commented
Nov 19, 2018
|
@bors-servo try=wpt |
commented
Nov 19, 2018
commented
Nov 19, 2018
|
☀️ Test successful - linux-rel-css, linux-rel-wpt |
| readonly attribute ServiceWorker? waiting; | ||
| readonly attribute ServiceWorker? active; | ||
| // [SameObject] readonly attribute NavigationPreloadManager navigationPreload; | ||
| [SameObject] readonly attribute NavigationPreloadManager navigationPreload; |
There was a problem hiding this comment.
What happens if the pref from Pref="dom.serviceworker.enabled" on the interface isn't enabled? And shouldn't that preference be set when running tests related to that feature?
There was a problem hiding this comment.
Ah, I misunderstood the config for mozilla wpt was for web-platform-tests which is located at
Let me update the PR to turn on the config for web-platform-tests for SW! Thanks for the good catch!
There was a problem hiding this comment.
There's probably no real point; we don't implement enough of the SW API to make tests run to completion.
There was a problem hiding this comment.
Actually, it's possible that we might be able to get meaningful results out of the upstream SW tests now. One reason we created our own tests was that:
- we didn't support promises yet
- we didn't support HTTPS tests
Both of those have been fixed, so there's no good reason not to start relying on the upstream tests that require both of those features.
There was a problem hiding this comment.
It sounds reasonable for me to start relying on upstream tests if we've already supported these 2 points. How about letting me turn SW upstream tests on in another PR?
commented
Nov 28, 2018
|
@bors-servo try=wpt
|
commented
Nov 28, 2018
commented
Nov 28, 2018
|
☀️ Test successful - linux-rel-css, linux-rel-wpt |
commented
Dec 9, 2018
|
@bors-servo try=wpt |
commented
Dec 9, 2018
commented
Dec 9, 2018
|
☀️ Test successful - linux-rel-css, linux-rel-wpt |
commented
Dec 9, 2018
|
@bors-servo r+ |
commented
Dec 9, 2018
|
📌 Commit 235fb59 has been approved by |
commented
Dec 9, 2018
commented
Dec 9, 2018
|
💔 Test failed - mac-rel-css1 |
commented
Dec 10, 2018
|
@bors-servo retry
|
commented
Dec 10, 2018
commented
Dec 10, 2018
|
☀️ Test successful - android, android-mac, android-x86, arm32, arm64, linux-dev, linux-rel-css, linux-rel-wpt, mac-dev-unit, mac-rel-css1, mac-rel-css2, mac-rel-wpt1, mac-rel-wpt2, mac-rel-wpt3, mac-rel-wpt4, magicleap, status-taskcluster, windows-msvc-dev |
./mach build -ddoes not report any errors./mach test-tidydoes not report any errorsThis change is