Luke Wagner
786af33c6f
Bug 1239601 - improve the UniquePtr situation (r=jandem)
2016-01-15 18:26:20 -06:00
Ben Kelly
7dbfaeabc7
Bug 1232931 Return null instead of throwing if swm.getWorkerByID() cannot find the worker. r=ochameau IGNORE IDL for comment only change
2016-01-15 09:37:34 -08:00
Carsten "Tomcat" Book
e27a7ede7f
merge mozilla-inbound to mozilla-central a=merge
2016-01-15 11:46:47 +01:00
Ehsan Akhgari
b7af5f5071
Bug 1201664 - Avoid using Request's constructor when creating FetchEvent.request; r=bkelly
...
This enables us to avoid a number of checks in Request::Constructor
which don't make sense for exposing FetchEvent.request.
2016-01-14 13:08:36 -05:00
Alexandre Poirot
62d2ea9ddd
Bug 1158264 - Send an observer service event when a service worker intercept a request. r=bkelly
2016-01-14 05:53:00 -08:00
Kit Cambridge
68344b1714
Bug 1234054 - Only enable service worker notifications on Desktop and non-release B2G/Android. r=ehsan
2016-01-05 15:53:43 -07:00
Lars T Hansen
b83bd4ebc0
Bug 1231337 - part 2, conditionally enable shared memory for dedicated workers. r=khuey
2016-01-06 16:31:38 +01:00
Ben Kelly
cbf907ad84
Bug 1238990 P2 Try to ensure service worker jobs do not run during shutdown. r=ehsan
2016-01-12 16:04:18 -08:00
Ben Kelly
b60f432109
Bug 1238990 P1 ServiceWorkerManager should trigger automatic updates in current process. r=ehsan
2016-01-12 16:04:18 -08:00
Andrea Marchesini
f5523a8426
summary: Bug 1231378 - part 5 - Fix uninitialized members of classes in dom/{workers,events,media,canvas}, r=smaug
2016-01-12 18:16:59 +00:00
Ehsan Akhgari
7a8039cac2
Bug 1237363 - Part 1: Unregister all service workers registered in mochitests at the end of the test; r=jdm
2016-01-12 09:51:19 -05:00
Carsten "Tomcat" Book
8acb11c5ba
Backed out changeset 6d08ab04a77c (bug 1231378)
2016-01-12 15:48:53 +01:00
Andrea Marchesini
d1679cc1db
Bug 1231378 - part 5 - Fix uninitialized members of classes in dom/{workers,events,media,canvas}, r=smaug
2016-01-12 13:57:37 +00:00
Ehsan Akhgari
98f3e8ff8d
Bug 1238213 - Make FetchEvent.request non-nullable; r=baku
2016-01-11 13:21:23 -05:00
Ehsan Akhgari
697781ab02
Bug 1236933 - Return null from FetchEvent.clientId for non-subresource network requests; r=bkelly
2016-01-08 21:53:37 -05:00
Ben Kelly
158edd4fe7
Bug 1230030 Don't replace active worker unnecessarly after saving registration in e10s mode. r=ehsan
2016-01-08 11:18:41 -08:00
Ehsan Akhgari
50246c3862
Bug 1142768 - Return the original document URI from ServiceWorkerClient.url; r=bkelly
2016-01-08 14:16:47 -05:00
Andrea Marchesini
1fb0a041e9
Bug 1237674 - Rename nsFormData to mozilla::dom::FormData, r=smaug
2016-01-07 19:30:36 +00:00
Andrea Marchesini
2472e98830
Bug 1228456 - add 'override' to the Cancel() method of a nsICancelableRunnable, rs=me
2016-01-07 18:45:09 +00:00
Andrea Marchesini
7ddc0ddd62
Bug 1228456 - SharedWorker should close the MessagePort in case the connecting runnable is not dispatched, r=smaug
2016-01-07 18:01:56 +00:00
Eddy Bruel
b4a9142549
Bug 1211903 - WorkerDebugger should live on the main thread;r=khuey
2016-01-07 13:35:31 +01:00
Carsten "Tomcat" Book
9584b60b0c
merge mozilla-inbound to mozilla-central a=merge
2016-01-07 11:50:57 +01:00
Yoshi Huang
bc71ddcaa7
Bug 1233644 - use pattern matching when listening clear-origin-data. r=baku
2015-12-18 18:58:41 +08:00
Jonathan Griffin
ebdb6b8c29
Bug 1232780 - Disable mochitests which fail on e10s so we can get that suite running, a=test-only
2016-01-05 12:02:47 -08:00
Ehsan Akhgari
6e8b3ac548
Bug 1236686 - Remove nsIFetchEventDispatcher; r=jdm
2016-01-05 15:04:41 -05:00
Terrence Cole
f66b486531
Bug 1235598 - Part 2: Use TraceEdge exclusively in Gecko; r=smaug
2015-12-30 08:52:14 -08:00
Lars T Hansen
189baf3965
Bug 1231333 - part 2, DOM: only allow futexWait in workers. r=khuey
2015-12-23 13:44:00 +01:00
Kit Cambridge
64943f933d
Bug 1234054 - Enable Push and service worker notifications on Desktop release builds. r=ehsan
2016-01-04 14:32:33 -07:00
Ehsan Akhgari
7e2b29ad8b
Bug 1214305 - Part 8: Enable secure upgrade service worker tests on e10s; r=jdm
2016-01-04 16:30:02 -05:00
Ehsan Akhgari
dd4240711a
Bug 1214305 - Part 5: Use the secure upgraded channel URI in FetchEventRunnable::Init; r=jdm
...
This ensures that FetchEvent.request.url will have the correct value
for secure upgraded channels.
2016-01-04 16:30:02 -05:00
Ehsan Akhgari
5f7954b5b6
Bug 1214305 - Part 4: Use the secure upgraded channel URI in ServiceWorkerManager::PrepareFetchEvent; r=jdm
...
This is needed to ensure that the ServiceWorkerManager uses the
correct URI for non-subresource requests. Note that we're relying
on the property that non-secure non-subresource requests can never
be intercepted, so we don't need to check the request type explicitly.
2016-01-04 16:30:02 -05:00
Ehsan Akhgari
847493fd56
Bug 1226384 - Reject the promise returned from ServiceWorkerRegistration.update() if the registration is being uninstalled; r=bkelly
2016-01-04 14:50:57 -05:00
Ehsan Akhgari
0d63b0e2ea
Bug 1235896 - Make it possible to run browser_download.js with --run-until-failure; r=bkelly
2016-01-04 14:50:57 -05:00
Wes Kocher
3ed0d4d1fb
Backed out 10 changesets (bug 1214305) for leaks on linux debug m-e10s(bc7)
...
Backed out changeset 1f482566235a (bug 1214305)
Backed out changeset 001b31489756 (bug 1214305)
Backed out changeset 4e94d2088219 (bug 1214305)
Backed out changeset fba4a5bcea41 (bug 1214305)
Backed out changeset 100f8e249007 (bug 1214305)
Backed out changeset a59c453192dc (bug 1214305)
Backed out changeset 2daa86fc1fb9 (bug 1214305)
Backed out changeset c04efb57b0ed (bug 1214305)
Backed out changeset 52046e843c60 (bug 1214305)
Backed out changeset ac4fd6615828 (bug 1214305)
2016-01-04 10:34:24 -08:00
Ehsan Akhgari
25fb0a1f1a
Bug 1214305 - Part 8: Enable secure upgrade service worker tests on e10s; r=jdm
2016-01-04 09:52:49 -05:00
Ehsan Akhgari
1e0c4f11f4
Bug 1214305 - Part 5: Use the secure upgraded channel URI in FetchEventRunnable::Init; r=jdm
...
This ensures that FetchEvent.request.url will have the correct value
for secure upgraded channels.
2016-01-04 09:52:44 -05:00
Ehsan Akhgari
77778afe3e
Bug 1214305 - Part 4: Use the secure upgraded channel URI in ServiceWorkerManager::PrepareFetchEvent; r=jdm
...
This is needed to ensure that the ServiceWorkerManager uses the
correct URI for non-subresource requests. Note that we're relying
on the property that non-secure non-subresource requests can never
be intercepted, so we don't need to check the request type explicitly.
2016-01-04 09:52:42 -05:00
Kyle Huey
6e1632a000
Bug 1059469: Part 2 - When rescheduling the interval timer, cancel it first, and refactor things so that actually does something. r=bent
...
RunExpiredTimeouts has "fudging" code to always ensure that we execute at least one timeout. This is intended to cover cases where an nsITimer fires slightly early, but it means we must be careful not to fire a timer more times than we intend to or we'll execute a timeout prematurely.
Consider a sequences of setTimeout calls alternating in delay between 0ms and 1000ms. When the 1000ms timeout fires, it schedules a 0ms timeout. The setTimeout call itself calls RescheduleTimeoutTimer, which schedules the timer for a 0 ms delay. And once we unwind the 1000ms timeout RunExpiredTimeouts will also schedule the timer for a 0 ms delay. If the timer has fired (remember, it's processed on a completely different thread) in the meantime, we ultimately will get two callbacks from nsITimer for our 0 ms timeout. The first will run the 0 ms timeout and schedule a 1000 ms timeout, and the second will run the 1000 ms timeout (remember, RunExpiredTimeouts always runs at least one timeout!) ~999 ms ahead of schedule.
The solution is to cancel the timer in RescheduleTimeoutTimer, so that when we call it the second time it will cause any pending events from the first scheduling to be canceled. But this actually doesn't work at all, because of how we use nsITimer. Before worker threads were capable of accepting arbitrary runnables we created TimerThreadEventTarget, which translates the timer firing to the special worker event queue when the timer thread attempts to *dispatch* a runnable to the worker. We still need this for some of the other types of timers (which use control runnables that interrupt JS, and not the regular event queue). But setTimeout can simply run like a normal nsITimer callback now. We need that here, or calling nsITimer::Cancel won't actually do anything, because the timer's event was ignored and TimerThreadEventTarget created its own event.
2016-01-06 13:18:29 -08:00
Kyle Huey
532219e569
Bug 1059469: Part 1 - Add a log module for dump() calls. r=bent
2016-01-06 13:18:29 -08:00
Kyle Huey
09f3d6f56e
Bug 1153636: Don't assert with addEventListener("") on workers. r=smaug
2016-01-06 13:18:29 -08:00
Jeff Walden
4f31020ada
Bug 1235615 - Split JS::CompartmentOptions into JS::CompartmentCreationOptions that are immutable characteristics of a compartment, and JS::CompartmentBehaviors that may be changed after the compartment's been created. r=terrence
2015-12-28 16:15:52 -06:00
Andrea Marchesini
c43c6ed825
Bug 1235629 - Remove dead code in WorkerFeature.h, r=smaug
2015-12-29 20:35:21 +00:00
Ben Kelly
223cb28553
Bug 1220681 P6 Use clients.claim() in browser_download.js to avoid worker unregister race. r=jdm
2015-12-23 12:20:53 -08:00
Ben Kelly
682d9b7d03
Bug 1220681 P2 Test synthetic responses that trigger downloads. r=ehsan
2015-12-23 12:20:53 -08:00
Carsten "Tomcat" Book
750e6ac637
Backed out changeset 9441286007c4 (bug 1211903) for assertion failures/crashes
2015-12-22 14:11:27 +01:00
Eddy Bruel
c3cb2a8e97
Bug 1211903 - WorkerDebugger should live on the main thread;r=khuey
2015-12-22 12:46:57 +01:00
Ben Kelly
a8e331cb3c
Bug 1232444 Only store service worker registrations after install is successful. r=baku
2015-12-18 11:04:40 -05:00
Ben Kelly
7ee0563979
Bug 1231974 P6 Abort update-triggered install jobs if the service worker script has changed. r=baku
2015-12-18 11:04:40 -05:00
Ben Kelly
3b0d5a26f7
Bug 1231974 P4 Lazy load registration and verify it does not change in service worker jobs. r=baku
2015-12-18 11:04:40 -05:00
Ben Kelly
1069685d1e
Bug 1231974 P3 Store the principal on the ServiceWorkerJobBase. r=baku
2015-12-18 11:04:39 -05:00