mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Update Worker webidl to support WorkerOptions
This commit is contained in:
parent
81f750afa7
commit
dececad390
11 changed files with 57 additions and 22 deletions
|
@ -53,7 +53,7 @@ impl ServiceWorkerContainerMethods for ServiceWorkerContainer {
|
|||
}
|
||||
|
||||
#[allow(unrooted_must_root)] // Job is unrooted
|
||||
/// https://w3c.github.io/ServiceWorker/#service-worker-container-register-method and - A
|
||||
/// https://w3c.github.io/ServiceWorker/#navigator-service-worker-register and - A
|
||||
/// https://w3c.github.io/ServiceWorker/#start-register-algorithm - B
|
||||
fn Register(&self, script_url: USVString, options: &RegistrationOptions) -> Rc<Promise> {
|
||||
// A: Step 1
|
||||
|
@ -127,6 +127,7 @@ impl ServiceWorkerContainerMethods for ServiceWorkerContainer {
|
|||
scope,
|
||||
script_url,
|
||||
promise.clone(),
|
||||
options.type_,
|
||||
&*self.client,
|
||||
);
|
||||
// Job is unrooted here, do not do anything other than immediately scheduling
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue