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

2885 Коммитов

Автор SHA1 Сообщение Дата
Ben Kelly d021f226db Bug 1273920 P1 Hold strong reference to service worker WaitUntil() promise until its fulfilled. r=asuth 2016-05-24 14:08:20 -07:00
Phil Ringnalda 5236d2e4ba Back out 561138ee5a32 (bug 1271487) for web-platform-tests failures and unexpected passes
CLOSED TREE
2016-05-23 21:09:07 -07:00
Hiroyuki Ikezoe 240e8e3669 Bug 1271487 - Enable PerformanceObserver API in nightly by default. r=baku
MozReview-Commit-ID: EuenLdpscHb

--HG--
extra : rebase_source : 07d84ddd066940b74fd3f1c3e13a73cc4e4b91e2
2016-05-10 13:35:35 +09:00
Ben Kelly 05565765eb Bug 1254741 P2 Don't aggressively terminate service workers when last controlled window is closed. r=baku 2016-05-23 02:46:26 -07:00
Carsten "Tomcat" Book 927b1a0b3a Backed out changeset 7469725d7461 (bug 959388) 2016-05-23 11:36:12 +02:00
Carsten "Tomcat" Book 9214312096 Backed out changeset 9feb9c89d33a (bug 959388) 2016-05-23 11:36:10 +02:00
Thomas Nguyen 61fe1800b8 Bug 959388 - Add csp worker test cases. r=kmckinley
MozReview-Commit-ID: Ahx419BHWrS

--HG--
extra : rebase_source : 2016c1e68f990a8ba9cd471e18778c87b08546e1
2016-05-19 11:59:54 +08:00
Thomas Nguyen 32e38271c9 Bug 959388 - Deliver CSP from HTTP header. r=ckerschb r=khuey
MozReview-Commit-ID: LUl5LyO94m3

--HG--
extra : rebase_source : f2ddfcbf6237b11ebb19adfabf346cf76f4a6ab8
2016-05-19 11:57:32 +08:00
Trevor Saunders a868a5867f bug 1271436 - use do_GetInterface() a little less r=smaug 2016-05-17 18:16:07 -04:00
Wes Kocher 96732fa5cd Backed out changeset cf899587f05e (bug 1271249) for browser_privatebrowsing_blobUrl.js failures 2016-05-17 13:07:44 -07:00
Andrea Marchesini 9d6c9f459a Bug 1271249 - Blob URL should not be shared across non-private and private windows, r=ehsan 2016-05-17 20:34:39 +02:00
Chris Peterson 8a9e2d2bd4 Bug 1272513 - Part 2: Remove redundant -Wshadow CXXFLAGS from moz.build files. r=glandium 2016-05-14 00:54:55 -07:00
Chris Peterson 353ee65255 Bug 1272513 - Part 1: Suppress -Wshadow warnings-as-errors in some directories. r=glandium 2016-05-11 00:00:01 -07:00
Boris Zbarsky 0a8135300a Bug 1270783. If we end up erroring out of a worker main-script load before we get to creating a global for the worker, don't try to enter that global's compartment to throw an exception. Just squelch it instead. r=khuey 2016-05-13 20:09:50 -04:00
Andrea Marchesini 6441b9d372 Bug 1258490 - Implement file.webkitrelativepath, r=smaug 2016-05-13 13:11:38 +02:00
Kyle Huey c85171ace9 Bug 1269056: Part 1 - Implement a rough PostDelayedTask equivalent on nsThread. r=froydnj 2016-05-12 15:15:43 -07:00
Ben Kelly 2518010d98 Bug 1254741 Keep service worker alive while dispatching message event. r=baku 2016-05-12 07:30:42 -07:00
Jeff Gilbert 80f726ea0b Bug 1271478 - Implement WebGLContextCreationError. - r=jrmuizel,smaug,mtseng 2016-05-11 16:45:43 -07:00
Kyle Huey 406bdf1bee Bug 1272066: Slap the compiler. r=khuey 2016-05-11 11:46:36 -07:00
Kyle Huey b6e81a079e Bug 1267819: Revalidate the state of the world after processing control runnables. r=baku 2016-05-11 11:45:58 -07:00
Wes Kocher 5949ec87d1 Bug 1272066 - Try to stop assertions until a better fix can land rs=khuey
--HG--
extra : rebase_source : 188bad42f87f23026315146d059fc36fbe07063c
2016-05-11 11:37:59 -07:00
Wes Kocher 5c9f141313 Backed out changeset af74581564bc (bug 711886) for wpt bustage 2016-05-11 10:28:53 -07:00
Jason Duell d3772280b8 Bug 711886. Fail Websocket if server replies with non-matching subprotocol r=mcmanus 2016-05-11 08:50:13 -07:00
Andrea Marchesini 067604a67d Bug 1268253 - MainThreadStopSyncLoopRunnable doesn't need to be exposed, r=khuey 2016-05-11 08:05:38 +02:00
Andrea Marchesini 59521d1cef Bug 1268252 - XHR doesn't need to use MainThreadStopSyncLoopRunnable, r=khuey 2016-05-11 08:05:08 +02:00
Boris Zbarsky 20a2c90769 Bug 1268845. Make sure to set up an XPCWrappedNativeScope for SimpleGlobalObject globals on the main thread. r=bholley,ttaubert,ejpbruel 2016-05-10 20:57:29 -04:00
Tom Tung 842431d95a Bug 1243792 - P1 implement response.redirected - Fetch API & Cache API & ServiceWorker changed. r=bkelly, r=baku.
--HG--
extra : rebase_source : 29ec29361738c6d2446b410a98bd4876a689ce99
2016-05-03 09:48:40 +08:00
Carsten "Tomcat" Book a993b36b4a Backed out changeset dc42de66de8c (bug 1243791) landing with wrong bug number
--HG--
extra : rebase_source : b016defba5a12065b401d0d59b3f03e8b1d7cbe1
2016-05-10 12:50:15 +02:00
Tom Tung 15b89607c6 Bug 1243791 - P1 implement response.redirected - Fetch API & Cache API & ServiceWorker changed. r=bkelly, r=baku. 2016-05-03 09:48:40 +08:00
L. David Baron 71a0554018 Bug 1270649 - Rename mExceptionHasBeenRisen to mExceptionWasRaised. r=smaug
risen is the past participle of rise; raised is the past participle of
raise, which is what is done to exceptions.

See:
https://en.wiktionary.org/wiki/rise#Verb
https://en.wiktionary.org/wiki/raise#Verb (definition 2, though not sure
  if the use for exceptions is from 2.3 or 2.5)

(I wonder if mExceptionRaised would be simpler, though.)

MozReview-Commit-ID: 8Ynup8aDcLT
2016-05-08 22:16:42 -07:00
Stone Shih d9f82778f9 Bug 482388 - Use default url encoding to create channel when creating child workers or importing scripts in a worker. r=khuey
--HG--
extra : rebase_source : 78b0ddd725205028c6dc4c193cbbce0e0a628d77
2016-04-28 15:44:08 +08:00
Andrea Marchesini 3b28920d8e Bug 1270476 - Fix compilation issues on Android with PushEnabled. rs=jesup
CLOSED TREE
2016-05-05 06:21:00 -04:00
Kyle Huey 941ab1f522 Bug 1268313: Part 7 - Move NS_NewRunnableMethod and friends to mozilla::NewRunnableMethod. r=froydnj 2016-05-05 01:45:00 -07:00
Kit Cambridge c90a3eecfc Bug 1185716 - Unregistering a service worker should drop its push subscription. r=bkelly
MozReview-Commit-ID: A5MtdADIQVV

--HG--
extra : rebase_source : 2a87866053ee500a245b5496c8810e19bd9490ee
2016-05-03 11:44:40 -07:00
Andrea Marchesini 6bf6e9c639 Bug 1268231 - Get rid of StopSyncLoopRunnable, r=khuey 2016-05-03 10:21:59 +02:00
Andrea Marchesini 0fdab8e9ee Bug 1268230 - RunTime.cpp and ScriptLoader do not have to use MainThreadStopSyncLoopRunnable, r=khuey 2016-05-03 10:21:57 +02:00
Andrea Marchesini 513590a1ac Bug 1267904 - Add telemetry for WorkerMainThreadRunnable, r=khuey 2016-05-03 09:09:47 +02:00
Carsten "Tomcat" Book ba3fe0975c Backed out changeset 85ce8cb0639a (bug 1268313)
--HG--
extra : rebase_source : 56d1cf41a2dc4959b67f834e07192a5c772176a8
2016-04-29 14:21:16 +02:00
Andrea Marchesini 1c0c183890 Bug 1261009 - Remove the Data Store API, r=fabrice 2016-04-29 09:02:45 +08:00
Andrea Marchesini b4fdf724ae Bug 1268393 - Some compilation issues in ServiceWorker code, r=ehsan 2016-04-29 09:01:22 +08:00
Kyle Huey 48a594a09e Bug 1268313: Part 7 - Move NS_NewRunnableMethod and friends to mozilla::NewRunnableMethod. r=froydnj 2016-04-28 14:08:25 -07:00
Kit Cambridge e74c4e5540 Bug 1265828 - Remove persistent notifications from storage. r=wchen
MozReview-Commit-ID: DmegHA1YVsB

