Commit Graph

329 Commits

Author SHA1 Message Date
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
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
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
Andrea Marchesini
ef9b1a937a Bug 1227113 - Fix some indentation issues in ServiceWorkerManager, r=janv 2015-11-23 13:47:53 +00:00
Boris Zbarsky
df75080cc3 Bug 1226479. Change ErrorResult::ThrowTypeError/ThrowRangeError to take string references, not pointers. r=mccr8 2015-11-20 13:36:46 -05:00
dimi
251af3768d Bug 1217367 - Service workers update algorithm optimization. r=bkelly 2015-11-20 16:43:07 +08:00
Ben Kelly
f1ab7986b2 Bug 1186856 ServiceWorker .register() should always stop current registration from uninstalling. r=jdm 2015-11-19 17:42:09 -08:00
Kyle Huey
7e1d1b1868 Bug 1224436: Remove enumerator usage in ServiceWorkerManager.cpp. r=njn 2015-11-19 16:03:29 +08:00
Ben Kelly
513538cf2c Bug 1224941 Don't crash during ServiceWorker life cycle event dispatch if window is gone. r=baku 2015-11-16 08:41:57 -08:00
Ben Kelly
3c283a5f6c Bug 1223116 P1 Expose nsIServiceWorkerManager.shouldReportToWindow(). r=catalinb 2015-11-16 08:04:11 -08:00
Ben Kelly
443a543aac Bug 1217909 P11 Only report errors to documents that are active and not in the bfcache. r=catalinb 2015-11-16 08:04:11 -08:00
Ben Kelly
45c47fc5e0 Bug 1217909 P10 Remove stale nsTArray when the last registering document for a scope is removed. r=catalinb 2015-11-16 08:04:11 -08:00
Ben Kelly
ec63158dff Bug 1217909 P9 Report exceptions to windows performing an intercepted navigation. r=catalinb 2015-11-16 08:04:11 -08:00
Ben Kelly
d6cd5e961e Bug 1217909 P8 Track navigation interceptions per scope in ServiceWorkerManager. r=catalinb 2015-11-16 08:04:11 -08:00
Ben Kelly
a670404ca2 Bug 1217909 P3 Refactor service worker register()/update() to reject only with SecurityErr or TypeErr. r=catalinb
* * *
Bug 1217909 P3 interdiff 001 fix try build
2015-11-16 08:04:11 -08:00
Ben Kelly
086c599374 Bug 1217909 P2 Track registering documents as weak reference so SWM can report errors to them. r=catalinb 2015-11-16 08:04:11 -08:00
Ben Kelly
c311fd953d Bug 1217909 P1 Report service worker exceptions to controlled documents. r=catalinb
* * *
Bug 1217909 P1 interdiff 001 refactor
2015-11-16 08:04:11 -08:00
Phil Ringnalda
596e8ff827 Back out 9 changesets (bug 1214305) for e10s devtools browser_bug1045902_console_csp_ignore_reflected_xss_message.js failures
Backed out changeset 82929be36e95 (bug 1214305)
Backed out changeset e926606aefbf (bug 1214305)
Backed out changeset 226c83ca9a2a (bug 1214305)
Backed out changeset 88ab26108f2d (bug 1214305)
Backed out changeset 2e3e4f256d46 (bug 1214305)
Backed out changeset 347cd0f8f1e3 (bug 1214305)
Backed out changeset be072bba15fc (bug 1214305)
Backed out changeset 3b85acbe7be7 (bug 1214305)
Backed out changeset 49b930683c02 (bug 1214305)
2015-11-14 10:09:58 -08:00
Ehsan Akhgari
2d89eea92a 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.
2015-11-02 11:27:00 -05:00
Eddy Bruel
d9c0acb19f Bug 1220740 - nsIServiceWorkerRegistrationInfo should emit an event when its worker properties change;r=amarchesini 2015-11-13 21:54:54 +01:00
Eddy Bruel
f2221b7a7f Bug 1220740 - nsIServiceWorkerRegistrationInfo should emit an event when its scriptSpec property changes;r=amarchesini 2015-11-13 21:54:45 +01:00
Andrea Marchesini
d6cab13084 Bug 1201498 - Service worker update should compare scriptURL to worker URL without fragment, r=bkelly 2015-11-11 10:46:29 +00:00
Ben Kelly
9db4ca1512 Bug 1223378 Tighten service worker register() principal checks. r=baku
* * *
Bug 1223378 interdiff 001 Allow app scheme on non-release builds.
2015-11-10 13:51:22 -08:00
Wes Kocher
177fa844e6 Backed out changeset 27f5e66b3919 (bug 1201498) for serviceworkerobject-scripturl.https.html failures
--HG--
extra : commitid : I8Y8TNnseyU
2015-11-10 10:51:23 -08:00
Andrea Marchesini
7eae33dd23 Bug 1201498 - Service worker update should compare scriptURL to worker URL without fragment, r=bkelly 2015-11-10 17:05:47 +00:00
Matthew Noorenberghe
a0a2b249c4 Bug 1221365 - Move "Is origin potentially trustworthy?" logic outside ServiceWorkerManager.cpp. r=ckerschb,bkelly 2015-11-06 11:10:17 -08:00
Ben Kelly
68a7000f5d Bug 1221351 P1 ServiceWorkerContainer and ServiceWorkerRegistration should not crash for null window owner. r=catalinb 2015-11-05 09:33:33 -08:00
Eddy Bruel
e12ab5ca8b Bug 1219205 - ServiceWorkerInfo should be an XPCOM object;r=catalinb 2015-11-05 07:15:49 +01:00
Ben Kelly
fb374694d7 Bug 1221308 Fix some service worker related warnings. r=baku 2015-11-04 08:26:46 -08:00
Eddy Bruel
4bad6b08ad Bug 1218363 - nsIServiceWorkerManager should notify its listeners when a service worker is (un)registered;r=catalinb 2015-11-04 15:17:02 +01:00
Carsten "Tomcat" Book
fb394133cc Backed out changeset 6e4244690d03 (bug 1218363) for m-oth bustage
--HG--
extra : rebase_source : 33397d7b8bd802aad355ebbdb7ee4cb30171ceb0
2015-11-04 14:26:43 +01:00
Eddy Bruel
03e4076412 Bug 1218363 - nsIServiceWorkerManager should notify its listeners when a service worker is (un)registered;r=catalinb 2015-11-04 11:08:39 +01:00
Eddy Bruel
4bc69d6082 Bug 1216566 - Fix a bug in nsIServiceWorkerManager.getAllRegistrations;r=catalinb 2015-11-02 15:04:41 +01:00
dlee
f3324e8193 Bug 1214593 - Remove service worker periodic updater. r=ehsan 2015-11-02 16:08:44 +08:00
Birunthan Mohanathas
9985829ecc Bug 1219392 - Capitalize mozilla::unused to avoid conflicts. r=froydnj 2015-11-02 07:53:26 +02:00
Ehsan Akhgari
98b8da3eb6 Bug 1202085 - Part 3: Relax the assertion in ServiceWorkerManager::IsControlled to only happen when we think the document is controlled; r=jdm 2015-10-30 16:03:10 -04:00
Nicholas Nethercote
06aaac230d Bug 1186810 (part 5) - Replace nsBaseHashtable::EnumerateRead() calls in dom/workers/ with iterators. r=nsm.
--HG--
extra : rebase_source : f4a67d4bca37fbec566a3b110a9f7002df0af7f6
2015-10-25 21:35:44 -07:00
Nicholas Nethercote
5068308113 Bug 1186810 (part 4) - Replace nsBaseHashtable::EnumerateRead() calls in dom/workers/ with iterators. r=nsm.
--HG--
extra : rebase_source : 091b13f8f15a50918c2cf14bf4e3d8cbb4159aec
2015-10-25 21:35:30 -07:00
Nicholas Nethercote
5b93c35c8a Bug 1186810 (part 3) - Replace nsBaseHashtable::EnumerateRead() calls in dom/workers/ with iterators. r=nsm.
--HG--
extra : rebase_source : b30e110d8fe10dcbfef51278c1d2178acd88d004
2015-10-25 21:35:18 -07:00
Nicholas Nethercote
ef9fab3e31 Bug 1186810 (part 2) - Replace nsBaseHashtable::EnumerateRead() calls in dom/workers/ with iterators. r=nsm.
--HG--
extra : rebase_source : e50818bf8d9906634d8dff819c8994d9651b93e1
2015-10-25 21:09:05 -07:00
Nicholas Nethercote
0af735c7d5 Bug 1186810 (part 1) - Replace nsBaseHashtable::EnumerateRead() calls in dom/workers/ with iterators. r=nsm.
--HG--
extra : rebase_source : ecb25ba6577e77b38894b117893545640de013e2
2015-10-25 21:08:54 -07:00
Ehsan Akhgari
e2a80ec087 Bug 1189685 - Part 1: Ensure that the state of all ServiceWorker instances is up to date when dispatching statechange events; r=bkelly 2015-10-26 12:37:48 -04:00
dimi
0a7f5412e3 Bug 1207727 - Rework updating service workers according to the latest spec. r=bkelly 2015-10-26 10:59:48 +08:00
Catalin Badea
cc62c14549 Bug 1172870 - Implement service workers clients.openWindow for desktop (non-e10s). r=baku,smaug
Based on patches from:
  Nikhil Marathe <nsm.nikhil@gmail.com>
  Alberto Crespell Perez <alberto.crespell@gmail.com>
2015-10-24 15:16:23 +03:00
Jonas Sicking
7bf7cbbd1a Bug 1215746: Remove RequestMode::Cors_with_forced_preflight. r=bkelly 2015-10-19 18:24:36 -07:00
Bobby Holley
cd781ec71f Bug 1208559 - Do a CSP Check in ServiceWorkerManager::Register (r=ckerschb) 2015-10-18 19:38:06 -07:00