Граф коммитов

2683 Коммитов

Автор SHA1 Сообщение Дата
Ben Kelly eee3c799da Bug 1242482 P4 Don't call SendUnregister() a second time when SW registration is finally removed. r=baku
--HG--
extra : rebase_source : 88a0529fab3ab7e14a44573126c067877f5073d2
2016-02-15 13:40:00 +01:00
Ben Kelly c7c4fb325b Bug 1242482 P3 Don't send unregister messages when triggered from a PropagateUnregister(). r=baku
--HG--
extra : rebase_source : bca7c0517ca06a7daf44117148309af64f75f29e
2016-02-20 07:03:00 +01:00
Ben Kelly b81860f65d Bug 1242482 P2 Don't SendUnregister() if registration is already removed. r=baku
--HG--
extra : rebase_source : caea92dfbacc7f3d76b260905c467d6351dd890d
2016-02-12 14:21:00 +01:00
Alexandre Poirot d9cc2461d5 Bug 1242482 - Propagate Service worker unregistration to the parent process. r=bkelly
--HG--
extra : rebase_source : af93bbd26e21a13012c78b0f5a0d3c16f101e332
2016-01-25 07:49:00 +01:00
Xidorn Quan 375b4bcd4d Bug 1248851 part 1 - Explicitly mark some release() calls result-unused. r=Waldo
MozReview-Commit-ID: Cgubemm1Et3

--HG--
extra : source : c67a746cab7e2abd5b7431157980c9ead4f51bea
2016-02-20 11:06:25 +08:00
Boris Zbarsky 13359b10de Bug 1249102. Make overrides of WorkerRunnable::PostRun a bit more consistent. r=khuey
Specifically we make the following changes:

1)  Remove WorkerSameThreadRunnable::PostRun, because it does exactly the same
things as WorkerRunnable::PostRun.

2)  Always treat ModifyBusyCountFromWorker as infallible in terms of throwing
JS exceptions.

3)  Change ExtendableFunctionalEventWorkerRunnable::PostRun to properly call
its superclass PostRun so we will correctly decrement the busy count our
PreDispatch incremented.

4)  Document why some overrides of PreDispatch/PostDispatch are needed and
don't call into the superclass
2016-02-18 18:02:51 -05:00
Boris Zbarsky 2e83741081 Bug 1248737. Improve documentation for WorkerRunnable and associated classes. r=khuey 2016-02-18 18:02:51 -05:00
Ben Kelly e532612e21 Bug 1246319 P3 Fix service worker registry value update. r=bz 2016-02-18 14:48:49 -08:00
Boris Zbarsky 3dba4c9b72 Bug 1248719. Fix things so that taking ownership of error reporting on an AutoJSAPI on a worker is OK even if that AutoJSAPI was initialized without an explicit global. r=bholley 2016-02-17 22:56:36 -05:00
Kyle Huey 31dabb4558 Bug 1247117: De-namespace much of IndexedDB. r=baku 2016-02-16 13:46:08 -08:00
Aidin Gharibnavaz 6863090c8a Bug 1235830 - Renaming GetInternalNSEvent to WidgetEvent, in nsIDOMEvent r=smaug
MozReview-Commit-ID: Hm8Owq17KXn

--HG--
extra : transplant_source : 2%82%D5%89%19%94%7C%E7%CA1%99%B5%24%1F5%E1%C0%1F%DE%07
2016-02-12 19:10:07 +03:30
ISHIKAWA, Chiaki be2b50a7f8 Bug 1248252 - Improper outdated octal constant syntax in M-C tree. Use '0o' prefix. r=dao
Be warned. Do not attemp to change the .js "test" source code in ./js
They are meant to check

 - the outdated 0666 octal constant is still parsed correctly,
 - the outdated 0666 octal constant raises syntax error flag
   in strict mode, etc.

So leave them alone.
2016-02-15 08:57:00 +01:00
Ben Kelly c8b398c41e Bug 1246319 P2 Verify entries are deduped from the ServiceWorkerRegistrar. r=baku 2016-02-15 11:00:33 -08:00
Ben Kelly 04f86da847 Bug 1246319 P1 Dedupe service worker registrar entries. r=baku 2016-02-15 11:00:33 -08:00
Andrea Marchesini 4bf350a0ba Bug 1247122 - Propagate the NS_ERROR_OUT_OF_MEMORY from CycleCollectedJSRuntime CTOR, r=khuey 2016-02-14 13:30:25 +00:00
Ben Kelly 4078d82066 Bug 1247623 Cancel intercepted channel in more service worker failure cases. r=jdm 2016-02-11 14:37:45 -08:00
Andrea Marchesini 14fefc056e Bug 1246784 - Expose Console to the WorkerDebuggerGlobalScope, r=khuey 2016-02-11 17:41:17 +00:00
Ben Kelly 482fdc1b5f Bug 1247436 Ensure service worker registration is persisted if its resurrected from a pending uninstall. r=baku 2016-02-11 06:23:11 -08:00
Aidin Gharibnavaz 686438c658 Bug 1164581 - Adding an overload for NS_ProxyRelease that accepts already_AddRefed, and removing all the others. r=bobbyholley 2016-02-10 08:23:00 +01:00
Eddy Bruel 001f5b604e Bug 1212333 - WorkerDebuggerManager should live on the main thread;r=khuey 2016-02-10 10:45:02 +01:00
Ben Kelly 73fb651fae Bug 1238954 P1 Purge potentially controlled document entries when evicting service worker registrations. r=ehsan 2016-02-09 19:33:40 -08:00
Carsten "Tomcat" Book 5b358688b7 Backed out changeset c18e29c1b369 (bug 1164581) for cpp unit tests test failures
--HG--
extra : rebase_source : fb6fd434c8e3f4b5fa53ea645a54c07cab207894
2016-02-08 11:17:38 +01:00
Aidin Gharibnavaz 69cf7e035f Bug 1164581 - Adding an overload for NS_ProxyRelease that accepts already_AddRefed, and removing all the others. r=bobbyholley
--HG--
extra : rebase_source : 3c6bba6613a14e48239d302bdd0f7fe2e322265d
2016-02-07 10:56:00 +01:00
Carsten "Tomcat" Book 940ea6bf9d Backed out changeset a6bc2efcdf26 (bug 1212333) for bustage 2016-02-05 16:09:28 +01:00
Eddy Bruel d24491b6d8 Bug 1212333 - WorkerDebuggerManager should live on the main thread;r=khuey 2016-02-04 22:04:25 +01:00
Ben Kelly 5f82d7804c Bug 1244764 P3 Make service worker tests pass with new Cache add()/addAll() behavior. r=ehsan 2016-02-04 07:59:52 -08:00
Andrea Marchesini 21900562cd Bug 1245768 - Implement a test for the correct error management when worker imports 3rd party scripts, r=bz 2016-02-04 15:35:16 +00:00
Ben Kelly 5b55c70961 Bug 1243453 P2 Test XHR with a non-intercepting service worker. r=ehsan 2016-02-04 07:28:21 -08:00
dimi 79e7aac574 Bug 1241929 - remove PurgeActiveWorker() from install job when skip waiting is set. r=bkelly 2016-02-03 14:37:55 +08:00
Ben Kelly 8c2ce776c6 Bug 1244122 P3 Execute browser_download.js service worker in separate scope. r=ehsan
--HG--
rename : dom/workers/test/serviceworkers/download_window.html => dom/workers/test/serviceworkers/download/window.html
rename : dom/workers/test/serviceworkers/download_worker.js => dom/workers/test/serviceworkers/download/worker.js
2016-02-02 10:03:20 -08:00
Ben Kelly 8614fdb3c4 Bug 1244122 P2 Perform refresh testing with http cache disabled. r=ehsan 2016-02-02 10:03:20 -08:00
Birunthan Mohanathas d7371d07d0 Bug 1235261 - Part 1: Rename nsAutoTArray to AutoTArray. r=froydnj 2016-02-02 17:36:30 +02:00
Phil Ringnalda 5bf2bbbbee Back out 2 changesets (bug 1244122) for a 50% failure rate in (at least) 10.6 e10s browser_force_refresh.js
Backed out changeset d383f170be3f (bug 1244122)
Backed out changeset b1eacad41db4 (bug 1244122)
2016-02-01 19:53:55 -08:00
Andrea Marchesini 75115ed2f7 Bug 1243881 - patch 2 - unship performance.translateTime, r=bz 2016-02-01 21:48:04 +00:00
Andrea Marchesini f5ab6363a1 Bug 1243881 - patch 1 - unship performance.translateTime, r=bz 2016-02-01 21:48:04 +00:00
Jeff Walden 8ab8bd921d Bug 1216150 - Mini-bustage fix for something I think I unintentionally qref'd into the final patch. r=bustage in a CLOSED TREE 2016-02-01 13:37:27 -08:00
Jeff Walden 1fbf47cd58 Bug 1216150 - Turn on the experimental Intl.DateTimeFormat.prototype.formatToParts in b2g certified apps. r=fabrice 2016-02-01 12:48:58 -08:00
Ben Kelly e884f7ec24 Bug 1244122 P2 Perform refresh testing with http cache disabled. r=ehsan 2016-02-01 12:29:40 -08:00
Phil Ringnalda d381b4bca6 Back out 7 changesets (bug 1235261) for cpptest failures in TestTArray
CLOSED TREE

Backed out changeset d66c3f19a210 (bug 1235261)
Backed out changeset 467d945426bb (bug 1235261)
Backed out changeset 32b61df13142 (bug 1235261)
Backed out changeset c50bb8ed4196 (bug 1235261)
Backed out changeset 0ff0fa6fe81f (bug 1235261)
Backed out changeset df70e89669da (bug 1235261)
Backed out changeset 064969357fc9 (bug 1235261)
2016-01-31 10:10:57 -08:00
Birunthan Mohanathas 373593275e Bug 1235261 - Part 1: Rename nsAutoTArray to AutoTArray. r=froydnj 2016-01-31 17:12:12 +02:00
Kyle Huey 91efc5a86c Bug 1241764: Replace nsPIDOMWindow with nsPIDOMWindowInner/Outer. r=mrbkap,smaug 2016-01-30 09:05:36 -08:00
Arthur Edelstein f022c23fcb Bug 1237831 - Use a non-format argument in LogMessageToConsole. r=jst 2016-01-04 09:32:21 -08:00
Bill McCloskey c663839ade Bug 1240871 - Don't allow implicit "async" in IPDL (r=mccr8,billm) 2016-01-28 20:56:37 -08:00
Ehsan Akhgari fbf2580b8c Bug 1197379 - Remove support for intercepting app:// URIs using service workers; r=jdm 2016-01-27 15:26:27 -05:00
Olli Pettay d6444f776f Bug 1241485 - Increase the limit for workers per-origin, r=khuey
--HG--
extra : rebase_source : cff8b7973ceffe97e56d49adeeac13b040279a50
2016-01-27 02:45:22 +02:00
dimi c21d1ebd14 Bug 1188822 - Make service-workers/service-worker/fetch-request-resources.https.html pass. r=bkelly 2016-01-25 14:18:29 +08:00
Jeff Walden e42d55ea6e Bug 1079844 - Rename JS_IsNeuteredArrayBufferObject to JS_IsDetachedArrayBufferObject. r=till
--HG--
extra : rebase_source : 31cfdce35e6e8dc8d212391ae485aa8fec6ead5b
2016-01-25 14:01:13 -08:00
Kit Cambridge 9e4ed15128 Bug 1239584, Part 1 - Add `nsIPushNotifier` and `nsIPushMessage` interfaces. r=dragana
--HG--
extra : commitid : HD2fDINypFu
extra : rebase_source : 477ab56822deb5e6423c8f9b36f1a5c119d07951
2016-01-13 22:19:51 -07:00
Boris Zbarsky c136be558a Bug 1242040. Fix the GlobalObject usage in ExtendableEvent::GetPromise. r=bkelly 2016-01-23 00:37:34 -05:00
Kit Cambridge f398300afc Back out out 3 changesets (bug 1239584) for B2G build failures on a CLOSED TREE.
--HG--
extra : commitid : 74RywJW7UVo
extra : amend_source : 2088096e01cb7b6fda50c87f05d427cd79147554
2016-01-22 11:06:14 -08:00
Kit Cambridge ecc52d87d2 Bug 1239584, Part 1 - Add `nsIPushNotifier` and `nsIPushMessage` interfaces. r=dragana
--HG--
extra : commitid : F7MFsrMAXQy
extra : rebase_source : 3333eed45b538bccbdf2761a91fb5fada8fcf922
2016-01-13 22:19:51 -07:00
Andrea Marchesini 26837f359d Bug 1241725 - about:serviceworkers "Active Cache Name" UUID should not contain null bytes, r=bkelly 2016-01-22 17:39:14 +00:00
Ben Kelly 7f77e20519 Bug 1241531 - Part 4: Make service worker unregister job respect cancelation. r=ehsan 2016-01-21 08:50:00 -05:00
Ben Kelly c36cdf7710 Bug 1241531 - Part 3: Call Cancel() on all service worker jobs. r=ehsan 2016-01-21 08:49:00 -05:00
Ben Kelly 000a5ee768 Bug 1241531 - Part 2: Move Cancel() to ServiceWorkerJob base class. r=ehsan 2016-01-21 08:49:00 -05:00
Ben Kelly 65b8a0eec8 Bug 1241531 - Part 1: Only pop jobs from the queue when the correct job completes. r=ehsan 2016-01-21 08:48:00 -05:00
Andrea Marchesini ee9c7a0bee Bug 1240365 - FileReader should use the global scope correctly in ChromeWorkers, r=smaug, r=khuey 2016-01-20 18:17:57 +00:00
Chris Peterson c824bef9fe Bug 1240265 - Annotate intentional switch fallthroughs in dom/. r=mrbkap
dom/base/Element.cpp:2920:3 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
dom/base/Element.cpp:2935:3 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
dom/base/nsDocument.cpp:6595:5 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
dom/base/nsDocument.cpp:7631:5 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
dom/base/nsDocument.cpp:7922:3 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
dom/base/nsGlobalWindow.cpp:7573:3 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
dom/base/nsXMLContentSerializer.cpp:1393:7 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
dom/cache/AutoUtils.cpp:487:5 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
dom/html/HTMLInputElement.cpp:3808:15 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
dom/html/HTMLInputElement.cpp:3836:15 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
dom/storage/DOMStorageDBThread.cpp:224:3 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
dom/workers/ScriptLoader.cpp:1994:5 [-Wimplicit-fallthrough] unannotated fall-through between switch labels

--HG--
extra : rebase_source : ba9bd93b2c65e2db05b26e7b4c203dd7710516f3
2015-11-25 23:26:32 -08:00
dimi feb64fd688 Bug 1229795 - P3. Migrate service worker registrar data between version 2 and version 3. r=baku 2016-01-20 09:34:26 +08:00
dimi 7a5ce67080 Bug 1229795 - P2. Remove waitingCacheName from registartion data. r=baku 2016-01-13 09:31:23 +08:00
dimi 6b8c972908 Bug 1229795 - P1. Remove scriptSpec from registration data. r=baku, bkelly 2016-01-15 10:27:01 +08:00
Ehsan Akhgari d08dcc913c Bug 1209081 - Part 1: Implement the "navigate" value for RequestMode; r=bkelly 2016-01-19 17:46:10 -05:00
Luke Wagner 72ea23c63e Bug 1239601 - improve the UniquePtr situation (r=jandem)
--HG--
extra : commitid : JegWAoGsuQ9
extra : rebase_source : 995c1b6ab8e4fd3b83c44741cd84a2d7b0d934d7
2016-01-15 18:26:20 -06:00
Ben Kelly c1888990fc 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 7e52b24fab merge mozilla-inbound to mozilla-central a=merge 2016-01-15 11:46:47 +01:00
Ehsan Akhgari df420183a8 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 c7c2eba05c 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 9298b42468 Bug 1234054 - Only enable service worker notifications on Desktop and non-release B2G/Android. r=ehsan
--HG--
extra : commitid : J5ruuRyO0K8
extra : rebase_source : b115b91a5d809b3b73fea5e1b45a3602a1fb5748
2016-01-05 15:53:43 -07:00
Lars T Hansen 1b2551c10b Bug 1231337 - part 2, conditionally enable shared memory for dedicated workers. r=khuey
--HG--
extra : rebase_source : 9da6daa1211937d0fe1ca11eccce4ea90ca0e637
extra : histedit_source : 4d08c392a2766d46dcb41b14dea24d4c4f9be855
2016-01-06 16:31:38 +01:00
Ben Kelly 60a79638ce 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 bdd438123b Bug 1238990 P1 ServiceWorkerManager should trigger automatic updates in current process. r=ehsan 2016-01-12 16:04:18 -08:00
Andrea Marchesini 7167daa292 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 7a3453ad7a 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 00abd66130 Backed out changeset 6d08ab04a77c (bug 1231378) 2016-01-12 15:48:53 +01:00
Andrea Marchesini 98f16784c5 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 25594f6881 Bug 1238213 - Make FetchEvent.request non-nullable; r=baku 2016-01-11 13:21:23 -05:00
Ehsan Akhgari cddea9ec89 Bug 1236933 - Return null from FetchEvent.clientId for non-subresource network requests; r=bkelly 2016-01-08 21:53:37 -05:00
Ben Kelly f2bc2e331e 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 ec2c39ef0c Bug 1142768 - Return the original document URI from ServiceWorkerClient.url; r=bkelly 2016-01-08 14:16:47 -05:00
Andrea Marchesini 4fd7346fa1 Bug 1237674 - Rename nsFormData to mozilla::dom::FormData, r=smaug
--HG--
rename : dom/base/nsFormData.cpp => dom/base/FormData.cpp
rename : dom/base/nsFormData.h => dom/base/FormData.h
2016-01-07 19:30:36 +00:00
Andrea Marchesini 1e9d936689 Bug 1228456 - add 'override' to the Cancel() method of a nsICancelableRunnable, rs=me 2016-01-07 18:45:09 +00:00
Andrea Marchesini 7ac7825383 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 4a221d8be9 Bug 1211903 - WorkerDebugger should live on the main thread;r=khuey 2016-01-07 13:35:31 +01:00
Carsten "Tomcat" Book c3c9e7c565 merge mozilla-inbound to mozilla-central a=merge 2016-01-07 11:50:57 +01:00
Yoshi Huang bd65e48e3f Bug 1233644 - use pattern matching when listening clear-origin-data. r=baku 2015-12-18 18:58:41 +08:00
Jonathan Griffin 59f626fe96 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 40c82fa10c Bug 1236686 - Remove nsIFetchEventDispatcher; r=jdm 2016-01-05 15:04:41 -05:00
Terrence Cole bb224242a8 Bug 1235598 - Part 2: Use TraceEdge exclusively in Gecko; r=smaug
--HG--
extra : rebase_source : 27afd7eecd5a13f8d28b888b64d5e44b3c4a74a5
2015-12-30 08:52:14 -08:00
Lars T Hansen 68ea3c1b16 Bug 1231333 - part 2, DOM: only allow futexWait in workers. r=khuey
--HG--
extra : rebase_source : d5019bc4ec839427bc9d86f58542f107adc97988
2015-12-23 13:44:00 +01:00
Kit Cambridge 8f689a5c00 Bug 1234054 - Enable Push and service worker notifications on Desktop release builds. r=ehsan
--HG--
extra : commitid : 6vRoS2CYj3v
extra : rebase_source : a2d776215cfbc97b583afeb83141c7878b014d34
2016-01-04 14:32:33 -07:00
Ehsan Akhgari d7bfbd4a1d Bug 1214305 - Part 8: Enable secure upgrade service worker tests on e10s; r=jdm 2016-01-04 16:30:02 -05:00
Ehsan Akhgari 603bdd57fd 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 ba3d9b7d66 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 5b3ebf89d1 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 46b8636a0e 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 dbbade6e75 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)

--HG--
extra : commitid : ILmaVumvmvH
2016-01-04 10:34:24 -08:00
Ehsan Akhgari 5740e920d4 Bug 1214305 - Part 8: Enable secure upgrade service worker tests on e10s; r=jdm 2016-01-04 09:52:49 -05:00
Ehsan Akhgari 0c4cdf6c16 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 a4a75435f0 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 1ab13f2322 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 d878b5bb2d Bug 1059469: Part 1 - Add a log module for dump() calls. r=bent 2016-01-06 13:18:29 -08:00
Kyle Huey 449fd40516 Bug 1153636: Don't assert with addEventListener("") on workers. r=smaug 2016-01-06 13:18:29 -08:00
Jeff Walden 5be7be38a1 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
--HG--
extra : rebase_source : f08c380ae247d3308d4c36788ac765de1b75af50
2015-12-28 16:15:52 -06:00
Andrea Marchesini ec574f7448 Bug 1235629 - Remove dead code in WorkerFeature.h, r=smaug 2015-12-29 20:35:21 +00:00
Ben Kelly b6740878e7 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 14c2c5cced Bug 1220681 P2 Test synthetic responses that trigger downloads. r=ehsan 2015-12-23 12:20:53 -08:00
Carsten "Tomcat" Book 1b186ddd18 Backed out changeset 9441286007c4 (bug 1211903) for assertion failures/crashes 2015-12-22 14:11:27 +01:00
Eddy Bruel 681fe21ff9 Bug 1211903 - WorkerDebugger should live on the main thread;r=khuey 2015-12-22 12:46:57 +01:00
Ben Kelly c0b2a6dda8 Bug 1232444 Only store service worker registrations after install is successful. r=baku 2015-12-18 11:04:40 -05:00
Ben Kelly 113be0f30a 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 13e36422ab 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 9af4ff4976 Bug 1231974 P3 Store the principal on the ServiceWorkerJobBase. r=baku 2015-12-18 11:04:39 -05:00
Ben Kelly 8eab0e72f8 Bug 1231974 P2 Store scope on ServiceWorkerJobBase. r=baku 2015-12-18 11:04:39 -05:00
Ben Kelly 5b56c0c091 Bug 1231974 P1 Remove unneeded ServiceWorkerScriptJobBase abstract class. r=baku 2015-12-18 11:04:39 -05:00
Andrea Marchesini f2f6c3be20 Bug 901097 - FileReader API in workers, r=sicking, r=nfroyd
--HG--
rename : dom/base/test/fileapi_chromeScript.js => dom/workers/test/fileapi_chromeScript.js
2015-12-18 08:44:00 +00:00
Morris Tseng da5886e568 Bug 1172796 - Part 8: Add ImageBitmapRenderingContext to test_intefaces.html r=smaug
--HG--
extra : commitid : 9Q4m80HbYPZ
2015-12-18 14:52:17 +08:00
Ben Kelly 1d9e5fddae Bug 1233171 Cancel channel when ScriptLoader is aborted during service worker script load. r=khuey 2015-12-17 10:11:26 -05:00
Sebastian Hengst fe800f661e Backed out changeset 30839ee209e8 (bug 901097) for mochitest failures on Android and Mulet. r=backout 2015-12-17 14:13:59 +01:00
Andrea Marchesini 35ff8e160c Bug 901097 - FileReader API in workers, r=sicking, r=nfroyd
--HG--
rename : dom/base/test/fileapi_chromeScript.js => dom/workers/test/fileapi_chromeScript.js
2015-12-17 12:00:35 +00:00
Wes Kocher e23593462a Backed out changeset 84c8783b8518 (bug 901097) for test_fileReader.html crashes CLOSED TREE
--HG--
extra : commitid : crWlUUwg6J
2015-12-16 09:43:42 -08:00
Andrea Marchesini 7a681c85f9 Bug 901097 - FileReader API in workers, r=sicking, r=nfroyd
--HG--
rename : dom/base/test/fileapi_chromeScript.js => dom/workers/test/fileapi_chromeScript.js
2015-12-16 12:37:31 +00:00
Carsten "Tomcat" Book af9ca82bf2 Backed out changeset d74d1e794421 (bug 901097) for bustage on a CLOSED TREE 2015-12-16 11:48:40 +01:00
Andrea Marchesini 97ccffac37 Bug 901097 - FileReader API in workers, r=sicking, r=nfroyd
--HG--
rename : dom/base/test/fileapi_chromeScript.js => dom/workers/test/fileapi_chromeScript.js
2015-12-16 10:15:03 +00:00
Wes Kocher c1452c8c24 Merge inbound to central, a=merge
--HG--
extra : commitid : Ebqzc9n0mUJ
2015-12-15 15:47:20 -08:00
Ben Kelly 056852f555 Backout ae46539dbbc9 (bug 1232444) for bustage. r=me 2015-12-15 10:07:26 -05:00
Ben Kelly fcd1d099bd Bug 1232444 Only store service worker registrations after install is successful. r=baku 2015-12-15 09:50:02 -05:00
Alexandre Poirot da5ef790fb Bug 1228382 - Expose an API to relate nsIWorkerDebugger to its nsIServiceWorkerInfo instance. r=ejpbruel 2015-12-15 03:10:53 -08:00
Fernando Jimenez a3d950d1bd Bug 1225121 - [B2G] All the rest of content processes crash if user tries to run app that uses Service Workers after restart. r=baku 2015-11-24 19:38:48 +01:00
Ben Kelly 252fa2e981 Bug 1226443 P6 Ignore update() called during top level service worker script evaluation. r=ehsan 2015-12-11 14:53:11 -05:00
Ben Kelly bcdf732eeb Bug 1226443 P5 Always use first scheduled update timer instead of rescheduling on new events. r=ehsan 2015-12-11 14:53:11 -05:00
Ben Kelly f63f1e236a Bug 1226443 P4 Cleanup ServiceWorkerScriptCache objects when initialization fails. r=ehsan 2015-12-11 14:53:11 -05:00
Ben Kelly 6078977989 Bug 1226443 P2 Make service worker fetch and functional events used scheduled timer updates. r=ehsan 2015-12-11 14:53:11 -05:00
Ben Kelly 3a28ef3617 Bug 1226443 P1 Add a timer based mechanism for firing service worker updates. r=ehsan 2015-12-11 14:53:10 -05:00
Ben Kelly 98ec7b6543 Bug 1227015 P7 Supress unused ErrorResult exception if the worker runnable failed to dispatch. r=catalinb 2015-12-11 14:53:10 -05:00
Ben Kelly 8e14f1b4ad Bug 1227015 P6 Abort updates if the script spec has changed. r=ehsan 2015-12-11 14:53:10 -05:00
Ben Kelly a27a88c3ed Bug 1227015 P5 Remove ServiceWorkerRegistrationInfo mScriptSpec. r=ehsan 2015-12-11 14:53:10 -05:00
Ben Kelly a1d2468c31 Bug 1227015 P4 Make register job always require an explicit script spec. r=ehsan 2015-12-11 14:53:10 -05:00
Ben Kelly b26016abd0 Bug 1227015 P3 Require a script spec on install jobs. r=ehsan 2015-12-11 14:53:10 -05:00
Ben Kelly 08fa8d6ccd Bug 1227015 P2 Move mScriptSpec from registration job into script job base. r=ehsan 2015-12-11 14:53:10 -05:00
Ben Kelly 6fa639dd7a Bug 1227015 P1 Create ServiceWorkerScriptJobBase as parent class to register and install jobs. r=ehsan 2015-12-11 14:53:10 -05:00
Catalin Badea 54a27691d4 Bug 1221992 - Prevent ServiceWorkerClients.OpenWindow from opening tabs in private mode windows. r=smaug 2015-12-11 13:32:15 -05:00
Phil Ringnalda 9229dc1d27 Back out 13 changesets (bug 1226443, bug 1227015) for a variety of serviceworker web-platform-test failures
CLOSED TREE

Backed out changeset d518261eb3b1 (bug 1226443)
Backed out changeset a7def186c1d3 (bug 1226443)
Backed out changeset e2f21ee1cd4c (bug 1226443)
Backed out changeset 8c4aff8bbfaf (bug 1226443)
Backed out changeset 4c85bf5e9bf5 (bug 1226443)
Backed out changeset 8fbc71a2912a (bug 1227015)
Backed out changeset 00ac71165014 (bug 1227015)
Backed out changeset e261f601b14d (bug 1227015)
Backed out changeset 78896c0bcb95 (bug 1227015)
Backed out changeset 244093d57c03 (bug 1227015)
Backed out changeset 03abf4d48e38 (bug 1227015)
Backed out changeset 2090c1e30933 (bug 1227015)
Backed out changeset 84e011be4e35 (bug 1227015)
2015-12-10 18:49:48 -08:00
Ben Kelly 48021845a7 Bug 1226443 P5 Always use first scheduled update timer instead of rescheduling on new events. r=ehsan 2015-12-10 18:08:14 -05:00
Ben Kelly 04ebcb1626 Bug 1226443 P4 Cleanup ServiceWorkerScriptCache objects when initialization fails. r=ehsan 2015-12-10 18:08:14 -05:00
Ben Kelly 33b46308aa Bug 1226443 P2 Make service worker fetch and functional events used scheduled timer updates. r=ehsan 2015-12-10 18:08:14 -05:00
Ben Kelly 7c8d5aa8c3 Bug 1226443 P1 Add a timer based mechanism for firing service worker updates. r=ehsan 2015-12-10 18:08:14 -05:00
Ben Kelly 1caaf57e47 Bug 1227015 P7 Supress unused ErrorResult exception if the worker runnable failed to dispatch. r=catalinb 2015-12-10 18:08:14 -05:00
Ben Kelly e591e4d6d5 Bug 1227015 P6 Abort updates if the script spec has changed. r=ehsan 2015-12-10 18:08:14 -05:00
Ben Kelly 5488438bfc Bug 1227015 P5 Remove ServiceWorkerRegistrationInfo mScriptSpec. r=ehsan 2015-12-10 18:08:13 -05:00
Ben Kelly e1a8ce4de7 Bug 1227015 P4 Make register job always require an explicit script spec. r=ehsan 2015-12-10 18:08:13 -05:00
Ben Kelly 54ff721dfe Bug 1227015 P3 Require a script spec on install jobs. r=ehsan 2015-12-10 18:08:13 -05:00
Ben Kelly 07fda7bc97 Bug 1227015 P2 Move mScriptSpec from registration job into script job base. r=ehsan 2015-12-10 18:08:13 -05:00
Ben Kelly 5a2acd2b46 Bug 1227015 P1 Create ServiceWorkerScriptJobBase as parent class to register and install jobs. r=ehsan 2015-12-10 18:08:13 -05:00
Ben Kelly 3e447dafea Bug 1229970 Abort script loading start requests if a load has been canceled. r=khuey 2015-12-09 18:21:00 -05:00
Phil Ringnalda 9af3731499 Back out 7 changesets (bug 1227015) for serviceworker bustage
CLOSED TREE

