Logan Smyth
8ae3774a1c
Bug 780269 - Pass (X-)SourceMap header to SpiderMonkey for workers. r=perry
...
Differential Revision: https://phabricator.services.mozilla.com/D70293
2020-07-07 21:19:58 +00:00
Narcis Beleuzu
8359f16846
Backed out 7 changesets (bug 1650163, bug 1649477) for bustages on JSActor.cpp . CLOSED TREE
...
Backed out changeset 4a21afb65254 (bug 1650163)
Backed out changeset c41753a56f5a (bug 1650163)
Backed out changeset 5fb444c35764 (bug 1650163)
Backed out changeset 830aa93d2b0c (bug 1649477)
Backed out changeset eca6e9dce450 (bug 1649477)
Backed out changeset 5b217aa88289 (bug 1649477)
Backed out changeset 8959d02b840f (bug 1649477)
2020-07-08 04:09:27 +03:00
Nika Layzell
a3b4b6cba4
Bug 1650163 - Part 2: Add a NOT_REMOTE_TYPE define to clarify calling code, r=farre
...
Differential Revision: https://phabricator.services.mozilla.com/D82106
2020-07-06 20:27:59 +00:00
Nika Layzell
df351180c3
Bug 1650163 - Part 1: Switch native remoteType values to nsCString, r=farre
...
Differential Revision: https://phabricator.services.mozilla.com/D82104
2020-07-06 20:30:58 +00:00
Simon Giesecke
ae3a59197c
Bug 1643613 - Check that ScheduleDeletion is only called once. r=asuth,dom-workers-and-storage-reviewers
...
Differential Revision: https://phabricator.services.mozilla.com/D81853
2020-07-02 15:41:36 +00:00
Simon Giesecke
61e4a0be9b
Bug 1649729 - Get rid of MOZ_ACCESS_THREAD_BOUND macro. r=froydnj
...
Differential Revision: https://phabricator.services.mozilla.com/D81843
2020-07-01 13:13:23 +00:00
Simon Giesecke
9364b353d4
Bug 1648010 - Remove NS_NAMED_LITERAL_CSTRING and NS_NAMED_LITERAL_STRING macros. r=froydnj
...
Differential Revision: https://phabricator.services.mozilla.com/D80631
2020-07-01 08:42:31 +00:00
Simon Giesecke
e3c223da3e
Bug 1648010 - Fix uses of NS_LITERAL_STRING with C string literals. r=geckoview-reviewers,agi,froydnj
...
Differential Revision: https://phabricator.services.mozilla.com/D80861
2020-07-01 08:34:12 +00:00
Simon Giesecke
cd8b8939b9
Bug 1648010 - Replace uses of NS_LITERAL_STRING/NS_LITERAL_CSTRING macros by _ns literals. r=geckoview-reviewers,jgilbert,agi,hsivonen,froydnj
...
Differential Revision: https://phabricator.services.mozilla.com/D80860
2020-07-01 08:29:29 +00:00
Cosmin Sabou
717f707ad2
Bug 1649390 - Add missing "=" to the skip syntax. r=mkmelin
2020-06-30 23:45:53 +03:00
Magnus Melin
cda80c22da
Bug 1649390 - skip test_remoteworker_launch_new_process.js when !e10s. r=dom-workers-and-storage-reviewers,asuth
...
Differential Revision: https://phabricator.services.mozilla.com/D81687
2020-06-30 20:22:37 +00:00
Simon Giesecke
50f1f5f460
Bug 1648449 - Use NotNull for CacheCreator::mLoaders. r=dom-workers-and-storage-reviewers,asuth
...
Differential Revision: https://phabricator.services.mozilla.com/D81076
2020-06-30 08:35:19 +00:00
Simon Giesecke
1abd166cd2
Bug 1648449 - Use TransformIntoNewArray in Load. r=dom-workers-and-storage-reviewers,asuth
...
Differential Revision: https://phabricator.services.mozilla.com/D81075
2020-06-30 08:35:01 +00:00
Simon Giesecke
5518dacaf3
Bug 1648449 - Remove intermediate conversion from iterators to indexes. r=dom-workers-and-storage-reviewers,asuth
...
Differential Revision: https://phabricator.services.mozilla.com/D81073
2020-06-30 08:34:49 +00:00
Simon Giesecke
41eebf733e
Bug 1648449 - Pass Span instead of indexes to ScriptExecutorRunnable. r=dom-workers-and-storage-reviewers,asuth
...
Differential Revision: https://phabricator.services.mozilla.com/D81072
2020-06-30 08:34:36 +00:00
Simon Giesecke
db4e38fa9b
Bug 1648449 - Use range-based for for iterating mLoadInfos. r=dom-workers-and-storage-reviewers,asuth
...
Differential Revision: https://phabricator.services.mozilla.com/D81070
2020-06-30 08:34:21 +00:00
Simon Giesecke
2bada650b6
Bug 1648449 - Stop passing around indexes to mLoadInfos. r=dom-workers-and-storage-reviewers,asuth
...
Differential Revision: https://phabricator.services.mozilla.com/D81069
2020-06-30 08:34:09 +00:00
Simon Giesecke
7c7f51528f
Bug 1648449 - Improve variable naming and comments related to script scheduling. r=asuth,dom-workers-and-storage-reviewers
...
Differential Revision: https://phabricator.services.mozilla.com/D81499
2020-06-30 08:33:51 +00:00
Luca Greco
a3c0ff4871
Bug 1642676 - Add test case to ensure we have test coverage for RemoteWorkerManager LaunchNewContentProcess and RegisterActor methods. r=dom-workers-and-storage-reviewers,asuth
...
Depends on D61708
Differential Revision: https://phabricator.services.mozilla.com/D63697
2020-06-26 16:05:53 +00:00
Luca Greco
634a0f15cf
Bug 1642676 - Ensure remote workers are launched in a child process based on the expected remoteType. r=asuth,mixedpuppy
...
Differential Revision: https://phabricator.services.mozilla.com/D61708
2020-06-26 18:13:46 +00:00
Andrea Marchesini
2c405fb804
Bug 1648141
- IPCBlobInputStream to RemoteLazyInputStream - part 6 - remoteLazyInputStream, r=smaug,necko-reviewers,dragana
...
Differential Revision: https://phabricator.services.mozilla.com/D80929
2020-06-29 11:02:55 +00:00
Simon Giesecke
622eb0d974
Bug 1648449 - Use nsTArrayView for ScriptLoaderRunnable::mLoadInfos. r=dom-workers-and-storage-reviewers,asuth
...
Differential Revision: https://phabricator.services.mozilla.com/D81068
2020-06-29 11:58:28 +00:00
Razvan Maries
f7cb24cc7e
Backed out 8 changesets (bug 1648141
) for build bustages on RemoteLazyInputStreamThread.cpp. CLOSED TREE
...
Backed out changeset e9b4ca0ee700 (bug 1648141
)
Backed out changeset b9bb847cee47 (bug 1648141
)
Backed out changeset 11dfce46ec14 (bug 1648141
)
Backed out changeset d824d2f67f27 (bug 1648141
)
Backed out changeset e5b8292e7095 (bug 1648141
)
Backed out changeset c1a3d5fa0c61 (bug 1648141
)
Backed out changeset 24fdb83db3cd (bug 1648141
)
Backed out changeset 749d894dde52 (bug 1648141
)
2020-06-29 13:59:16 +03:00
Andrea Marchesini
d50c65af76
Bug 1648141
- IPCBlobInputStream to RemoteLazyInputStream - part 6 - remoteLazyInputStream, r=smaug,necko-reviewers,dragana
...
Differential Revision: https://phabricator.services.mozilla.com/D80929
2020-06-29 10:28:21 +00:00
Kris Maglione
6aa06b33a7
Bug 1645510: Part 2 - Avoid using the unprivileged junk scope where possible. r=bholley
...
Differential Revision: https://phabricator.services.mozilla.com/D79720
2020-06-27 03:06:28 +00:00
Simon Giesecke
fcdb41af0e
Bug 1648440 - Remove unused return value from Queue::Push. r=dom-workers-and-storage-reviewers,asuth
...
Differential Revision: https://phabricator.services.mozilla.com/D81062
2020-06-26 14:53:05 +00:00
Simon Giesecke
5431b7ebd7
Bug 1648440 - Use TransformIntoNewArray in RemoteWorkerChild. r=dom-workers-and-storage-reviewers,asuth
...
Differential Revision: https://phabricator.services.mozilla.com/D81061
2020-06-26 14:52:52 +00:00
Simon Giesecke
06499b6d63
Bug 1648440 - Use TransformIntoNewArray and range-based for in WorkerError. r=dom-workers-and-storage-reviewers,asuth
...
Differential Revision: https://phabricator.services.mozilla.com/D81060
2020-06-26 14:52:45 +00:00
Simon Giesecke
945865f778
Bug 1648440 - Use range-based for in WorkerDebuggerManager. r=dom-workers-and-storage-reviewers,asuth
...
Differential Revision: https://phabricator.services.mozilla.com/D81059
2020-06-26 14:52:32 +00:00
Simon Giesecke
e2e2fb7640
Bug 1648440 - Use range-based for in WorkerDebugger where possible. r=dom-workers-and-storage-reviewers,asuth
...
Differential Revision: https://phabricator.services.mozilla.com/D81058
2020-06-26 14:52:15 +00:00
Simon Giesecke
ea7a3f8c57
Bug 1648440 - Use std::find_if and IIFE instead of custom loops in ScriptLoader. r=dom-workers-and-storage-reviewers,asuth
...
Differential Revision: https://phabricator.services.mozilla.com/D81057
2020-06-26 16:17:29 +00:00
Simon Giesecke
a793606305
Bug 1648440 - Cleanup/simplify some loops in RuntimeService. r=dom-workers-and-storage-reviewers,asuth
...
Replace BROADCAST_ALL_WORKERS macro by a BroadcastAllWorkers member function.
Use RemoveIf instead of custom for loop.
Use range-based for where possible.
Use std::transform to transform an array into another instead of custom for loop.
Use std::copy_if for conditional copy of an array into another instead of custom for loop.
Differential Revision: https://phabricator.services.mozilla.com/D81056
2020-06-26 14:51:55 +00:00
Jason Orendorff
7eb9e6c8e0
Bug 1647066 - Fix interfaces tests for shipping AggregateError to beta. r=jwalden.
...
Differential Revision: https://phabricator.services.mozilla.com/D80755
2020-06-24 00:52:46 +00:00
Cosmin Sabou
de4bc9e6bd
Backed out 3 changesets (bug 1642676) fro sharedworker related failures. CLOSED TREE
...
Backed out changeset 166624b9d855 (bug 1642676)
Backed out changeset 110cd0433bbe (bug 1642676)
Backed out changeset ca0591418c37 (bug 1642676)
2020-06-23 20:47:29 +03:00
Luca Greco
f23c981cb7
Bug 1642676 - Add test case to ensure we have test coverage for RemoteWorkerManager LaunchNewContentProcess and RegisterActor methods. r=dom-workers-and-storage-reviewers,asuth
...
Depends on D61708
Differential Revision: https://phabricator.services.mozilla.com/D63697
2020-06-23 15:44:31 +00:00
Luca Greco
6f7f31bf62
Bug 1642676 - Ensure remote workers are launched in a child process based on the expected remoteType. r=asuth,mixedpuppy
...
Differential Revision: https://phabricator.services.mozilla.com/D61708
2020-06-23 16:00:07 +00:00
Jean-Yves Avenard
87438519f0
Bug 1637500 - P2. Rename methods as they are not always dealing with "threads". r=froydnj
...
Before P1, GetCurrentThreadSerialEventTarget would have always returned the same data as NS_GetCurrentThread, making the comment incorrect Now it will properly return the running TaskQueue if any.
This change of name more clearly exposes what they are doing, as we aren't always dealing with threads directly; but a nsISerialEventTarget
Differential Revision: https://phabricator.services.mozilla.com/D80354
2020-06-23 05:05:36 +00:00
tkhan
6ccabd4784
Bug 1602668 - M(1) manifest and test changes. r=kmag,karlt,necko-reviewers,valentin
...
Differential Revision: https://phabricator.services.mozilla.com/D70362
2020-06-22 19:09:49 +00:00
Andrew Sutherland
65818c219e
Bug 1584396
- Do not assert about other thread dispatches at worker shutdown. r=dom-workers-and-storage-reviewers,ttung
...
Differential Revision: https://phabricator.services.mozilla.com/D78836
2020-06-12 09:44:09 +00:00
Simon Giesecke
8d168248fa
Bug 1645386 - Use nsTObserverArray::NonObservingRange where possible instead of ForwardRange. r=froydnj
...
Differential Revision: https://phabricator.services.mozilla.com/D79507
2020-06-22 08:21:24 +00:00
Eden Chuang
8cd5966dac
Bug 1642149 - P2 ImportScript() in workers must respect the coressponding COEP header r=dom-workers-and-storage-reviewers,perry
...
When loading a sub-script in workers, the corresponding COEP must be set on the channel's nsILoadInfo, such that its CORP header can be checked as expected.
Differential Revision: https://phabricator.services.mozilla.com/D77720
2020-06-19 13:23:35 +00:00
Coroiu Cristina
541f448731
Backed out 2 changesets (bug 1642149) for perma wpt failures at /fetch/cross-origin-resource-policy/iframe-loads.html
...
Backed out changeset bc5cfb22c1d7 (bug 1642149)
Backed out changeset c7a1a36d6d91 (bug 1642149)
2020-06-19 07:41:47 +03:00
Eden Chuang
8c86a3e215
Bug 1642149 - P2 ImportScript() in workers must respect the coressponding COEP header r=dom-workers-and-storage-reviewers,perry
...
When loading a sub-script in workers, the corresponding COEP must be set on the channel's nsILoadInfo, such that its CORP header can be checked as expected.
Differential Revision: https://phabricator.services.mozilla.com/D77720
2020-06-18 10:02:51 +00:00
Gijs Kruitbosch
222e2d1158
Bug 1644863 - fix trailing whitespace in cross-tree tests, r=emilio,marionette-reviewers,whimboo
...
Differential Revision: https://phabricator.services.mozilla.com/D79202
2020-06-17 22:45:31 +00:00
Kris Maglione
4b1ac04706
Bug 1642425: Part 1 - Remove IsTopLevelWindow() method. r=baku
...
It doesn't do anything sensible under Fission.
Differential Revision: https://phabricator.services.mozilla.com/D77700
2020-06-17 18:01:00 +00:00
Kris Maglione
3bda67deab
Bug 1638153: Part 2 - Fix uses of .rootTreeItem to get top browser window. r=geckoview-reviewers,nika,snorp
...
Differential Revision: https://phabricator.services.mozilla.com/D75429
2020-06-17 17:17:16 +00:00
Simon Giesecke
ae2c6da5c3
Bug 1645339 - Use range-based for with nsTObserverArray in dom/workers. r=dom-workers-and-storage-reviewers,edenchuang
...
Differential Revision: https://phabricator.services.mozilla.com/D79433
2020-06-17 15:04:31 +00:00
Logan Smyth
25d491b792
Bug 1601179 - Enable async stacks but limit captured async stacks to debuggees. r=jorendorff,smaug
...
The 'asyncStack' flag on JS execution contexts is used as a general switch
to enable async stack capture across all locations in SpiderMonkey, but
this causes problems because it can at times be too much of a performance
burden to general and track all of these stacks.
Since the introduction of this option, we have only enabled it on Nightly
and DevEdition for non-mobile builds, which has left a lot of users unable
to take advantage of this data while debugging.
This patch enables async stack traces across all of Firefox, but introduces
a new pref to toggle the scope of the actual expensive part of async stacks,
which is _capturing_ them and keeping them alive in memory. The new pref
limits the capturing of async stack traces to only debuggees, unless an
explicit pref is flipped to capture async traces for all cases.
This means that while async stacks are technically enabled, and code could
manually capture a stack and pass it back to SpiderMonkey and see that stack
reflected in later captured stacks, SpiderMonkey itself and related async
DOM APIs, among others, will not capture stacks or pass them to SpiderMonkey,
so there should be no general change in performance by enabling the broader
feature itself, unless the user is actively debugging the page.
One effect of this patch is that if you have the debugger open and then close
it, objects that have async stacks associated with them will retain those
stacks and they will continue to show up in stack traces, no _new_ stacks
will be captured. jorendorff and I have decided that this is okay because
the expectation that the debugger fully revert every possible effect that it
could have on a page is a nice goal but not a strict requirement.
Differential Revision: https://phabricator.services.mozilla.com/D68503
2020-06-14 02:41:45 +00:00
Jean-Yves Avenard
e8113eee35
Bug 1644009
- P5. Revert "Bug 1592488 - P6. Ensure an AbstractThread exists with RemoteWorkerService thread." r=nika
...
DirectTask dispatching will now be directly handled by nsThread.
Differential Revision: https://phabricator.services.mozilla.com/D79089
2020-06-12 05:09:55 +00:00
Jean-Yves Avenard
8cdcee4307
Bug 1644009
- P1. Revert "Bug 1592488 - P11. Ensure an AbstractThread exists for each WorkerThread." r=nika
...
DirectTask dispatching will now be directly handled by nsThread.
Differential Revision: https://phabricator.services.mozilla.com/D79085
2020-06-12 05:09:26 +00:00