aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/serviceworkerglobalscope.rs
Commit message (Collapse)AuthorAgeFilesLines
* Make #[dom_struct] a proc_macro attributeAnthony Ramine2017-02-241-0/+1
|
* Generalize promise job queue into solitary microtask queue.Josh Matthews2017-02-011-0/+5
|
* An in-memory RNG that shares its file descriptor.Alan Jeffrey2017-01-051-1/+1
|
* Removed util.Alan Jeffrey2016-12-141-6/+5
|
* Rename `Reflectable` to `DomObject`.Corey Farwell2016-12-081-1/+1
| | | | Fixes https://github.com/servo/servo/issues/8473.
* Make WebIDL constructors take a more specific global if possible (fixes #14071)Rohan Prinja2016-11-301-1/+1
|
* Auto merge of #14246 - emilio:servo-url, r=SimonSapinbors-servo2016-11-171-7/+7
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Urlmageddon <!-- Please describe your changes on the following line: --> Still needs a bunch of code in net to be converted in order to get more advantage of this for images and stuff, but meanwhile this should help quite a bit with #13778. Still wanted to get this in. r? @SimonSapin <!-- 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/14246) <!-- Reviewable:end -->
| * Urlmageddon: Use refcounted urls more often.Emilio Cobos Álvarez2016-11-171-7/+7
| |
* | script creates methods taking '*mut JSContext' unsafeAbelardo E. Mendoza2016-11-141-1/+4
|/ | | | rebase + marked the necessary new code as unsafe
* Add more event names to atom list; use more `atom` macros.Corey Farwell2016-11-061-2/+1
|
* Migrate `EventTarget` event firing functions to use `Atom`s.Corey Farwell2016-11-031-1/+2
| | | | This allows us to utilize more `atom` macros.
* Remove "fire a simple event" concept, refactor event firing API.Corey Farwell2016-11-031-1/+1
| | | | | "fire a simple event" concept was removed in https://github.com/whatwg/html/pull/1933.
* Rewrite load_whole_resource using the fetch stack.Ms2ger2016-11-021-6/+21
|
* Remove GlobalRoot and GlobalRefAnthony Ramine2016-10-061-2/+1
|
* Make workers' interrupt_callback use GlobalScopeAnthony Ramine2016-10-061-6/+4
|
* Make devtools::handle_evaluate_js take a &GlobalScopeAnthony Ramine2016-10-061-2/+1
|
* Make dispatch_jsval methods take a &GlobalScopeAnthony Ramine2016-10-061-1/+1
|
* Make StructuredCloneData::read take a &GlobalScopeAnthony Ramine2016-10-061-1/+1
|
* Introduce GlobalScope::mem_profiler_chanAnthony Ramine2016-10-061-1/+2
|
* Introduce GlobalScope::live_devtools_updatesAnthony Ramine2016-10-061-1/+1
|
* Make reflect_dom_object take a &GlobalScopeAnthony Ramine2016-10-061-2/+1
|
* Move workers' pipeline IDs to WorkerGlobalScopeAnthony Ramine2016-10-021-12/+1
|
* Replace instances of old ServiceWorker specification URL with new oneVignesh Sarma K (വിഘ്നേഷ് ശ൪മ കെ)2016-09-251-1/+1
| | | | | | The old specification URL is https://slightlyoff.github.io/ServiceWorker/spec/service_worker/ has been replaced by the new one at https://w3c.github.io/ServiceWorker/.
* implement ExtendableEvent as base type for ServiceWorker eventsRahul Sharma2016-09-171-3/+12
|
* Auto merge of #12910 - creativcoder:swsender, r=jdmbors-servo2016-09-151-13/+30
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement postMessage for ServiceWorkers <!-- Please describe your changes on the following line: --> Fixes #12773 r? @jdm Changes: * Implements `postMessage` on `ServiceWorker` object. * Removes unused channels from sw and their scopes. * Fixes a crash when calling `scope.script_chan()` in sw-scopes event handling. --- <!-- 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 #12773 <!-- Either: --> - [X] There are tests for these changes at `tests/html/service-worker` <!-- 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/12910) <!-- Reviewable:end -->
| * store senders instead of buffering messagesRahul Sharma2016-09-071-38/+17
| |
| * Make service workers talk to their serviceworkerglobalscopesRahul Sharma2016-09-071-23/+61
| |
* | Use fn pipeline_id consistently, not fn pipelineAneesh Agrawal2016-09-131-1/+1
|/ | | | | | | | | | | | Consistently use the name 'pipeline_id' to refer to a function that returns an (optional) PipelineId. This was prompted by discovering both fn pipeline and fn pipeline_id doing the same job in htmliframeelement.rs. Note that there is fn pipeline in components/compositing/compositor.rs, but that actually returns an Option<&CompositionPipeline>, not any kind of PipelineId.
* Remove mutex from TrustedAlan Jeffrey2016-08-291-4/+0
| | | | | Use weak references rather than message passing to garbage-collect dead references.
* Move thread_state to style.Ms2ger2016-08-221-2/+2
|
* Dispatch events to service worker object and refactor html testsRahul Sharma2016-08-021-3/+6
|
* Bring back run_with_memory_reporting in serviceworkerglobalscopeRahul Sharma2016-07-291-5/+8
|
* Make the service worker send custom responseRahul Sharma2016-07-261-17/+30
|
* Integrate service worker manager threadRahul Sharma2016-07-161-157/+73
|
* Auto merge of #11872 - eddyb:back-to-roots, r=Ms2gerbors-servo2016-07-041-2/+2
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Replace return_address usage for rooting with stack guards and convenience macros. The existing `Rooted` and `RootedVec` users were migrated the the following two macros: ```rust let x = Rooted::new(cx, value); // Was changed to: rooted!(in(cx) let x = value); // Which expands to: let mut __root = Rooted::new_unrooted(value); let x = RootedGuard::new(cx, &mut __root); ``` ```rust let mut v = RootedVec::new(); v.extend(iterator); // Was changed to: rooted_vec!(let v <- iterator); // Which expands to: let mut __root = RootableVec::new(); let v = RootedVec::new(&mut __root, iterator); ``` The `rooted!` macro depends on servo/rust-mozjs#272. These APIs based on two types, a container to be rooted and a rooting guard, allow implementing both `Rooted`-style rooting and `Traceable`-based rooting in stable Rust, without abusing `return_address`. Such macros may have been tried before, but in 1.9 their hygiene is broken, they work only since 1.10. Sadly, `Rooted` is a FFI type and completely exposed, so I cannot prevent anyone from creating their own, although all fields but the value get overwritten by `RootedGuard::new` anyway. `RootableVec` OTOH is *guaranteed* to be empty when not rooted, which makes it harmless AFAICT. By fixing rust-lang/rust#34227, this PR enables Servo to build with `-Zorbit`. --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix rust-lang/rust#34227 - [x] These changes do not require tests because they are not functional changes <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11872) <!-- Reviewable:end -->
| * Switch to using the new rooted!/RootedGuard API for rooting.Eduard Burtescu2016-07-041-2/+2
| |
* | Refactor `util::prefs` operations to be methods on static struct.Corey Farwell2016-07-021-2/+2
|/
* implement related sw interface and register methodRahul Sharma2016-06-021-0/+382