Skip to content

Update ServiceWorker webidl - #22540

Merged
bors-servo merged 1 commit into
servo:masterfrom
CYBAI:update-sw-webidl
Dec 23, 2018
Merged

bors-servo merged 1 commit into
servo:masterfrom
CYBAI:update-sw-webidl

Conversation

@CYBAI

@CYBAI CYBAI commented Dec 23, 2018 •

Copy link
Copy Markdown
Member

About the void postMessage, I found the spec doesn't have [Throws]; however, as the implementation for postMessage in spec, we should have [Throws] for it because it will throw errors. Then, I realized that [Throws] is not part of standard webidl. Btw, there's a issue discussing about if [Throws] should be standardized or not at whatwg/webidl#603.

Also, per the spec, ServiceWorker will includes AbstractWorker instead of implements so I filed #22539 for it. We can update it after the issue is fixed.


  • ./mach build -d does not report any errors
  • ./mach test-tidy does not report any errors
  • These changes fix part of Make Service Worker implementation up-to-date #19302
  • These changes do not require tests because it just updates the webidl and the changes should have no impact to current implementation.

This change is Reviewable

@highfive

Copy link
Copy Markdown

Heads up! This PR modifies the following files:

  • @asajeffrey: components/script/dom/webidls/ServiceWorker.webidl
  • @KiChjang: components/script/dom/webidls/ServiceWorker.webidl

@highfive

Copy link
Copy Markdown

warning Warning warning

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

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

jdm commented Dec 23, 2018

Copy link
Copy Markdown
Member

@bors-servo r+

@bors-servo

Copy link
Copy Markdown
Contributor

📌 Commit 370ee89 has been approved by jdm

@highfive highfive assigned jdm and unassigned Manishearth Dec 23, 2018
@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 23, 2018
@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit 370ee89 with merge 96cd051...

bors-servo pushed a commit that referenced this pull request Dec 23, 2018
Update ServiceWorker webidl

About the `void postMessage`, I found the spec doesn't have `[Throws]`; however, as the implementation for `postMessage` in spec, we should have `[Throws]` for it because it will throw errors. Then, I realized that `[Throws]` is not part of standard webidl. Btw, there's a issue discussing about if `[Throws]` should be standardized or not at whatwg/webidl#603.

Also, per the spec, `ServiceWorker` will `includes` `AbstractWorker` instead of `implements` so I filed #22539 for it. We can update it after the issue is fixed.

---
- [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
- [x] These changes do not require tests because it just updates the webidl and the changes should have no impact to current implementation.

<!-- 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/22540)
<!-- Reviewable:end -->
@bors-servo

Copy link
Copy Markdown
Contributor

💔 Test failed - linux-rel-css

@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 23, 2018
@jdm

jdm commented Dec 23, 2018

Copy link
Copy Markdown
Member

@bors-servo retry #13480

@bors-servo

Copy link
Copy Markdown
Contributor

💣 Failed to start rebuilding: Unknown error

@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit 370ee89 with merge 6840c18...

bors-servo pushed a commit that referenced this pull request Dec 23, 2018
Update ServiceWorker webidl

About the `void postMessage`, I found the spec doesn't have `[Throws]`; however, as the implementation for `postMessage` in spec, we should have `[Throws]` for it because it will throw errors. Then, I realized that `[Throws]` is not part of standard webidl. Btw, there's a issue discussing about if `[Throws]` should be standardized or not at whatwg/webidl#603.

Also, per the spec, `ServiceWorker` will `includes` `AbstractWorker` instead of `implements` so I filed #22539 for it. We can update it after the issue is fixed.

---
- [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
- [x] These changes do not require tests because it just updates the webidl and the changes should have no impact to current implementation.

<!-- 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/22540)
<!-- Reviewable:end -->
@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 23, 2018
@bors-servo

Copy link
Copy Markdown
Contributor

☀️ Test successful - android-mac, arm32, arm64, linux-rel-css, linux-rel-wpt, mac-rel-css1, mac-rel-css2, mac-rel-wpt1, mac-rel-wpt2, mac-rel-wpt3, mac-rel-wpt4, magicleap, status-taskcluster
Approved by: jdm
Pushing 6840c18 to master...

@bors-servo
bors-servo merged commit 370ee89 into servo:master Dec 23, 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 23, 2018
@CYBAI
CYBAI deleted the update-sw-webidl branch December 24, 2018 01:11
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.

5 participants