mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Auto merge of #13419 - Coder206:swPromise, r=jdm
ServiceWorkerContainer::Promise <!-- Please describe your changes on the following line: --> <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #13409 (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- 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/13419) <!-- Reviewable:end -->
This commit is contained in:
commit
0d46c7c708
4 changed files with 83 additions and 51 deletions
|
@ -8,7 +8,7 @@ interface ServiceWorkerContainer : EventTarget {
|
|||
[Unforgeable] readonly attribute ServiceWorker? controller;
|
||||
//[SameObject] readonly attribute Promise<ServiceWorkerRegistration> ready;
|
||||
|
||||
[NewObject, Throws] ServiceWorkerRegistration register(USVString scriptURL, optional RegistrationOptions options);
|
||||
[NewObject] Promise<ServiceWorkerRegistration> register(USVString scriptURL, optional RegistrationOptions options);
|
||||
|
||||
//[NewObject] /*Promise<any>*/ any getRegistration(optional USVString clientURL = "");
|
||||
//[NewObject] /* Promise */<sequence<ServiceWorkerRegistration>> getRegistrations();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue