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

3022 Коммитов

Автор SHA1 Сообщение Дата
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
Ben Kelly 1bafe887a8 Bug 1256428 P9 Remove now unused code from ServiceWorkerManager.cpp. r=jdm 2016-04-06 13:27:22 -07:00
Ben Kelly 7358d7c977 Bug 1256428 P6 Use ServiceWorkerJobQueue2 and new job classes in ServiceWorkerManager. r=jdm 2016-04-06 13:27:22 -07:00
Ben Kelly 50026652cb Bug 1256428 P5 Add ServiceWorkerUnregisterJob2 class. r=jdm 2016-04-06 13:27:22 -07:00
Ben Kelly ca5222c063 Bug 1256428 P4 Add ServiceWorkerRegisterJob2. r=jdm 2016-04-06 13:27:22 -07:00
Ben Kelly 9f390beeff Bug 1256428 P3 Add ServiceWorkerUpdateJob2. r=jdm 2016-04-06 13:27:22 -07:00
Ben Kelly 427d67b7be Bug 1256428 P2 Add ServiceWorkerJobQueue2 class. r=jdm 2016-04-06 13:27:22 -07:00
Ben Kelly 9aff747125 Bug 1256428 P1 Add ServiceWorkerJob2 base class. r=jdm 2016-04-06 13:27:22 -07:00
Ben Kelly 0ff5ceefd5 Bug 1256428 P0 Fix unified build failures in dom/workers. r=jdm 2016-04-06 13:27:22 -07:00
Ben Kelly b49ff12e19 Bug 1261776 Use SafeElementAt() in service worker job queue. r=ehsan 2016-04-06 10:21:36 -07:00
Kyle Huey dca62fc1ed Bug 1261814: Use the presence of the content global, and not any random global, to determine whether to run the close handler. r=bz 2016-04-05 20:12:56 -07:00
Ben Kelly 4f8961505e Bug 1238707 Remove blanket disable of serviceworker mochitests on windows debug e10s. r=ryanvm 2016-04-05 11:15:06 -07:00
Nicholas Nethercote f7dab46ae8 Bug 1261720 (part 1) - Separate js::ClassExtension from js::Class. r=jorendorff,bz.
js::ClassExtension is often all null. When it's not all null, it's often
duplicated among classes. By pulling it out into its own struct, and using a
(possibly null) pointer in js::Class, we can save 17 KiB per process on
64-bit, and half that on 32-bit.

--HG--
extra : rebase_source : eb78ade09ce268e886d091f6cbc38d7e5e912527
2016-04-04 08:45:07 +10:00
Chris Manchester f7a1b3fb60 Bug 1242051 - Add inter-directory test support file dependencies to ini manifests. r=gps
Previously, every test and support file would be synced to the objdir
when running any test. Now that only those support files and tests requested
are synced, we note support files required beyond those in a test's
directory in ini manifests.

MozReview-Commit-ID: EmlDz9d4lqt
2016-04-04 14:56:52 -07:00
Kit Cambridge 4d03aea7f9 Bug 1255621 - Ignore service workers previously registered in non-private windows. r=bkelly
MozReview-Commit-ID: 8ncS62nJKVD

--HG--
extra : rebase_source : c06bc3a1595e3f5c42ce9dfc1ca78a0845c1c599
2016-04-01 14:17:07 -07:00
Boris Zbarsky 63950bd866 Bug 1246153 part 2. Create a way to ask for a clean new global that works on both mainthread and workers. r=bholley 2016-04-04 12:29:16 -04:00
Kit Cambridge 2bfd46b860 Bug 1257401 - Remove the worker descriptor for `PushManager`. r=khuey
MozReview-Commit-ID: 4nZElH1K3W5

--HG--
extra : rebase_source : d325e2fc44124acc0bd04b133605bf04a99ab906
2016-04-01 15:25:49 -07:00
Catalin Badea 5082e816d8 Bug 1248772 - Trigger a OS window focus in ServiceWorkerClients::OpenWindow. r=ehsan 2016-03-31 16:06:00 +02:00
Eddy Bruel c0702bc113 Bug 1260439 - workerdebuggersandbox_moved needs to update the wrappercache;r=bz 2016-03-31 08:48:47 +02:00
John Dai 059fdf21d7 Bug 1220757 - Add report to console when service worker register fails due to mismatching scope path.r=bkelly
MozReview-Commit-ID: 9hRBzWtSAd2

--HG--
extra : rebase_source : 8552934879813ac2bd6ca828b3a2ec99b35893df
2016-03-31 23:08:45 -07:00
Emanuel Hoogeveen 1efa5deaf7 Bug 1260475 - Add an option to disable GC slices triggered by painting. r=terrence a=kwierso
MozReview-Commit-ID: B81ZHm0EgZB
2016-03-31 14:26:30 -07:00
Kit Cambridge c92c8e5179 Bug 1247089 - Add a mode to `ReportToConsoleNonLocalized` that ignores the calling location. r=bkelly
MozReview-Commit-ID: 3hAP7IgNxYs

--HG--
extra : rebase_source : fa07988a1359863ba12383055a6fbb81722f1363
2016-03-10 20:28:41 -08:00
Kit Cambridge d55b21e98b Bug 1246341 - Report push event errors and rejections to the Push service. r=baku
MozReview-Commit-ID: D6fRPqojOEh

--HG--
extra : rebase_source : 41c55862cb7393681fdea28e35b689a970a376c3
2016-03-28 11:50:39 -07:00
Andrea Marchesini 5f2d5ca216 Bug 1260414 - WorkerDebuggerGlobalScope.setConsoleEventHandler should be able to receive a null param, r=bz 2016-03-29 15:56:10 +01:00
Ben Kelly 09994fa230 Bug 1249438 P3 Add a gtest that registers duplicate service worker registrations. r=baku 2016-03-29 07:20:48 -07:00
Ben Kelly b9f4a74086 Bug 1249438 P2 Modify existing gtest to use RegisterServiceWorkerInternal. r=baku 2016-03-29 07:20:48 -07:00
Ben Kelly a28d138da6 Bug 1249438 P1 Move guts of RegisterServiceWorker() into a protected method that can be tested in gtest. r=baku 2016-03-29 07:20:48 -07:00
Blake Kaplan 76cf7eedc8 Bug 1257861 - Default to sending all cookies if we can't compute 3rdpartyness. r=sicking 2016-03-28 13:39:12 -07:00
Blake Kaplan ce83243b88 Bug 1257861 - Test that we send cookies from XHRs in web workers when 3rd party cookies are disabled. r=sicking 2016-03-28 13:39:12 -07:00
Ehsan Akhgari 80d71bced1 Bug 1259164 - Set ServiceWorkerMessageEvent.origin correctly when calling ServiceWorkerClient.postMessage(); r=bkelly 2016-03-28 15:14:40 -04:00
Kyle Huey d9265a3eaf Bug 1259294: Part 2 - Use MOZ_ALWAYS_SUCCEEDS. r=froydnj 2016-03-28 10:28:15 -07:00
Kyle Huey fe5f7b4105 Bug 1259290: Part 5 - Remove the cx from WorkerFeature::Notify. r=bz 2016-03-28 10:28:14 -07:00
Kyle Huey 2b94386d24 Bug 1259290: Part 4 - Remove JS_ReportError for a situation that can never happen. r=bz 2016-03-28 10:28:14 -07:00
Kyle Huey b55b8c715b Bug 1259290: Part 3 - Remove JS_ReportError and cx handling from RegisterWorker and friends. r=bz,jandem 2016-03-28 10:28:14 -07:00
Kyle Huey 47f6f925e1 Bug 1259290: Part 2 - Remove the cx from [Add|Remove]ChildWorker. r=bz 2016-03-28 10:28:14 -07:00
Kyle Huey 3fd22a326c Bug 1259290: Part 1 - Remove unnecessary JS_ReportError calls. r=bz 2016-03-28 10:28:14 -07:00
Eddy Bruel 3e2cb55980 Bug 1229769 - We should be able to use DOM promises in the worker debugger;r=khuey 2016-03-24 16:12:00 +01:00
Andrea Marchesini 934bd500b6 Bug 1246091 - patch 6/7 - Tests, r=ejpbruel 2016-03-23 22:55:07 +01:00
Andrea Marchesini df932690be Bug 1246091 - patch 5/7 - Remove data when memory pressure notification is received, r=ejpbruel 2016-03-23 22:55:07 +01:00
Andrea Marchesini 931f576f19 Bug 1246091 - patch 4/7 - Expose ConsoleCallData to WorkerDebuggerGlobalScope, r=ejpbruel 2016-03-23 22:55:07 +01:00
Andrea Marchesini e2091ba30e Bug 1246091 - patch 2/7 - Propagate initialization error in Console.cpp, r=ejpbruel 2016-03-23 22:55:07 +01:00
Boris Zbarsky e3b2de6aa9 Bug 1255817 part 2. Get rid of AutoJSAPI::OwnsErrorReporting and AutoJSAPI::TakeOwnershipOfErrorReporting. r=bholley 2016-03-23 11:44:54 -04:00
Ehsan Akhgari 100dda0d7d Bug 1258056 - Propagate the window opener full page zoom across the IPC layer; r=smaug 2016-03-22 17:49:09 -04:00
Boris Zbarsky 42b3bbe27a Bug 1257919 part 8. Make the line/column number getters on JSStackFrame take an explicit JSContext. r=khuey 2016-03-22 13:50:31 -04:00
Boris Zbarsky efa07c06d1 Bug 1257919 part 6. Make the filename getter on JSStackFrame take an explicit JSContext. r=khuey 2016-03-22 13:50:31 -04:00
Ben Kelly cbc3ebad39 Bug 1253793 Update ScriptLoader assertion to handle cancelation case. r=khuey 2016-03-22 13:22:15 -07:00
Sebastian Hengst 0e9bf1445a Backed out changeset 6e95ee3cd4c6 (bug 1257919) 2016-03-22 21:10:21 +01:00
Sebastian Hengst 336c2cc4ae Backed out changeset 08f1c7239cdf (bug 1257919) 2016-03-22 21:10:01 +01:00
Boris Zbarsky 5df498fbd2 Bug 1257919 part 8. Make the line/column number getters on JSStackFrame take an explicit JSContext. r=khuey 2016-03-22 13:50:31 -04:00
Boris Zbarsky 38af226a36 Bug 1257919 part 6. Make the filename getter on JSStackFrame take an explicit JSContext. r=khuey 2016-03-22 13:50:31 -04:00
Tooru Fujisawa e2a8d2a6b4 Bug 1153978 - Part 1: Separate buildIdOp from AsmJSCacheOps. r=jandem,bz 2016-01-01 14:19:20 +09:00
Jocelyn Liu b382b4642e Bug 1003432: Expose CustomEvent in Worker. r=smaug 2016-03-22 00:09:57 +08:00
Fabrice Desré 4f6827357a Bug 1258034 - Fix ServiceWorkerPrivate.cpp build error on b2g r=khuey 2016-03-20 09:57:33 -07:00
Kyle Huey 2fc599905e Bug 1257355: Remove the worker descriptor for WorkerNavigator. r=bz
--HG--
rename : dom/workers/Navigator.cpp => dom/workers/WorkerNavigator.cpp
rename : dom/workers/Navigator.h => dom/workers/WorkerNavigator.h
2016-03-18 14:15:46 -07:00
Luke Wagner 6d089acee2 Bug 1008453. Add support for navigator.hardwareConcurrency. r=khuey 2016-03-16 15:41:38 -04:00
Andrea Marchesini bfc5e29f9d Bug 1257480 - null check for GetOrCreateGlobalScope() in WorkerDebuggerGlobalScope, r=khuey 2016-03-18 14:04:57 +01:00
Carsten "Tomcat" Book d115280c5f Backed out changeset a7040abce944 (bug 1008453) for w-p-t test failures on a CLOSED TREE 2016-03-18 08:21:42 +01:00
Boris Zbarsky 60d3ad7ce0 Bug 1257568. Remove the JSContext argument of WorkerPrivate::Kill. r=khuey 2016-03-17 23:23:55 -04:00
Luke Wagner 83bbb15353 Bug 1008453. Add support for navigator.hardwareConcurrency. r=khuey 2016-03-16 15:41:38 -04:00
Wes Kocher ef118686fd Backed out changeset 057ffdc30f1e (bug 1257355) for build bustage CLOSED TREE
MozReview-Commit-ID: 6e53Rrv5mEz

--HG--
rename : dom/workers/WorkerNavigator.cpp => dom/workers/Navigator.cpp
rename : dom/workers/WorkerNavigator.h => dom/workers/Navigator.h
2016-03-17 15:38:39 -07:00
Kyle Huey bee42d87b9 Bug 1257355: Remove the worker descriptor for WorkerNavigator. r=bz
--HG--
rename : dom/workers/Navigator.cpp => dom/workers/WorkerNavigator.cpp
rename : dom/workers/Navigator.h => dom/workers/WorkerNavigator.h
2016-03-17 15:06:14 -07:00
Eddy Bruel 6894a80365 Bug 1047663 - Disabling the cache in a tab should also disable it for all workers in that tab;r=khuey 2016-03-17 11:03:05 +01:00
Kyle Huey 171ac8799b Bug 1257042: Remove the worker descriptor for PushEvent and PushMessageData. r=bz 2016-03-16 13:44:24 -07:00
Sebastian Hengst c213b3dd0c Backed out changeset 06101225c145 (bug 1257042) for bustage. r=backout on a CLOSED TREE 2016-03-16 20:30:32 +01:00
Kyle Huey 24341cb722 Bug 1257042: Remove the worker descriptor for PushEvent and PushMessageData. r=bz 2016-03-16 11:51:11 -07:00
Kyle Huey 9b06834782 Bug 1257039: Remove the worker descriptor for FileReaderSync. r=bz 2016-03-16 11:51:11 -07:00
Kyle Huey 348998b290 Bug 1257038: Remove the worker descriptor for WorkerLocation. r=bz
--HG--
rename : dom/workers/Location.cpp => dom/workers/WorkerLocation.cpp
rename : dom/workers/Location.h => dom/workers/WorkerLocation.h
2016-03-16 11:51:11 -07:00
Kyle Huey d11b9db617 Bug 1257032: Make files in dom/workers actually build without unification. r=baku 2016-03-16 11:51:11 -07:00
Ben Kelly 9856db4da2 Bug 1256411 Simplify and cleanup ServiceWorkerInfo. r=ehsan 2016-03-15 07:29:56 -07:00
Benjamin Bouvier 70202e15a1 Bug 1251308; r=luke
MozReview-Commit-ID: AqsMX4m7Qh9

--HG--
extra : rebase_source : 519aef2cf8c0bb39771d4589069e8fd1a06970c3
2016-03-09 11:20:11 +01:00
Tooru Fujisawa 20ae44e9a0 Backed out changeset 08ee8e76c703 (bug 1153978) 2016-03-13 04:26:57 +09:00
Tooru Fujisawa a66bde4a5f Bug 1153978 - Part 1: Separate buildIdOp from AsmJSCacheOps. r=jandem,bz 2016-01-01 14:19:20 +09:00
Boris Zbarsky 57fc0e989c Bug 1255709. Simplify the JSContext/GlobalObject handling in ServiceWorkerRegistrationMainThread::GetPushManager a bit. r=bkelly 2016-03-11 16:43:31 -05:00
Boris Zbarsky ab1c6dbdb0 Bug 1255706 part 2. Remove JSContext argument from WorkerPrivate::Terminate. r=khuey 2016-03-11 16:43:30 -05:00
Boris Zbarsky bbdf086021 Bug 1255706 part 1. Remove JSContext argument from WorkerPrivate constructor. r=khuey 2016-03-11 16:43:30 -05:00
Boris Zbarsky 97f19fccac Bug 1255692. Add another test for calling ServiceWorkerRegistration.showNotification. r=wchen
--HG--
rename : dom/workers/test/serviceworkers/notificationclick.html => dom/workers/test/serviceworkers/notificationclick-otherwindow.html
rename : dom/workers/test/serviceworkers/test_notificationclick.html => dom/workers/test/serviceworkers/test_notificationclick-otherwindow.html
2016-03-10 23:14:01 -05:00
Ehsan Akhgari 24fbc15619 Bug 1120715 - Part 6: Remove the dom.requestcache.enabled pref; r=bkelly 2016-03-11 14:40:53 -05:00
Ehsan Akhgari b70a0ad138 Bug 1120715 - Part 3: Connect the Necko level cache mode parameter with the Request cache mode variable; r=bkelly 2016-03-11 14:40:41 -05:00
Ehsan Akhgari ac9a100c66 Bug 1120715 - Part 1: Add Necko APIs to preserve the Request cache mode on the channel; r=mayhemer 2016-03-11 14:40:33 -05:00
Sebastian Hengst 7045a40a0f Backed out changeset 50c03319c341 (bug 1246091) for mochitest failures. r=backout 2016-03-11 20:16:19 +01:00
Andrea Marchesini c4e620f562 Bug 1246091 - Expose ConsoleEvents to Worker Debugger Actors via Console object directly, r=ejpbruel 2016-03-11 17:59:52 +01:00
Jan de Mooij 40172eddb0 Bug 1212328 - Clean up some JSErrorReport-related code. r=Waldo,bz 2016-03-11 15:19:06 +01:00
Carsten "Tomcat" Book 19704bef52 Backed out changeset 554ded299ccb (bug 1255692) for permanent failures in test_no_token.html 2016-03-11 10:24:34 +01:00
Boris Zbarsky b393092634 Bug 1255692. Add another test for calling ServiceWorkerRegistration.showNotification. r=wchen
--HG--
rename : dom/workers/test/serviceworkers/notificationclick.html => dom/workers/test/serviceworkers/notificationclick-otherwindow.html
rename : dom/workers/test/serviceworkers/test_notificationclick.html => dom/workers/test/serviceworkers/test_notificationclick-otherwindow.html
2016-03-10 23:14:01 -05:00
Ryan VanderMeulen e98112b9bd Backed out 8 changesets (bug 1120715) for Android dom/u2f/tests/test_no_token.html permafail.
Backed out changeset 043770204431 (bug 1120715)
Backed out changeset e10c375353f4 (bug 1120715)
Backed out changeset c2871dbeb7cc (bug 1120715)
Backed out changeset 79158f028ad3 (bug 1120715)
Backed out changeset c74866f52320 (bug 1120715)
Backed out changeset c731944ecc64 (bug 1120715)
Backed out changeset 44f346712a3a (bug 1120715)
Backed out changeset 60d6045125e2 (bug 1120715)

CLOSED TREE
2016-03-10 20:20:05 -05:00
Boris Zbarsky 5a9c81f6df Bug 1255298. Just pass through the JSContext when passing through the NotificationOptions in notification code. r=wchen 2016-03-10 18:07:28 -05:00
Ehsan Akhgari 8508bae9bf Bug 1120715 - Part 6: Remove the dom.requestcache.enabled pref; r=bkelly 2016-03-10 17:29:11 -05:00
Ehsan Akhgari f08814d04f Bug 1120715 - Part 3: Connect the Necko level cache mode parameter with the Request cache mode variable; r=bkelly 2016-03-10 17:29:11 -05:00
Ehsan Akhgari 9874b83667 Bug 1120715 - Part 1: Add Necko APIs to preserve the Request cache mode on the channel; r=mayhemer 2016-03-10 17:29:11 -05:00
Carsten "Tomcat" Book 7038334f60 Merge mozilla-central to mozilla-inbound 2016-03-10 11:52:58 +01:00
Carsten "Tomcat" Book 1c95c143d4 merge mozilla-inbound to mozilla-central a=merge 2016-03-10 11:51:35 +01:00
Kyle Huey d7b4ab4573 Bug 1253059: Use fallible allocation in the worker error reporter. r=baku 2016-03-10 01:50:56 -08:00
Kyle Huey 9eea75a6f5 Bug 1252268: If the slow script dialog aborts an interval timer callback, don't schedule it again. r=bz 2016-03-10 01:50:56 -08:00
Boris Zbarsky 36d4079be7 Bug 1254847 part 3. Make AutoEntryScript always take ownership of error reporting. r=bholley 2016-03-09 19:02:03 -05:00
Wes Kocher 53011a6a05 Backed out 6 changesets (bug 1120715) for wpt bustage in request-cache.html
Backed out changeset 2ee4b18f6b3a (bug 1120715)
Backed out changeset f87a25ade31e (bug 1120715)
Backed out changeset 9391f22c08c2 (bug 1120715)
Backed out changeset c5bf9f7bb86e (bug 1120715)
Backed out changeset 7e003fb64d41 (bug 1120715)
Backed out changeset ef66b64e9f8a (bug 1120715)

MozReview-Commit-ID: AI47IhtGWea
2016-03-09 15:57:43 -08:00
Nick Alexander d8a65feef6 Bug 1252666 - Part 1: Mark Push* exposed in Fennec Nightly. r=ehsan
MozReview-Commit-ID: GM2YxeAZuVJ
2016-03-07 15:14:06 -08:00
Andrew Halberstadt 035506cb0e Bug 1251372 - Sign extensions in dom/workers/test/extensions for mochitest, r=khuey
For details on extensions in automation and signing, see:
https://wiki.mozilla.org/EngineeringProductivity/HowTo/SignExtensions

MozReview-Commit-ID: JL8A02zZFTH

--HG--
extra : rebase_source : 8faff1b058f48bdc7cb047d282c8c70892ab88a8
extra : amend_source : 814ab85495075824cb6fd9c43358cad3c2a798e0
extra : intermediate-source : 4fa5b5a25f04f976fdc54c03683382062a55ae37
extra : source : c664e3daa54d79fec8b9b7ea2c4bf12e2c47c7ec
2016-02-26 10:46:43 -05:00
Ehsan Akhgari 017bf0f2b6 Bug 1120715 - Part 6: Remove the dom.requestcache.enabled pref; r=bkelly 2016-03-09 16:45:01 -05:00
Ehsan Akhgari d9ecb20ef6 Bug 1120715 - Part 3: Connect the Necko level cache mode parameter with the Request cache mode variable; r=bkelly 2016-03-09 16:43:33 -05:00
Ehsan Akhgari fded90051d Bug 1120715 - Part 1: Add Necko APIs to preserve the Request cache mode on the channel; r=mayhemer 2016-03-09 16:42:53 -05:00
Ben Kelly 38f5715a7d Bug 1253777 P2 Test passing a file-backed blob to FetchEvent.respondWith(). r=jdm 2016-03-09 13:41:29 -08:00
Ben Kelly aa8c2bc7d7 Bug 1253777 P1 Ensure buffered copying when reading body in service worker respondWith(). r=jdm 2016-03-09 13:41:29 -08:00
Boris Zbarsky d0363ce0e6 Bug 1254846. Add an AutoEntryScript constructor that takes a JSObject instead of an nsIGlobalObject, for convenience. r=bholley 2016-03-09 15:28:26 -05:00
Carsten "Tomcat" Book 595788aed2 Backed out changeset c664e3daa54d (bug 1251372) for test failures in extensions
--HG--
extra : rebase_source : 059c4da333ac5658fa4393f01a267a4aa7625e38
2016-03-08 16:37:17 +01:00
Ben Kelly 8324a752f1 Bug 1253738 P3 Use origin the ServiceWorkerManager scope key. r=baku 2016-03-08 06:55:41 -08:00
Ben Kelly e9e35aeba9 Bug 1253738 P2 Consistently use "scope key" terminology in ServiceWorkerManager. r=baku 2016-03-08 06:55:41 -08:00
Ben Kelly 7ebbd928f1 Bug 1253738 P1 Require an explicit principal when looking up a service worker registration. r=baku 2016-03-08 06:55:41 -08:00
Andrew Halberstadt f7971123a2 Bug 1251372 - Sign extensions in dom/workers/test/extensions for mochitest, r=khuey
For details on extensions in automation and signing, see:
https://wiki.mozilla.org/EngineeringProductivity/HowTo/SignExtensions

MozReview-Commit-ID: JL8A02zZFTH

--HG--
extra : rebase_source : 490147003d4a0fa9b765117d3633579b92a8d411
extra : amend_source : 4422eafef0a655c420a006da1c3ed5bfa4b304d0
2016-02-26 10:46:43 -05:00
Andrea Marchesini 9c656d5bba Bug 1206121 - Test for XHR in the worker and status code when redirect a CORS url, r=khuey 2016-03-08 08:19:45 +01:00
Andrea Marchesini 50777157d4 Bug 1254179 - Reuse the same websocket tests on main-thread and workers, r=ehsan
--HG--
rename : dom/workers/test/test_websocket.html => dom/workers/test/test_websocket1.html
rename : dom/workers/test/test_websocket.html => dom/workers/test/test_websocket2.html
rename : dom/workers/test/test_websocket.html => dom/workers/test/test_websocket3.html
rename : dom/workers/test/test_websocket.html => dom/workers/test/test_websocket4.html
rename : dom/workers/test/test_websocket.html => dom/workers/test/test_websocket5.html
2016-03-07 19:12:23 +01:00
Jonathan Watt a73bd8c354 Bug 1253094, part 1 - Stop using DebugOnly for class/struct members in dom/. r=baku
MozReview-Commit-ID: ErWZs9oV4WS
2016-02-26 15:52:06 +00:00
Phil Ringnalda cabee82044 Back out 9 changesets (bug 801176) for frequent crashes in test_offscreencanvas_dynamic_fallback.html
Backed out changeset 82320c900699 (bug 801176)
Backed out changeset 624fb8512ba5 (bug 801176)
Backed out changeset a2a7b1c4dc5b (bug 801176)
Backed out changeset e210473d793c (bug 801176)
Backed out changeset 0fb279e041e1 (bug 801176)
Backed out changeset c090dc98c670 (bug 801176)
Backed out changeset fc509e59a0cd (bug 801176)
Backed out changeset 134a8c56335a (bug 801176)
Backed out changeset 2022afa9aef2 (bug 801176)
2016-03-05 07:20:47 -08:00
vincentliu 2a98ba1c2c Bug 801176 - part1-v8: Modify webidl for 2d canvas. r=smaug, roc
---
 dom/canvas/CanvasRenderingContext2D.cpp    | 38 +++++++++++++++
 dom/canvas/CanvasRenderingContext2D.h      |  6 +++
 dom/webidl/CanvasRenderingContext2D.webidl | 76 ++++++++++++++++++------------
 dom/webidl/HTMLCanvasElement.webidl        |  2 +
 dom/webidl/WebGLRenderingContext.webidl    |  2 +-
 dom/workers/WorkerPrefs.h                  |  1 +
 6 files changed, 95 insertions(+), 30 deletions(-)
2016-03-04 15:22:16 +08:00
Ben Kelly 6c56c9b9be Bug 1252055 P2 Update tests to verify ServiceWorker object equality. r=ehsan 2016-03-03 19:37:59 -05:00
Ben Kelly a9358d515b Bug 1252055 P1 Make equivalent ServiceWorker DOM objects strictly equal in js. r=ehsan 2016-03-03 19:37:57 -05:00
Ehsan Akhgari 38637e2005 Bug 1251872 - Part 1: Implement Request.referrerPolicy; r=jdm 2016-03-03 16:43:55 -05:00
James Willcox 5949211ed6 Bug 1172872 - Enable ServiceWorkerClients.openWindow on Android r=catalinb 2016-03-09 09:48:25 -06:00
Phil Ringnalda 4b0cdb5de3 Back out 3 changesets (bug 1250616, bug 1251372) for failing browser_checkAddonCompatibility.js after the version bump
CLOSED TREE

Backed out changeset 4fa5b5a25f04 (bug 1251372)
Backed out changeset 502cf531ec26 (bug 1250616)
Backed out changeset 2f25d03334b2 (bug 1250616)
2016-03-08 19:04:46 -08:00
Andrew Halberstadt c52e9b844d Bug 1251372 - Sign extensions in dom/workers/test/extensions for mochitest, r=khuey
For details on extensions in automation and signing, see:
https://wiki.mozilla.org/EngineeringProductivity/HowTo/SignExtensions

MozReview-Commit-ID: JL8A02zZFTH

--HG--
extra : rebase_source : 5246c87c146abd3a43a440b29522b406d4b78311
extra : amend_source : 4422eafef0a655c420a006da1c3ed5bfa4b304d0
extra : source : c664e3daa54d79fec8b9b7ea2c4bf12e2c47c7ec
2016-02-26 10:46:43 -05:00
Luke Wagner b5a255ff58 Bug 1252498 - Baldr: add Wasm object behind pref, default off (r=jorendorff)
MozReview-Commit-ID: BlhrURAX26H

--HG--
extra : rebase_source : e1b540f06c2f3976f91242ac7b0b8ede29fbc5f2
2016-03-03 10:20:21 -06:00
Boris Zbarsky 4f623415e0 Bug 1252565 part 2. Make dom::WarningOnlyErrorReporter handle workers. r=bholley 2016-03-01 16:53:22 -05:00
Wes Kocher cba1a7bd55 Backed out 2 changesets (bug 1252565) for windows build bustage CLOSED TREE
Backed out changeset 9de2c10a1cc3 (bug 1252565)
Backed out changeset fc5c4cb02d24 (bug 1252565)

MozReview-Commit-ID: GCQedQwqslg

--HG--
extra : amend_source : 5fb6bd99e2ac56c01c06e1004262dfeb2ea56410
2016-03-02 10:44:11 -08:00
Boris Zbarsky 3bad87c74a Bug 1252565 part 2. Make dom::WarningOnlyErrorReporter handle workers. r=bholley 2016-03-01 16:53:22 -05:00
Boris Zbarsky 49c103594d Bug 1252592. JS warnings should not trigger error events on shared workers. r=khuey 2016-03-01 16:53:26 -05:00
Boris Zbarsky 1538f85b56 Bug 1072144 part 6. Switch WorkerRunnable::Run to calling TakeOwnershipOfErrorReporting on its AutoJSAPI/AutoEntryScript and remove the remaining JS_ReportPendingException callers in worker code. r=khuey 2016-03-01 16:52:27 -05:00
Boris Zbarsky 7d17080433 Bug 1072144 part 5. Stop fiddling with compartments on the JSContext before calling PostRun in WorkerRunnable::Run. Add some documentation explaining what's going on. r=khuey 2016-03-01 16:52:26 -05:00
Boris Zbarsky 9679610dbb Bug 1072144 part 4. Add a WorkerRunnable::PreRun so that we can move worker global creation to it and always have an AutoEntryScript by the time we're evaluating the main worker script. r=khuey 2016-03-01 16:52:26 -05:00
Boris Zbarsky 7a1819b93a Bug 1072144 part 3. Hoist the exception reporting out of WorkerRunnable::PostRun into WorkerRunnable::Run and make it unconditional. r=khuey 2016-03-01 16:52:26 -05:00
Boris Zbarsky c0ea0c742b Bug 1072144 part 2. When UnregisterWorker tries to ScheduleWorker and that throws, just suppress the exception: there is no good place to report it anyway. r=khuey 2016-03-01 16:52:26 -05:00
Boris Zbarsky f333a329ae Bug 1072144 part 1. Just release-assert that Promise::Resolve does not fail in service worker code. It can only do that on OOM or overrecursion anyway, and overrecursion is not likely if we're coming right off a runnable. r=khuey 2016-03-01 16:52:13 -05:00
J. Ryan Stinnett 764b9f1ffa Bug 1238160 - Set frame type on TabContext. r=billm,mayhemer
This change renames TabContext::IsBrowserElement to IsIsolatedMozBrowserElement.
Other methods that pass these values around also have name changes.

Adds TabContext::IsMozBrowserElement which is set by the frame loader for all
browser frames.  This is in contrast to its previous implementation, which has
since been renamed IsIsolatedMozBrowserElement, since it checks isolated state
in OriginAttributes.

TabContext methods related to browser elements (and their callers) are updated
to use IsIsolatedMozBrowserElement when check isolation / origins and
IsMozBrowserElement when checking frame types.

MozReview-Commit-ID: DDMZTkSn5yd
2016-03-02 10:35:56 -06:00
J. Ryan Stinnett 2a55d065b7 Bug 1238160 - Rename OriginAttributes.mInBrowser and associated methods. r=bz,mayhemer
This change renames OriginAttributes.mInBrowser to mInIsolatedMozBrowser and
nsIPrincipal::GetIsInBrowserElement to GetIsInIsolatedMozBrowserElement.  Other
methods that pass these values around also have name changes.

Tokens such as "inBrowser" have previously been serialized into cache keys, used
as DB column names, stored in app registries, etc.  No changes are made to any
serialization formats.  Only runtime method and variable names are updated.

No behavior changes are made in this patch, so some renamed methods may have
nonsensical implementations.  These are corrected in subsequent patches
focused on behavior.

MozReview-Commit-ID: 66HfMlsXFLs
2016-03-02 10:35:56 -06:00
Wes Kocher af73c13ee2 Backed out 6 changesets (bug 1072144) for test_recursion.html failures
Backed out changeset ac15fe0e71fd (bug 1072144)
Backed out changeset b666d48a267d (bug 1072144)
Backed out changeset 0f0464ef08ed (bug 1072144)
Backed out changeset 7ba5f3b95022 (bug 1072144)
Backed out changeset 1912f838fcaa (bug 1072144)
Backed out changeset 145c9bb59b97 (bug 1072144)