Backed out changeset a267542e8cb7 (bug 1227015)
Backed out changeset 03c28b711e1f (bug 1227015)
Backed out changeset 5fc6fca28ddf (bug 1227015)
Backed out changeset 7fb0c56916d2 (bug 1227015)
Backed out changeset 4bef51e9c8ae (bug 1227015)
Backed out changeset c46b5abddec5 (bug 1227015)
Backed out changeset fb4554bd3bde (bug 1227015)
2015-12-08 20:37:16 -08:00
Ben Kelly 9227b3237b Bug 1227015 P7 Supress unused ErrorResult exception if the worker runnable failed to dispatch. r=catalinb 2015-12-08 17:52:16 -05:00
Ben Kelly 0698a4728b Back out rev 4faa4cf68052 (bug 1227015 P7) for bustage 2015-12-08 17:49:05 -05:00
Ben Kelly ac0381ca84 Bug 1227015 P7 Suppress unused ErrorResult exception if the worker runnable failed to dispatch. r=catalinb 2015-12-08 17:15:55 -05:00
Ben Kelly 4db1035d1b Bug 1227015 P6 Abort updates if the script spec has changed. r=ehsan 2015-12-08 11:58:45 -05:00
Ben Kelly 58de757508 Bug 1227015 P5 Remove ServiceWorkerRegistrationInfo mScriptSpec. r=ehsan 2015-12-08 11:58:45 -05:00
Ben Kelly d40ef59cb0 Bug 1227015 P4 Make register job always require an explicit script spec. r=ehsan 2015-12-08 11:58:45 -05:00
Ben Kelly 00c0e624e5 Bug 1227015 P3 Require a script spec on install jobs. r=ehsan 2015-12-08 11:58:45 -05:00
Ben Kelly 3e15fcaa7d Bug 1227015 P2 Move mScriptSpec from registration job into script job base. r=ehsan 2015-12-08 11:58:45 -05:00
Ben Kelly 48d0ba6249 Bug 1227015 P1 Create ServiceWorkerScriptJobBase as parent class to register and install jobs. r=ehsan 2015-12-08 11:58:44 -05:00
Sebastian Hengst 114ca318d6 Backed out 2 changesets (bug 1221992) for almost permafailing M-e10s(2) on Linux debug. r=backout
Backed out changeset ad20808dd3c4 (bug 1221992)
Backed out changeset 7cdcda3e65fb (bug 1221992)
2015-12-05 21:13:41 +01:00
Ben Kelly b21a412c95 Bug 1230341 Hold a strong ref in service worker NS_NewRunnableMethodWithArg uses. r=ehsan a=abillings 2015-12-04 18:03:47 -08:00
Ben Kelly 47a437e6d5 Bug 1230164 P2 Only activate service workers in the activating state. r=ehsan 2015-12-04 13:32:37 -08:00
Catalin Badea b675b2325d Bug 1221992 - Prevent ServiceWorkerClients.OpenWindow from opening tabs in private mode windows. r=smaug 2015-12-04 19:14:44 +02:00
Wes Kocher bfbadfd96d Backed out 2 changesets (bug 1221992) for windows debug assertions in browser_perf-categories-js-calltree.js
Backed out changeset bcd90e591038 (bug 1221992)
Backed out changeset 6affaa386b9b (bug 1221992)

