Skip to content

Implement NavigationPreloadManager for ServiceWorker - #22218

Merged
bors-servo merged 1 commit into
servo:masterfrom
CYBAI:sw-up-to-date
Dec 10, 2018
Merged

bors-servo merged 1 commit into
servo:masterfrom
CYBAI:sw-up-to-date

Conversation

@CYBAI

@CYBAI CYBAI commented Nov 18, 2018 •

Copy link
Copy Markdown
Member


This change is Reviewable

@highfive

Copy link
Copy Markdown

Heads up! This PR modifies the following files:

  • @asajeffrey: components/script/dom/mod.rs, components/script/dom/webidls/NavigationPreloadManager.webidl, components/script/dom/webidls/ServiceWorkerRegistration.webidl, components/script/dom/navigationpreloadmanager.rs, components/script/dom/serviceworkerregistration.rs
  • @KiChjang: components/script/dom/mod.rs, components/script/dom/webidls/NavigationPreloadManager.webidl, components/script/dom/webidls/ServiceWorkerRegistration.webidl, components/script/dom/navigationpreloadmanager.rs, components/script/dom/serviceworkerregistration.rs

@highfive highfive added the S-awaiting-review There is new code that needs to be reviewed. label Nov 18, 2018
@highfive

Copy link
Copy Markdown

warning Warning warning

  • These commits modify script code, but no tests are modified. Please consider adding a test!

@CYBAI

CYBAI commented Nov 18, 2018

Copy link
Copy Markdown
Member Author

@bors-servo try=wpt

@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Trying commit aaf1034 with merge 16c4c6c...

bors-servo pushed a commit that referenced this pull request Nov 18, 2018
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

Copy link
Copy Markdown
Contributor

☀️ Test successful - linux-rel-css, linux-rel-wpt
State: approved= try=True

@CYBAI

ghost commented Nov 19, 2018

Copy link
Copy Markdown
Member Author

@bors-servo try=wpt

@bors-servo

ghost commented Nov 19, 2018

Copy link
Copy Markdown
Contributor

⌛ Trying commit 159bb38 with merge 1214fef...

@bors-servo

ghost commented Nov 19, 2018

Copy link
Copy Markdown
Contributor

☀️ Test successful - linux-rel-css, linux-rel-wpt
State: approved= try=True

@paulrouget paulrouget assigned asajeffrey and unassigned paulrouget Nov 21, 2018
readonly attribute ServiceWorker? waiting;
readonly attribute ServiceWorker? active;
// [SameObject] readonly attribute NavigationPreloadManager navigationPreload;
[SameObject] readonly attribute NavigationPreloadManager navigationPreload;

ghost Nov 27, 2018

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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?

ghost Nov 27, 2018

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, I misunderstood the config for mozilla wpt was for web-platform-tests which is located at

prefs: ["dom.serviceworker.enabled:true"]

Let me update the PR to turn on the config for web-platform-tests for SW! Thanks for the good catch!

ghost Nov 27, 2018

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's probably no real point; we don't implement enough of the SW API to make tests run to completion.

ghost Nov 27, 2018

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jdm Yes, if we turned on SW tests, we'll have other FAIL cases. Or maybe let me keep working on it and turn it on when we have basic implementation for SW? cc @nox

ghost Nov 27, 2018 •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

ghost Nov 27, 2018

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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?

ghost Nov 27, 2018

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure!

ghost Nov 27, 2018

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Opened at #22278 !

@CYBAI CYBAI mentioned this pull request Nov 27, 2018
3 tasks done
@CYBAI

ghost commented Nov 28, 2018

Copy link
Copy Markdown
Member Author

@bors-servo try=wpt

  • Just rebased to latest master but I think we need more implementation for SW so that we can have more PASS tests

@bors-servo

ghost commented Nov 28, 2018

Copy link
Copy Markdown
Contributor

⌛ Trying commit e2cb292 with merge c97f093...

@bors-servo

ghost commented Nov 28, 2018

Copy link
Copy Markdown
Contributor

☀️ Test successful - linux-rel-css, linux-rel-wpt
State: approved= try=True

ghost left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good overall!

@jdm jdm added S-needs-code-changes Changes have not yet been made that were requested by a reviewer. and removed S-awaiting-review There is new code that needs to be reviewed. labels Nov 28, 2018
@jdm jdm assigned jdm and unassigned asajeffrey Nov 28, 2018
@jdm jdm added S-needs-code-changes Changes have not yet been made that were requested by a reviewer. and removed S-awaiting-review There is new code that needs to be reviewed. labels Dec 6, 2018
@highfive highfive added S-awaiting-review There is new code that needs to be reviewed. and removed S-needs-code-changes Changes have not yet been made that were requested by a reviewer. labels Dec 8, 2018
@CYBAI

ghost commented Dec 9, 2018

Copy link
Copy Markdown
Member Author

@bors-servo try=wpt

@bors-servo

ghost commented Dec 9, 2018

Copy link
Copy Markdown
Contributor

⌛ Trying commit 235fb59 with merge 3190167...

@bors-servo

ghost commented Dec 9, 2018

Copy link
Copy Markdown
Contributor

☀️ Test successful - linux-rel-css, linux-rel-wpt
State: approved= try=True

@jdm

ghost commented Dec 9, 2018

Copy link
Copy Markdown
Member

@bors-servo r+

@bors-servo

ghost commented Dec 9, 2018

Copy link
Copy Markdown
Contributor

📌 Commit 235fb59 has been approved by jdm

@highfive highfive added S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. and removed S-awaiting-review There is new code that needs to be reviewed. labels Dec 9, 2018
@bors-servo

ghost commented Dec 9, 2018

Copy link
Copy Markdown
Contributor

⌛ Testing commit 235fb59 with merge 0a33f86...

@bors-servo

ghost commented Dec 9, 2018

Copy link
Copy Markdown
Contributor

💔 Test failed - mac-rel-css1

@highfive highfive added S-tests-failed The changes caused existing tests to fail. and removed S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. labels Dec 9, 2018
@jdm

ghost commented Dec 10, 2018

Copy link
Copy Markdown
Member

@bors-servo retry

  • restarted servo-mac8

@bors-servo

ghost commented Dec 10, 2018

Copy link
Copy Markdown
Contributor

⌛ Testing commit 235fb59 with merge ddfc799...

@highfive highfive added S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. and removed S-tests-failed The changes caused existing tests to fail. labels Dec 10, 2018
@bors-servo

ghost commented Dec 10, 2018

Copy link
Copy Markdown
Contributor

@bors-servo
bors-servo merged commit 235fb59 into servo:master Dec 10, 2018
@highfive highfive removed the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Dec 10, 2018
@CYBAI
CYBAI deleted the sw-up-to-date branch December 10, 2018 01:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants