Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upImplement NavigationPreloadManager for ServiceWorker #22218
Conversation
highfive
commented
Nov 18, 2018
|
Heads up! This PR modifies the following files:
|
highfive
commented
Nov 18, 2018
|
@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 -->
|
|
|
@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 -->
|
|
| @@ -8,7 +8,7 @@ interface ServiceWorkerRegistration : EventTarget { | |||
| readonly attribute ServiceWorker? installing; | |||
| readonly attribute ServiceWorker? waiting; | |||
| readonly attribute ServiceWorker? active; | |||
| // [SameObject] readonly attribute NavigationPreloadManager navigationPreload; | |||
| [SameObject] readonly attribute NavigationPreloadManager navigationPreload; | |||
This comment has been minimized.
This comment has been minimized.
nox
Nov 27, 2018
Member
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?
This comment has been minimized.
This comment has been minimized.
CYBAI
Nov 27, 2018
Author
Collaborator
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!
This comment has been minimized.
This comment has been minimized.
jdm
Nov 27, 2018
Member
There's probably no real point; we don't implement enough of the SW API to make tests run to completion.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
jdm
Nov 27, 2018
•
Member
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.
This comment has been minimized.
This comment has been minimized.
CYBAI
Nov 27, 2018
Author
Collaborator
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?
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Turn on upstream SW wpt tests Generated these metadata with following command ```sh $ ./mach test-wpt --log-raw=update.log tests/wpt/web-platform-tests/service-workers $ ./mach update-wpt update.log ``` Ref: #22218 (comment) --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] This PR will turn on `ServiceWorker` for upstream WPT tests <!-- 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/22278) <!-- Reviewable:end -->
Turn on upstream SW wpt tests Generated these metadata with following command ```sh $ ./mach test-wpt --log-raw=update.log tests/wpt/web-platform-tests/service-workers $ ./mach update-wpt update.log ``` Ref: #22218 (comment) --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] This PR will turn on `ServiceWorker` for upstream WPT tests <!-- 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/22278) <!-- Reviewable:end -->
|
@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 -->
|
|
|
Looks good overall! |
|
@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 -->
|
|
|
@bors-servo r+ |
|
|
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 -->
|
|
|
@bors-servo retry
|
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 -->
|
|
CYBAI commentedNov 18, 2018
•
edited by SimonSapin
./mach build -ddoes not report any errors./mach test-tidydoes not report any errorsThis change is