--HG--
extra : commitid : 4w08gUrbqQr
2015-12-03 15:56:59 -08:00
Catalin Badea 889982d7af Bug 1221992 - Prevent ServiceWorkerClients.OpenWindow from opening tabs in private mode windows. r=smaug 2015-12-03 23:19:29 +02:00
Ehsan Akhgari 6c4573cf9e Bug 1229056 - Implement ClientQueryOptions.includeUncontrolled; r=jdm 2015-12-02 20:37:03 -05:00
Ehsan Akhgari 5ac100af7e Bug 1222464 - Part 3: Implement Clients.get(); r=jdm 2015-12-02 20:37:01 -05:00
Ehsan Akhgari d8cef2d841 Bug 1222464 - Part 2: Implement FetchEvent.clientId; r=jdm 2015-12-02 20:36:59 -05:00
Ehsan Akhgari f9035eb119 Bug 1222464 - Part 1: Save a client ID for top-level navigations on the docshell and assign it as the document ID when we start loading the document; r=jdm
For top-level navigations, we need to compute the client ID when we decide to
intercept the document load, and we need to make sure the document that will
be created later will end up using that same ID.
2015-12-02 20:36:56 -05:00
Lars T Hansen b62493634b Bug 1176214 - Part 11: Changes to DOM, except for WebGL. r=bz, r=clb
--HG--
extra : rebase_source : 9c9d3f493822d68be20597d9974292ed5ec4ab70
2015-11-25 19:04:50 +01:00
Andrea Marchesini bae9fd5f6c Bug 1229071 - importScripts should throw the correct error result in case the loading of one of scripts fails, r=bz 2015-12-02 13:02:58 +00:00
Mike Hommey 3a7b31cfb5 Bug 1228444 - Rename DIST_FILES to FINAL_TARGET_PP_FILES. r=gps
This makes it clearer that really it's the same thing as FINAL_TARGET,
with preprocessing.
We still keep DIST_FILES in backend.mk because it's shorter and doesn't
really matter.
2015-12-01 08:25:22 +09:00
Mike Hommey 655579a1fa Bug 1228444 - Don't silence "no preprocessor directives found" warnings for DIST_FILES. r=gps
and move files without preprocessor directives to FINAL_TARGET_FILES.
2015-12-01 08:25:22 +09:00
Ehsan Akhgari 194a4067e6 Bug 1226686 - Enable service workers on release builds for desktop and Android; r=baku 2015-11-30 09:46:42 -05:00
Catalin Badea 3c2fed5544 Bug 1228427 - Fix test_serviceworkerinfo.xul: wait for the worker to become active. r=ehsan 2015-11-26 22:37:14 +02:00
Ehsan Akhgari 8ec3d68db3 Bug 1201127 - Return the same ServiceWorkerRegistration object from service worker APIs dealing with the same underlying registration object; r=jdm 2015-11-26 15:13:33 -05:00
Catalin Badea f363c7dd2d Bug 1189659 - Part 5 - Fix race in skip-waiting.https.html and add some logging for SkipWaitingFlag in ServiceWorkerManager. r=ehsan 2015-11-26 19:03:10 +02:00
Catalin Badea 92374ffd71 Bug 1189659 - Part 4 - Fix race in test_install_event.html. r=bkelly 2015-11-26 19:03:10 +02:00
Catalin Badea 8497aa95e5 Bug 1189659 - Part 3 - Use separate synchronization queues for service worker register jobs and install jobs. r=bkelly 2015-11-26 19:03:10 +02:00
Catalin Badea 0094835ad9 Bug 1189659 - Part 2 - Remove set of scopes being updated from ServiceWorkerManager. r=bkelly 2015-11-26 19:03:10 +02:00
Catalin Badea 0a612e9983 Bug 1189659 - Part 1 - Continue service worker job queue when life cycle events expire. r=bkelly 2015-11-26 19:03:10 +02:00
Catalin Badea e91f080be7 Bug 1227932 - Fix Service Workers SoftUpdate and registration.update code paths. r=ehsan
This patch splits the code paths for registration.update and soft update
since they have different behaviour. Next, it changes ServiceWorkerRegisterJob
to use just one callback and just prevents soft update from queuing a new
task if another one is pending.
2015-11-26 19:03:10 +02:00
Eddy Bruel b35ef7b768 Bug 1219255 - We should be able to attach to a service worker;r=amarchesini 2015-11-26 12:18:56 +01:00
Yoshi Huang 4b500464f5 Bug 1209162 - Create OriginAttributes subtypes. IGNORE IDL r=sicking. 2015-11-03 09:50:54 +08:00
Ben Kelly 9aa47b7280 Bug 1226441 - Part 2: Delay functional event dispatch until service worker is activated; r=catalinb 2015-11-24 10:49:00 -05:00
Boris Zbarsky a4e1fa37a6 Bug 1224596 part 17. Remove the old WorkerMainThreadRunnable::Dispatch signature. r=khuey 2015-11-24 00:04:21 -05:00
Boris Zbarsky 58f083c12c Bug 1224596 part 14. Switch URL to using the new WorkerMainThreadRunnable::Dispatch signature. r=baku 2015-11-24 00:04:21 -05:00
Boris Zbarsky dd86a620e3 Bug 1224596 part 12. Switch ServiceWorkerRegistration to using the new WorkerMainThreadRunnable::Dispatch signature. r=khuey 2015-11-24 00:04:21 -05:00
Boris Zbarsky fbb3dec310 Bug 1224596 part 11. Switch WorkerNavigator to using the new WorkerMainThreadRunnable::Dispatch signature. r=khuey 2015-11-24 00:04:21 -05:00
Boris Zbarsky c47a933f93 Bug 1224596 part 10. Switch DataStoreCursor to using the new WorkerMainThreadRunnable::Dispatch signature. r=khuey 2015-11-24 00:04:21 -05:00
Boris Zbarsky 9db75e5551 Bug 1224596 part 9. Switch DataStore to using the new WorkerMainThreadRunnable::Dispatch signature. r=khuey 2015-11-24 00:04:20 -05:00
Boris Zbarsky c30d4923b5 Bug 1224596 part 1. Add a version of WorkerMainThreadRunnable::Dispatch that takes an ErrorResult to report failure to dispatch on. r=khuey 2015-11-24 00:04:20 -05:00
Andrea Marchesini 9dc9655c9e Bug 1213815 - dom/webidl/HTMLHyperlinkElementUtils and URL don't need to throw exceptions as we did before, r=bz 2015-11-23 20:05:26 +00:00
Andrea Marchesini ef9b1a937a Bug 1227113 - Fix some indentation issues in ServiceWorkerManager, r=janv 2015-11-23 13:47:53 +00:00
Ehsan Akhgari 6fc6fe1c47 Bug 1204269 - Part 2: Add unit tests; r=smaug 2015-11-20 16:32:52 -05:00