--HG--
extra : rebase_source : dfe052327a29b7b28d76f9c1993e6cff181471c9
2016-04-20 17:13:21 -07:00
Kit Cambridge c6e8720d75 Bug 1267021 - Use fallible allocation and move semantics for Push events. r=wchen
MozReview-Commit-ID: H43zrz5fhvU

--HG--
extra : rebase_source : 63631f3c2f4a3389e8e0365cd9a770a537162762
2016-04-22 20:54:22 -07:00
Andrea Marchesini 5624c37fe0 Bug 1268361 - Strip leading '?' in `new URLSearchParams(query)`, r=smaug 2016-04-28 19:53:16 +08:00
Ben Kelly c9b282c4c6 Bug 1267733 P3 Trigger service worker update after failed interception. r=jdm 2016-04-27 02:24:04 -07:00
Ben Kelly 2623d70dd2 Bug 1267733 P2 Pass ServiceWorkerRegistrationInfo down to CancelChannelRunnable. r=jdm 2016-04-27 02:24:04 -07:00
Ben Kelly 0dd830cdc0 Bug 1267733 P1 Treat last-update-time as infinitely in the past when checking for service worker update after restart. r=jdm 2016-04-27 02:24:04 -07:00
Jonathan Watt 2bb448cbb2 Bug 1267509 - Make nsContentSecurityManager::IsURIPotentiallyTrustworthy act on an nsIPrincipal. r=bz
MozReview-Commit-ID: Zu1zU4Brkx

--HG--
rename : dom/security/test/unit/test_isURIPotentiallyTrustworthy.js => dom/security/test/unit/test_isOriginPotentiallyTrustworthy.js
2016-04-26 11:30:43 +01:00
Stone Shih 2f90ac66c5 Bug 1266637 - Followup to Bug1240436 - Add test case to load service worker script with special characters. r=khuey 2016-04-21 10:01:00 +08:00
Kyle Huey c73656947b Bug 1265927: Move nsRunnable to mozilla::Runnable, CancelableRunnable to mozilla::CancelableRunnable. r=froydnj 2016-04-25 17:23:21 -07:00
Ben Kelly e5a1d1af80 Bug 1266857 Make Clients.claim() use observer document list instead of secondary hashtable. r=bz 2016-04-24 08:11:32 -07:00
Ben Kelly 30a63e3626 Bug 1265771 P3 Expand browser_force_refresh.js to verify Clients.matchAll() behavior on refresh. r=bz 2016-04-24 08:11:32 -07:00
Josh Matthews 62ce0e2f1d Bug 1209095 - Accept opaqueredirection fetch results if the request redirection type is manual. r=bkelly 2015-12-16 19:06:54 -05:00
Phil Ringnalda 296f3a95c3 Back out 4 changesets (bug 1265771, bug 1266857) for leaks in browser_DownloadPDFSaver.js on Windows
CLOSED TREE

Backed out changeset a0c85ccffafd (bug 1266857)
Backed out changeset 1cf8785bdc0c (bug 1265771)
Backed out changeset e411c3ccd7b6 (bug 1265771)
Backed out changeset a298cd2c9417 (bug 1265771)
2016-04-22 21:27:11 -07:00
Ben Kelly b4090694b7 Bug 1266857 Make Clients.claim() use observer document list instead of secondary hashtable. r=bz 2016-04-22 00:50:13 -07:00
Ben Kelly da6964ef2b Bug 1265771 P3 Expand browser_force_refresh.js to verify Clients.matchAll() behavior on refresh. r=bz 2016-04-22 00:50:13 -07:00
Ben Kelly d78f4aec16 Bug 1265795 P3 Assert that controlled documents have an outer window. r=bz 2016-04-21 16:10:40 -07:00
Ben Kelly 15090e7a5c Bug 1266178 Make ServiceWorkerClient not assert if the document doesn't have an outer window. r=ehsan 2016-04-21 14:14:45 -07:00
Kit Cambridge b7fd7b1ede Bug 1247685 - Expose `PushSubscriptionOptions` in interface tests. r=baku
MozReview-Commit-ID: A6x2K8Phmr7

