Commit Graph
380 Commits
Author SHA1 Message Date
Ehsan Akhgari 42c5fc7bc4 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 398b50e757 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 62ae7bc589 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 7e7bbd3117 Bug 1189659 - Part 2 - Remove set of scopes being updated from ServiceWorkerManager. r=bkelly 2015-11-26 19:03:10 +02:00
Catalin Badea 702fbd7329 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 08d4ac4c3a Bug 1219255 - We should be able to attach to a service worker;r=amarchesini 2015-11-26 12:18:56 +01:00
Yoshi Huang 47c69d1edb Bug 1209162 - Create OriginAttributes subtypes. IGNORE IDL r=sicking. 2015-11-03 09:50:54 +08:00
Ben Kelly be9d6f9feb 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 5fd342bd77 Bug 1227113 - Fix some indentation issues in ServiceWorkerManager, r=janv 2015-11-23 13:47:53 +00:00
Boris Zbarsky b99f535968 Bug 1226479. Change ErrorResult::ThrowTypeError/ThrowRangeError to take string references, not pointers. r=mccr8 2015-11-20 13:36:46 -05:00
dimi bc0ff1a291 Bug 1217367 - Service workers update algorithm optimization. r=bkelly 2015-11-20 16:43:07 +08:00
Ben Kelly dadce983ca Bug 1186856 ServiceWorker .register() should always stop current registration from uninstalling. r=jdm 2015-11-19 17:42:09 -08:00
Kyle Huey a7127571f2 Bug 1224436: Remove enumerator usage in ServiceWorkerManager.cpp. r=njn 2015-11-19 16:03:29 +08:00
Ben Kelly 37f874f8bf 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 42d5f3663c Bug 1223116 P1 Expose nsIServiceWorkerManager.shouldReportToWindow(). r=catalinb 2015-11-16 08:04:11 -08:00
Ben Kelly 8c4825c5b3 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 bee84a998c 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 e03765f433 Bug 1217909 P9 Report exceptions to windows performing an intercepted navigation. r=catalinb 2015-11-16 08:04:11 -08:00
Ben Kelly b2307b5f15 Bug 1217909 P8 Track navigation interceptions per scope in ServiceWorkerManager. r=catalinb 2015-11-16 08:04:11 -08:00
Ben Kelly 9f073cd59f 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 667e6b5241 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 71f74fc4dc 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 158aa5a061 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 865a33ecbd 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 f1b5ff2ac0 Bug 1220740 - nsIServiceWorkerRegistrationInfo should emit an event when its worker properties change;r=amarchesini 2015-11-13 21:54:54 +01:00
Eddy Bruel 4ad87be2d1 Bug 1220740 - nsIServiceWorkerRegistrationInfo should emit an event when its scriptSpec property changes;r=amarchesini 2015-11-13 21:54:45 +01:00
Andrea Marchesini 8607245118 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 64047fc91f 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 acfb018fda Backed out changeset 27f5e66b3919 (bug 1201498) for serviceworkerobject-scripturl.https.html failures 2015-11-10 10:51:23 -08:00
Andrea Marchesini ad73419e87 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 4f21c5082b Bug 1221365 - Move "Is origin potentially trustworthy?" logic outside ServiceWorkerManager.cpp. r=ckerschb,bkelly 2015-11-06 11:10:17 -08:00
Ben Kelly b100a7bf0e 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 a197bdbb30 Bug 1219205 - ServiceWorkerInfo should be an XPCOM object;r=catalinb 2015-11-05 07:15:49 +01:00
Ben Kelly 5b16a70772 Bug 1221308 Fix some service worker related warnings. r=baku 2015-11-04 08:26:46 -08:00
Eddy Bruel af3a60aa64 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 9e57c280de Backed out changeset 6e4244690d03 (bug 1218363) for m-oth bustage 2015-11-04 14:26:43 +01:00
Eddy Bruel 073387a4a2 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 ecb919dc08 Bug 1216566 - Fix a bug in nsIServiceWorkerManager.getAllRegistrations;r=catalinb 2015-11-02 15:04:41 +01:00
dlee 08aaf1510c Bug 1214593 - Remove service worker periodic updater. r=ehsan 2015-11-02 16:08:44 +08:00
Birunthan Mohanathas ac37dec517 Bug 1219392 - Capitalize mozilla::unused to avoid conflicts. r=froydnj 2015-11-02 07:53:26 +02:00
Ehsan Akhgari 4892e4602a 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 9837125222 Bug 1186810 (part 5) - Replace nsBaseHashtable::EnumerateRead() calls in dom/workers/ with iterators. r=nsm. 2015-10-25 21:35:44 -07:00
Nicholas Nethercote 12db92379c Bug 1186810 (part 4) - Replace nsBaseHashtable::EnumerateRead() calls in dom/workers/ with iterators. r=nsm. 2015-10-25 21:35:30 -07:00
Nicholas Nethercote 2e4e90722d Bug 1186810 (part 3) - Replace nsBaseHashtable::EnumerateRead() calls in dom/workers/ with iterators. r=nsm. 2015-10-25 21:35:18 -07:00
Nicholas Nethercote 706731f6de Bug 1186810 (part 2) - Replace nsBaseHashtable::EnumerateRead() calls in dom/workers/ with iterators. r=nsm. 2015-10-25 21:09:05 -07:00
Nicholas Nethercote 2ff8b184a5 Bug 1186810 (part 1) - Replace nsBaseHashtable::EnumerateRead() calls in dom/workers/ with iterators. r=nsm. 2015-10-25 21:08:54 -07:00
Ehsan Akhgari 8da0b128ef 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 f007ebeb9c Bug 1207727 - Rework updating service workers according to the latest spec. r=bkelly 2015-10-26 10:59:48 +08:00
Catalin Badea 50d5d528ba Bug 1172870 - Implement service workers clients.openWindow for desktop (non-e10s). r=baku,smaug
Based on patches from:
  Nikhil Marathe <[email protected]>
  Alberto Crespell Perez <[email protected]>
2015-10-24 15:16:23 +03:00
Jonas Sicking 4a42432df4 Bug 1215746: Remove RequestMode::Cors_with_forced_preflight. r=bkelly 2015-10-19 18:24:36 -07:00