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

2722 Коммитов

Автор SHA1 Сообщение Дата
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
Boris Zbarsky 7dc5bbf023 Bug 1251276 part 1. Change WorkerPrivate::CancelAllTimeouts to no longer call RunExpiredTimeouts. r=khuey
If you walk through what RunExpiredTimeouts used to when called from here do
carefully, it used to do the following:

1)  If mRunningExpiredTimeouts, no-op.
2)  Not run anything, because everything is canceled.
3)  Remove everything from mTimeouts, since everything is canceled.
4)  Since mTimeouts is now empty, modify the busy count and set mTimerRunning to false.

None of this could report a JS exception, so the JS_ReportPendingException call
in CancelAllTimouts was dead code.  Note that the return value of
RunExpiredTimeouts only affected whether JS_ReportPendingException is called, so
we don't even need to worry about ModifyBusyCountFromWorker failing: that
failure used to be silently swallowed.
2016-02-26 21:15:56 -05:00
Boris Zbarsky 7413f2bf46 Bug 1251369. Use an AutoJSAPI that reports its own exceptions around the main runloop in workers. r=khuey
The silly leading ": " on the error messages is due to bug 1251518.
2016-02-26 15:23:13 -05:00
Boris Zbarsky 87574e4920 Bug 1251311. JS::DescribeScriptedCaller can't throw JS exceptions. Adjust some callers accordingly. r=khuey 2016-02-26 15:23:13 -05:00
Boris Zbarsky d3cc781844 Bug 1251275. Switch to using an AutoEntryScript in WorkerPrivate::RunExpiredTimeouts. r=khuey 2016-02-26 15:23:13 -05:00
Boris Zbarsky 7d27e1dd3d Bug 1251272. Remove the dead code in ReportErrorRunnable::ReportError that could fail, and make it infallible. r=khuey 2016-02-26 15:23:12 -05:00
Boris Zbarsky 94e6475a9c Bug 1251045 part 7. Remove the JSContext argument from some worker methods that no longer need it. r=khuey 2016-02-26 15:23:12 -05:00
Boris Zbarsky 60b1a3f005 Bug 1251045 part 6. Remove the JSContext argument from some worker debugger methods that no longer need it. r=khuey 2016-02-26 15:23:12 -05:00
Boris Zbarsky 886e3a27d5 Bug 1251045 part 5. Remove the JSContext argument from WorkerPrivateParent::Freeze/Thaw. r=khuey 2016-02-26 15:23:12 -05:00
Boris Zbarsky 7345c5edb1 Bug 1251045 part 4. Remove the JSContext argument of WorkerRunnable::Dispatch. r=khuey 2016-02-26 15:23:12 -05:00
Boris Zbarsky 878fd26e89 Bug 1251045 part 3. Remove the JSContext argument of WorkerRunnable::PostDispatch and its overrides. r=khuey 2016-02-26 15:23:12 -05:00
Boris Zbarsky d0b2f4eeda Bug 1251045 part 2. Remove the JSContext argument of ModifyBusyCountFromWorker. r=khuey 2016-02-26 15:23:12 -05:00
Boris Zbarsky 757ffe77e7 Bug 1251045 part 1. Make it possible to dispatch a ModifyBusyCountRunnable without a JSContext. r=khuey 2016-02-26 15:23:11 -05:00
Eddy Bruel 350b7f0b05 Bug 1241841 - Clear the worker's debugger event queue before destroying its context;r=khuey 2016-02-26 17:32:28 +01:00
Boris Zbarsky cc6606ed0d Bug 1250975. Stop passing a JSContext argument to WorkerRunnable::PreDispatch and its overrides. r=khuey 2016-02-25 16:05:39 -05:00
Boris Zbarsky f0afee106b Bug 1250963 part 2. Remove the unused JSContext argument of WorkerPrivate::ModifyBusyCount. r=khuey 2016-02-25 16:05:39 -05:00
Boris Zbarsky 239833a69f Bug 1250963 part 1. Change NotifyRunnable::Dispatch to not require a JSContext. r=khuey
The only reason NotifyRunnable::Dispatch needs a JSContext is so that it can call
ModifyBusyCount in Pre/PostDispatch.  The only reason that needs a JSContext is
to call Cancel(), which only needs it to call Notify(), which only needs it to
call NotifyPrivate, which only needs it to dispatch a NotifyRunnable.
2016-02-25 16:05:39 -05:00
Ehsan Akhgari eeaaec0d28 Bug 1250985 - Part 2: Prevent copy constructing a Request object with navigate mode if a RequestInit member is present; r=bzbarsky 2016-02-25 19:49:06 -05:00
Wes Kocher 56ccaea947 Backed out 2 changesets (bug 1250963) for build bustage CLOSED TREE
Backed out changeset 257324c2ae17 (bug 1250963)
Backed out changeset 0e868ee89abc (bug 1250963)