--HG--
extra : rebase_source : 986c597a59d652a220a8950c052a34a474b1192d
2016-04-14 10:26:53 -07:00
Ehsan Akhgari 756a1054f9 Bug 1265941 - Rename the ReferrerPolicy "origin-only" enum value to "origin"; r=jdm 2016-04-20 14:21:34 -04:00
Nicholas Nethercote d84e6264da Bug 1265035 - Make ~WorkerJSRuntime() handle Initialize() failure better. r=khuey.
--HG--
extra : rebase_source : 4b2cb2ef8192f314a28556826044f010a52b90b4
2016-04-19 14:04:32 +10:00
Olli Pettay cc6d1d9827 Bug 1257096, don't try to report about unusual unhandled rejected Promises, r=bz,waldo
--HG--
extra : rebase_source : a53d6853feeae3c54f307cef71edcdba4f771803
2016-04-20 02:29:21 +03:00
Ben Kelly 7ccf656ad3 Bug 1265761 Clients.matchAll() should treat http windows as secure if devtools are open and http testing is enabled. r=ehsan 2016-04-19 11:22:16 -07:00
Stone Shih aa7c2fc2bd Bug 1240436 - Part1: Convert UTF16 to UTF8 before generating nsStringInputStream. r=khuey 2016-04-12 16:33:53 +08:00
Ben Kelly b3e4dd4541 Bug 1263307 P3 Move ServiceWorker update logic into central place in ServiceWorkerRegistrationInfo methods. r=jdm 2016-04-17 04:29:53 -07:00
Ben Kelly a9a4f7363c Bug 1263307 P2 Make ServiceWorkerRegistrationInfo worker members private. r=jdm 2016-04-17 04:29:53 -07:00
Ben Kelly c63ec8cd08 Bug 1263307 P1 Make ServiceWorkerRegistrationInfo::mScope const. r=jdm 2016-04-17 04:29:53 -07:00
Nathan Froyd 67dd0b1d96 Bug 1265056 - don't needlessly construct nsAutoCString temporaries in dom/; r=baku 2016-04-15 19:46:45 -04:00
Ben Kelly 8c007635a4 Bug 1263469 P4 Update test_eventsource_intercept.html to validate FetchEvent.request.cache. r=ehsan 2016-04-15 11:15:58 -07:00
Ben Kelly 5e79ea64a5 Bug 1263469 P2 Validate FetchEvent.request.cache in refresh mochitest. r=ehsan 2016-04-15 11:15:58 -07:00
Ryan VanderMeulen e22a2d1d81 No bug - Re-enable various tests on Windows debug e10s that no longer fail.
--HG--
extra : histedit_source : 37d53b3f1958a608e96d34799e3ff123e901aed1
2016-04-15 13:26:01 -04:00
John Dai 970541e62b Bug 1037725 - Add warning message in the console when worker spawn over limit. r=khuey 2016-04-12 01:41:00 +02:00
Chris Peterson 95867add8b Bug 1103588 - Part 3: Replace deprecated String#contains warning with an expression closure warning in sharedWorker_sharedWorker.js test. r=bz 2016-04-09 15:58:20 -07:00
Kyle Huey 1cc02aa8c6 Bug 1263311: Part 1 - Change the nsICancelableRunnable interface. r=froydnj 2016-04-11 11:40:06 -07:00
Andrea Marchesini eb9a84d8f8 Bug 1257180 - patch 1 - Directory clonable to workers, r=smaug 2016-04-12 08:50:38 -04:00
Sebastian Hengst f25d35d7af Backed out changeset b416fc68c0a2 (bug 1257180) for crash in test_performance_user_timing.html on Android debug. r=backout on a CLOSED TREE 2016-04-12 17:56:15 +02:00
Andrea Marchesini 846b1de4c5 Bug 1257180 - patch 1 - Directory clonable to workers, r=smaug 2016-04-12 08:50:38 -04:00
Wes Kocher 7d2cebe912 Backed out 3 changesets (bug 1263311) for Windows build failures in ServiceWorkerPrivate.cpp CLOSED TREE
Backed out changeset 0434a548e1fe (bug 1263311)
Backed out changeset 60b1be29446c (bug 1263311)
Backed out changeset 18132498bc40 (bug 1263311)

