aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/serviceworkerglobalscope.rs
Commit message (Collapse)AuthorAgeFilesLines
...
* doc(script): update comments in `run_worker_scope` and `run_serviceworker_scope`yvt2021-07-131-2/+2
| | | | | | | The step numbers changed over time. Note that service workers and non-service workers use different steps defined in different specifications.
* Use ExtendableMessageEvent for messageerror in service workersKyle Nosar2020-07-301-2/+1
|
* ensure clean shutdown of all threads running JSGregory Terzian2020-06-301-2/+12
|
* Make url for "client" referrer mandatoryMatthias Deiml2020-06-171-13/+14
|
* turn serviceworker event-loop back onGregory Terzian2020-06-031-3/+1
|
* add a control chan to workers, use to signal shutdownGregory Terzian2020-06-031-14/+41
|
* add mechanism to join on service- and dedicated-worker threadsGregory Terzian2020-05-291-3/+3
|
* serviceworker: turn-off event-loop, don't assume current scope, clear ↵Gregory Terzian2020-05-211-36/+27
| | | | runtime on shutdown
* Share single gpu_id_hub among all threads in a processKunal Mohan2020-05-151-0/+4
|
* Always pass InRealm to GlobalScope::from_context to avoid getting null globalCYBAI2020-02-161-3/+5
|
* rename compartment to realmKunal Mohan2020-01-241-1/+1
|
* Remove Optional pipeline_idWarren Fisher2019-12-191-1/+1
|
* devtools: save and send cached messagesPaul Rouget2019-12-061-3/+0
|
* Auto merge of #24758 - gterzian:impl_timer_task_source, r=noxbors-servo2019-11-261-47/+40
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement timer-task-source, time-out service worker <!-- Please describe your changes on the following line: --> Implements the timer task-source, and folds the IPC glue-code into a single route set by the globalscope. Also switches service worker to using a dedicated "time-out" mechanism, which previously relied on the timer mechanism(and I think didn't actually implement script timers). --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: --> - [ ] `./mach build -d` does not report any errors - [ ] `./mach test-tidy` does not report any errors - [ ] These changes fix #24747 (GitHub issue number if applicable) <!-- Either: --> - [ ] There are tests for these changes OR - [ ] These changes do not require tests because ___ <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
| * impl timer-task-source, dedicated time-out mechanism for service-workerGregory Terzian2019-11-191-47/+40
| |
* | Bind runnable dispatching in script_runtimeAkash-Pateria2019-11-191-1/+1
|/
* continue messageport, transferable, postmessage optionsGregory Terzian2019-10-191-2/+13
|
* begin messageport, transferable objects, implKeith Yeung2019-10-191-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Accept transfer argument for StructuredCloneData::write Allow structured clone reads to return a boolean Add Transferable trait Add basic skeletons to MessagePort Implement transfer and transfer-receiving steps on MessagePort Use transfer and transfer_receive in StructuredClone callbacks Implement MessageChannel Freeze the array object for the MessageEvent ports attribute Implement transfer argument on window.postMessage Use ReentrantMutex instead for MessagePortInternal Accept origin as a parameter in dispatch_jsval Fix BorrowMut crash with pending_port_message Detach port on closure and check for detached during transfer Enable webmessaging tests fix webidl fix
* Modify *::get_cx methods to return a safe JSContext instead of a raw onemarmeladema2019-07-241-2/+2
|
* Wrap(Global)Method now takes a SafeJSContext instead of a JSContextmarmeladema2019-07-241-2/+4
| | | | as first argument.
* Create a helper API for entering a DOM object's compartmentKamil Niski2019-06-291-3/+3
| | | | | | Revert some unnecessary changes Fix fmt errors
* Auto merge of #23351 - CYBAI:fix-modes, r=noxbors-servo2019-05-161-1/+2
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix modes for fetching classic worker script and introduce parser metadata for request While reading [the spec](https://html.spec.whatwg.org/multipage/#fetch-a-classic-worker-script) for `fetch a classic worker script`, I found the `mode` and `credential-mode` are opposite to the spec. So, the first commit will fix it. Also, I found there's a `parser metadata` for `request` so I tried to introduce it in this PR as well. For WPT, I found there's a `/workers/constructors/Worker/same-origin.html` which was disabled in #3180. We pass most of the tests now. --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [ ] These changes fix #___ (GitHub issue number if applicable) - [x] There are tests for these changes <!-- 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/23351) <!-- Reviewable:end -->
| * Introduce parser metadata for requestCYBAI2019-05-111-1/+2
| |
* | Auto merge of #23309 - CYBAI:update-workers, r=noxbors-servo2019-05-111-0/+3
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Support WorkerOptions for Worker I'd like to start working on updating SW related codes and I found it will have some algorithms related to module workers. And I found parts of the spec update is related to [fetch a module worker script graph](https://html.spec.whatwg.org/multipage/#fetch-a-module-worker-script-tree), maybe it's worth being a separate PR? --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix part of #23308 - [ ] 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/23309) <!-- Reviewable:end -->
| * | Update Worker webidl to support WorkerOptionsCYBAI2019-05-111-0/+3
| |/
* / Update to SpiderMonkey 66.Josh Matthews2019-05-101-3/+2
|/
* Create resource timing entry for sync network fetchpylbrecht2019-05-081-11/+15
|
* set referrer in window.load_urlRussell Cousineau2019-04-191-2/+4
| | | | | | | | - this conforms to follow-hyperlinks spec step 13 - this conforms to window-open spec step 14.3 - replace uses of `referrer_url` with `referrer` - in Request class, change "no-referrer" to "" - set websocket fetch referrer to "no-referrer"
* Implementing the builder pattern for RequestInitLucas Fantacuci2019-04-101-12/+9
|
* #8539 Config preferences backend restructurePeter Hall2019-03-201-5/+2
|
* in BC event-loop, only run tasks related to fully-active documentsGregory Terzian2019-03-061-1/+13
|
* Reintroduce parent runtimes for worker threads.Josh Matthews2019-01-151-1/+1
|
* Update MPL license to https (part 3)Jan Andre Ikenmeyer2018-11-191-1/+1
|
* Update crossbeam-channel to 0.3Bastien Orivel2018-11-181-4/+6
|
* Update webidl of ServiceWorkerGlobalScopemandreyel2018-11-131-1/+4
|
* `cargo fix --edition-idioms`Simon Sapin2018-11-081-2/+2
|
* Reorder importsPyfisch2018-11-061-5/+7
|
* Sort `use` statementsSimon Sapin2018-11-061-4/+4
|
* `cargo fix --edition`Simon Sapin2018-11-061-20/+20
|
* Update to new ServiceWorker spec linkCYBAI2018-11-041-1/+1
|
* Format script componentchansuke2018-09-191-131/+182
|
* Replace mpsc with crossbeam/servo channel, update ipc-channelSimon Sapin2018-09-121-3/+2
| | | | Co-authored-by: Gregory Terzian <gterzian@users.noreply.github.com>
* Add the TaskSourceName to CommonScriptMsg::TaskAgustin Chiappe Berrini2018-09-041-12/+12
| | | | Update QueuedTaskConversion and the TaskQueue to use it
* introduce a generic worker event-loopGregory Terzian2018-08-311-64/+41
|
* introduce task-queues, and throttling the performance-timeline task-source, ↵Gregory Terzian2018-08-311-27/+103
| | | | | | in script and worker threads. queue
* Upgraded to SM 60Alan Jeffrey2018-08-201-2/+2
|
* Bump bitflags to 1.0 in every servo crateBastien Orivel2017-10-301-2/+2
|
* Merge request type and destinationKeith Yeung2017-10-231-2/+1
|
* Do not trace Rust values when thread is shutting down.Josh Matthews2017-10-201-2/+1
|
* Replace all uses of the `heapsize` crate with `malloc_size_of`.Nicholas Nethercote2017-10-181-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Servo currently uses `heapsize`, but Stylo/Gecko use `malloc_size_of`. `malloc_size_of` is better -- it handles various cases that `heapsize` does not -- so this patch changes Servo to use `malloc_size_of`. This patch makes the following changes to the `malloc_size_of` crate. - Adds `MallocSizeOf` trait implementations for numerous types, some built-in (e.g. `VecDeque`), some external and Servo-only (e.g. `string_cache`). - Makes `enclosing_size_of_op` optional, because vanilla jemalloc doesn't support that operation. - For `HashSet`/`HashMap`, falls back to a computed estimate when `enclosing_size_of_op` isn't available. - Adds an extern "C" `malloc_size_of` function that does the actual heap measurement; this is based on the same functions from the `heapsize` crate. This patch makes the following changes elsewhere. - Converts all the uses of `heapsize` to instead use `malloc_size_of`. - Disables the "heapsize"/"heap_size" feature for the external crates that provide it. - Removes the `HeapSizeOf` implementation from `hashglobe`. - Adds `ignore` annotations to a few `Rc`/`Arc`, because `malloc_size_of` doesn't derive those types, unlike `heapsize`.