--HG--
extra : commitid : HglxXI0Tb1b
2016-02-25 13:41:42 -08:00
Wes Kocher d66f0ad3fc Backed out changeset bb404647f14c (bug 1250975) for build bustage CLOSED TREE
--HG--
extra : commitid : KyFNIQ1ugVq
2016-02-25 13:41:09 -08:00
Boris Zbarsky 683b099eb9 Bug 1250975. Stop passing a JSContext argument to WorkerRunnable::PreDispatch and its overrides. r=khuey 2016-02-25 16:05:39 -05:00
Boris Zbarsky 47ec3963e4 Bug 1250963 part 2. Remove the unused JSContext argument of WorkerPrivate::ModifyBusyCount. r=khuey 2016-02-25 16:05:39 -05:00
Boris Zbarsky 51c7f27d3a Bug 1250963 part 1. Change NotifyRunnable::Dispatch to not require a JSContext. r=khuey
The only reason NotifyRunnable::Dispatch needs a JSContext is so that it can call
ModifyBusyCount in Pre/PostDispatch.  The only reason that needs a JSContext is
to call Cancel(), which only needs it to call Notify(), which only needs it to
call NotifyPrivate, which only needs it to dispatch a NotifyRunnable.
2016-02-25 16:05:39 -05:00
dimi f4133f869a Bug 1237992 - service worker activate should be executed after install onstatechange events are fired. r=bkelly 2016-02-25 09:03:28 +08:00
Joel Maher f907e8c107 Bug 1250630 - remove PBackgroundTest and ifdef ENABLE_TEST blocks. r=khuey
MozReview-Commit-ID: 8LKHyjKWrkd
2016-02-23 11:55:50 -08:00
Daniel Holbert a192831f74 backout c42ff6847631 (bug 1250572) for causing aborts during startup 2016-02-24 11:54:35 -08:00
Andrea Marchesini 53c0f726fe Bug 1250572 - Force a parent object in MessagePort/Channel and in StructuredCloneHolder, r=smaug 2016-02-24 20:04:37 +01:00
Boris Zbarsky 44f8a852c3 Bug 1249673. Muted errors should be turned into NetworkError DOMExceptions when returning from importScripts on workers, instead of becoming NS_ERROR_FAILURE. r=baku 2016-02-24 10:38:31 -05:00
Boris Zbarsky bb7c756f0e Bug 1249652 part 3. Simplify way we handle canceling when ScriptLoaderRunnable::RunInternal fails by canceling things with its actual failure code, so we don't have to guess which failed loads are actual failures and which are just canceled via this mechanism. r=baku,khuey
There is a bit of subtlety here with NS_BINDING_ABORTED.  Before these changes,
we would land in ReportLoadError, not do anything with NS_BINDING_ABORTED, and
just return.  If called from WorkerPrivate::Constructor we'd then go ahead and
throw it on the ErrorResult, but I'm pretty sure we never ended up with
NS_BINDING_ABORTED there.  If called from ScriptExecutorRunnable::WorkerRun, we
would proceed on to ScriptExecutorRunnable::PostRun and hence
ShutdownScriptLoader where we would throw on the ErrorResult but NOT on the
JSContext.  Then we would unwind to our consumer and if that consumer was a
toplevel script load we would suppress the exception on the ErrorResult.
Otherwise we'd go ahead and throw the exception we ended up with to the caller.

The upshot is that we used to not fire error events on a worker whose main
script load was canceled with NS_BINDING_ABORTED.  So we try to preserve that
behavior explicitly for toplevel scripts.
2016-02-24 10:38:31 -05:00
Boris Zbarsky 2ac6ce9202 Bug 1249652 part 2. ScriptExecutorRunnable::WorkerRun should immediately move JS exceptions to its ErrorResult instead of allowing them to linger on the JSContext. r=baku,khuey 2016-02-24 10:38:31 -05:00
Boris Zbarsky 5c76831b32 Bug 1250291 part 3. Stop pretending to report exceptions in WorkerDebuggerRunnable::PostDispatch. r=khuey 2016-02-23 15:02:43 -05:00
Boris Zbarsky 446267bf04 Bug 1250291 part 2. Stop pretending to report exceptions in MainThreadWorkerSyncRunnable::PostDispatch. r=khuey 2016-02-23 15:02:42 -05:00
Boris Zbarsky 27b59f54f7 Bug 1250291 part 1. Stop pretending to report exceptions in MainThreadStopSyncLoopRunnable::PostDispatch. r=khuey 2016-02-23 15:02:41 -05:00
Carsten "Tomcat" Book 04e913704c Merge mozilla-central to mozilla-inbound 2016-02-23 16:56:04 +01:00
Carsten "Tomcat" Book 839ce412a8 merge fx-team to mozilla-central a=merge 2016-02-23 16:54:50 +01:00
Ben Kelly 0efc75d800 Bug 1247970 - Remove principal spec from service worker registrar file. r=baku 2016-02-15 14:41:00 +01:00
Eddy Bruel dae2755a45 Bug 1119490 - Expose the URL constructor to WorkerDebuggerGlobalScope;r=khuey 2016-02-22 10:41:09 +01:00
Ben Kelly 46ecf7744b Bug 1249351 part 2. Clean up test_importscript.html and add multiple-url importScript() case. r=bz 2016-02-22 17:13:42 -05:00
Boris Zbarsky 8b630a7187 Bug 1249351 part 1. When doing importScripts of multiple scripts in a service worker, make sure to track the cache streams per-loadinfo, instead of trying to make them all wait on the same stream. r=bkelly 2016-02-22 17:13:38 -05:00
Andrew McCreight b80e656e9e Bug 1247679, part 3 - Replace NS_IMPL_CYCLE_COLLECTION_TRACE_JSVAL_MEMBER_CALLBACK with JS_MEMBER. r=smaug 2016-02-22 10:11:02 -08:00
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