MozReview-Commit-ID: LPEa05QobdQ
2016-04-11 12:50:56 -07:00
Kyle Huey f13a6fc866 Bug 1263311: Part 1 - Change the nsICancelableRunnable interface. r=froydnj 2016-04-11 11:40:06 -07:00
Ben Kelly 6f3adcd11b Bug 1260591 Move ServiceWorkerInfo and ServiceWorkerRegistrationInfo into separate files. r=jdm 2016-04-08 17:28:25 -07:00
Wes Kocher 06cdc2f4b8 Backed out changeset c24f78610523 (bug 1260591) for build bustage on at least Windows CLOSED TREE
MozReview-Commit-ID: AlLfu3CM10S

--HG--
extra : amend_source : ebac1dd7e8731db98da1bf286e7a88bee5c4e171
2016-04-08 16:03:54 -07:00
Ben Kelly 60056e5afe Bug 1260591 Move ServiceWorkerInfo and ServiceWorkerRegistrationInfo into separate files. r=jdm 2016-04-08 15:43:11 -07:00
Ben Kelly 38288d04de Bug 1259338 P2 Re-enable failing mochitest test. r=khuey 2016-04-08 13:12:52 -07:00
Ben Kelly 13d4638d6c Bug 1259338 P1 Ensure that AllowWindowInteractionHandler is released on worker thread. r=khuey 2016-04-08 13:12:52 -07:00
Tim Taubert baaa3908f8 Bug 842818 - Add Crypto and SubtleCrypto to expected (service) worker interfaces r=smaug 2016-04-05 18:17:18 +02:00
Tim Taubert c75738f5b2 Bug 842818 - Expose WebCrypto API to workers r=baku 2015-09-21 19:29:41 +02:00
Boris Zbarsky 272e533b18 Bug 1262630. Replace workers::GetGlobalObjectForGlobal with xpc::NativeGlobal. r=khuey 2016-04-07 21:58:21 -04:00
Ryan VanderMeulen bbada51d70 Bug 1262224 - Re-enable some disabled serviceworker tests on Win e10s debug and disable test_fetch_event.html for intermittent leaks.
--HG--
extra : rebase_source : b8c12edc5e69f913d9e3f02c296841a465900cfe
2016-04-07 19:04:58 -04:00
Kyle Huey 5ae7a0e455 Bug 1261428: Clean up a bit more. r=bz 2016-04-06 14:57:44 -07:00
Kyle Huey 285235dfaa Bug 1261428: Migrate the useless setTimeout error message to the bindings infrastructure. r=bz 2016-04-06 14:20:30 -07:00
Ben Kelly 8fa311db70 Bug 1256428 P19 Address ServiceWorkerUnregisterJob review feedback. r=jdm 2016-04-06 13:27:23 -07:00
Ben Kelly 7e15b8af00 Bug 1256428 P18 Add spec annotations and tweak asserts in ServiceWorkerUpdateJob. r=jdm 2016-04-06 13:27:23 -07:00
Ben Kelly 807cba86ca Bug 1256428 P17 Rename service worker job classes to remove "2" suffix. r=jdm 2016-04-06 13:27:23 -07:00
Ben Kelly 2fc57fa286 Bug 1256428 P16 Fix some issues calling purgeCache() in ServiceWorkerUpdateJob.cpp. r=jdm 2016-04-06 13:27:23 -07:00
Ben Kelly 230ff32ecd Bug 1256428 P15 Perform byte-for-byte comparison check after validating script URL. r=jdm 2016-04-06 13:27:23 -07:00
Ben Kelly 5be0b3bf6e Bug 1256428 P14 Remove dead code in SeviceWorkerUpdateJob.cpp. r=jdm 2016-04-06 13:27:23 -07:00
Ben Kelly e12c361099 Bug 1256428 P13 Remove unnecessary ServiceWorkerUnregsterJob2 stop. r=jdm
See: https://github.com/slightlyoff/ServiceWorker/issues/855
2016-04-06 13:27:23 -07:00
Ben Kelly bd0809f521 Bug 1256428 P12 ServiceWorkerUnregisterJob2 should not use ServiceWorkerManager internals. r=jdm 2016-04-06 13:27:23 -07:00
Ben Kelly aefe22fcb0 Bug 1256428 P11 Don't coalesce SW jobs after the existing job has already resolved its promise. r=jdm 2016-04-06 13:27:23 -07:00
Ben Kelly 6bdc298a74 Bug 1256428 P10 Remove ServiceWorkerRegistrationInfo::mUpdating flag. r=jdm 2016-04-06 13:27:23 -07:00