MozReview-Commit-ID: 7cl4RtpHSfl
2016-03-01 15:41:24 -08:00
Wes Kocher 01574acd0a Backed out changeset 96580db9b356 (bug 1252565) for test_recursion.html failures
MozReview-Commit-ID: 1ycmM8vfG3d
2016-03-01 15:40:46 -08:00
Wes Kocher 6e6e6a5a75 Backed out changeset aad89b3b0eb1 (bug 1252592) for test_recursion.html failures
MozReview-Commit-ID: 4DqAlBimVRk
2016-03-01 15:40:15 -08:00
Jonathan Griffin 0b0e0abda1 Bug 1232780 - Adjust test exclusions for win7 debug e10s, a=test-only 2016-03-01 10:36:31 -08:00
Boris Zbarsky b8d76901e9 Bug 1252592. JS warnings should not trigger error events on shared workers. r=khuey 2016-03-01 16:53:26 -05:00
Boris Zbarsky 68dc8de0a0 Bug 1252565. Make dom::WarningOnlyErrorReporter handle workers. r=bholley 2016-03-01 16:53:22 -05:00
Boris Zbarsky e733e4d4fb Bug 1072144 part 6. Switch WorkerRunnable::Run to calling TakeOwnershipOfErrorReporting on its AutoJSAPI/AutoEntryScript and remove the remaining JS_ReportPendingException callers in worker code. r=khuey 2016-03-01 16:52:27 -05:00
Boris Zbarsky 79b91b672b Bug 1072144 part 5. Stop fiddling with compartments on the JSContext before calling PostRun in WorkerRunnable::Run. Add some documentation explaining what's going on. r=khuey 2016-03-01 16:52:26 -05:00
Boris Zbarsky de208d989a Bug 1072144 part 4. Add a WorkerRunnable::PreRun so that we can move worker global creation to it and always have an AutoEntryScript by the time we're evaluating the main worker script. r=khuey 2016-03-01 16:52:26 -05:00
Boris Zbarsky dae479317b Bug 1072144 part 3. Hoist the exception reporting out of WorkerRunnable::PostRun into WorkerRunnable::Run and make it unconditional. r=khuey 2016-03-01 16:52:26 -05:00
Boris Zbarsky f83c2eb672 Bug 1072144 part 2. When UnregisterWorker tries to ScheduleWorker and that throws, just suppress the exception: there is no good place to report it anyway. r=khuey 2016-03-01 16:52:26 -05:00
Boris Zbarsky 56a4bb8e88 Bug 1072144 part 1. Just release-assert that Promise::Resolve does not fail in service worker code. It can only do that on OOM or overrecursion anyway, and overrecursion is not likely if we're coming right off a runnable. r=khuey 2016-03-01 16:52:13 -05:00
Boris Zbarsky 7aa5d59bc7 Bug 1251518. Fix js::ErrorReportToString to make a bit more sense, and change worker code to not use it anyway, so it matches the mainthread code. r=bholley,terrence 2016-03-01 13:49:21 -05:00
Boris Zbarsky 2a1057f5b2 Bug 1252221. When GetOrCreateGlobalScope fails while trying to run a ScriptExecutorRunnable::WorkerRun, just suppress the exception, because there is no way to report it without a compartment to work with. r=khuey 2016-03-01 13:49:21 -05:00
Andrea Marchesini 9e960ae549 Bug 1250572 - Force a parent object in MessagePort/Channel and in StructuredCloneHolder, r=smaug 2016-03-01 15:21:11 +01:00
Ehsan Akhgari 8b94dc47cb Bug 1251875 - Part 2: Remove the dom.serviceWorkers.interception.opaque.enabled pref; r=bkelly 2016-03-01 09:17:59 -05:00
Ehsan Akhgari 8a0731fdde Bug 1251875 - Part 1: Remove the dom.serviceWorkers.interception.enabled pref; r=bkelly 2016-03-01 09:16:38 -05:00
Steve Fink 8916274a41 Bug 1251480 - Use Rooted<UniquePtr<StateData>> in place of StateData::CustomAutoRooter, r=bz
--HG--
extra : rebase_source : c68dedf2cdfe1e6fda4941cd1b3c52a20f6b7ffe
2016-02-26 18:16:17 -08:00
Boris Zbarsky 5a8005ef1e Bug 1252189. Remove the unnecessary JSContext argument from WorkerPrivate::FreezeInternal/ThawInternal. r=khuey 2016-02-29 14:52:43 -05:00
Boris Zbarsky 27c76101f3 Bug 1252185. Remove the dead "target" variable from CloseEventRunnable::WorkerRun. r=khuey 2016-02-29 14:52:43 -05:00
Boris Zbarsky f47268eca8 Bug 1252127. Remove unnecessary JSContext argument from PromiseWorkerProxy::CleanUp. r=khuey 2016-02-29 14:52:42 -05:00
Boris Zbarsky 69924c14ce Bug 1252123. Remove some unnecessary JSContext arguments from worker ScriptLoader methods. r=khuey 2016-02-29 14:52:42 -05:00
Boris Zbarsky 663b9bd562 Bug 1252091. Add/RemoveFeature don't need a JSContext argument. r=khuey 2016-02-29 14:52:42 -05:00
Ben Kelly a2c5bde688 Bug 1251510 Wait for service worker to be active before continuing test_xslt.html tests. r=ehsan 2016-02-29 14:17:46 -05:00
Ben Kelly 1169129154 Bug 1251229 P1 Strip fragment from request URL when creating FetchEvent. r=ehsan 2016-02-29 13:21:19 -05:00
Huma Zafar 06fc8dac78 Bug 1206166 - Move FetchUtil::Consume methods into separate BodyUtil class and update Fetch.cpp and ServiceWorkerEvents.cpp accordingly. r=kitcambridge
MozReview-Commit-ID: KgEccQ2LPpC

--HG--
extra : histedit_source : 17fb2f5c022399b050a12b013f004e628ca4b9d0
2016-02-27 13:54:11 -08:00
Boris Zbarsky 29b29c72bd Bug 1251697 part 3. Remove the JSContext argument of StopSyncLoopRunnable::MaybeSetException. r=khuey 2016-02-26 21:15:57 -05:00
Boris Zbarsky 2df9965c0e Bug 1251697 part 2. Have WorkerThreadProxySyncRunnable hand the ErrorResult reference it holds to its ResponseRunnable so it can report exceptions on there instead of on a JSContext. r=khuey
We make WorkerThreadProxySyncRunnable::Dispatch a void method to catch all the
callers who were checking its return value and throwing on the ErrorResult.  Now
the WorkerThreadProxySyncRunnable (or its ResponseRunnable) is responsible for
doing that throwing and callers should check the ErrorResult to see whether
there was an exception.
2016-02-26 21:15:57 -05:00
Boris Zbarsky 3a49fc3ea3 Bug 1251697 part 1. Thread an ErrorResult reference through the worker XHR WorkerThreadProxySyncRunnable implementations. r=khuey 2016-02-26 21:15:57 -05:00
Boris Zbarsky 0f5040d0b3 Bug 1251627. Fix XMLHttpRequest.send() to follow the spec better in terms of the exceptions it throws. r=khuey 2016-02-26 21:15:56 -05:00
Boris Zbarsky e24a128e22 Bug 1251380. Change things so that WorkerPrivate::NotifyInternal (hopefully) never throws. r=khuey 2016-02-26 21:15:56 -05:00
Boris Zbarsky 35d98f4893 Bug 1251276 part 2. Remove the JSContext argument of WorkerPrivate::CancelAllTimeouts. r=khuey 2016-02-26 21:15:56 -05:00