Karl Tomlinson
943896b43c
Bug 1539039 keep WorkletGlobalScope as long as its Worklet is usable r=baku
...
Depends on D25353
Differential Revision: https://phabricator.services.mozilla.com/D25354
--HG--
extra : moz-landing-system : lando
2019-04-01 16:54:58 +00:00
Karl Tomlinson
ad3740ae59
bug 1516956 keep AudioContext alive from AudioWorklet r=baku
...
to keep the graph/worklet thread running as long as the Worklet is alive.
Differential Revision: https://phabricator.services.mozilla.com/D15802
--HG--
extra : moz-landing-system : lando
2019-01-31 07:16:31 +00:00
Emilio Cobos Álvarez
d2ed260822
Bug 1517241 - Rename nsIDocument to mozilla::dom::Document. r=smaug
...
Summary: Really sorry for the size of the patch. It's mostly automatic
s/nsIDocument/Document/ but I had to fix up in a bunch of places manually to
add the right namespacing and such.
Overall it's not a very interesting patch I think.
nsDocument.cpp turns into Document.cpp, nsIDocument.h into Document.h and
nsIDocumentInlines.h into DocumentInlines.h.
I also changed a bunch of nsCOMPtr usage to RefPtr, but not all of it.
While fixing up some of the bits I also removed some unneeded OwnerDoc() null
checks and such, but I didn't do anything riskier than that.
2019-01-03 17:48:33 +01:00
Karl Tomlinson
01f71ced46
bug 1513722 expose WorkletJSContext creation and deletion and delay creation until required r=baku
...
The on-demand creation from Worklet.addModule() provides the same creation
path for clients that provide their own thread.
Differential Revision: https://phabricator.services.mozilla.com/D13217
--HG--
extra : moz-landing-system : lando
2018-12-20 07:28:04 +00:00
Andreea Pavel
d5f0aa2919
Backed out 2 changesets (bug 1513722) for build bustages
...
Backed out changeset 8e2c3015fc95 (bug 1513722)
Backed out changeset 0c454fd1dbcb (bug 1513722)
2018-12-20 06:57:15 +02:00
Karl Tomlinson
3736657c41
bug 1513722 expose WorkletJSContext creation and deletion and delay creation until required r=baku
...
The on-demand creation from Worklet.addModule() provides the same creation
path for clients that provide their own thread.
Differential Revision: https://phabricator.services.mozilla.com/D13217
--HG--
extra : moz-landing-system : lando
2018-12-20 04:21:57 +00:00
Sylvestre Ledru
265e672179
Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format
...
# ignore-this-changeset
--HG--
extra : amend_source : 4d301d3b0b8711c4692392aa76088ba7fd7d1022
2018-11-30 11:46:48 +01:00
Karl Tomlinson
b94bfb9feb
Bug 1476514 remove Get() and GetJSContext() from WorkletThread r=baku
...
Depends on D13214
Differential Revision: https://phabricator.services.mozilla.com/D13215
--HG--
extra : moz-landing-system : lando
2018-11-28 17:31:48 +00:00
Karl Tomlinson
76f7458b87
bug 1476514 use a distinct method to send runnables from parent to worklet thread r=baku
...
and create the worklet thread on demand from there.
Differential Revision: https://phabricator.services.mozilla.com/D13213
--HG--
extra : moz-landing-system : lando
2018-11-28 23:47:01 +00:00
Karl Tomlinson
cc08802d30
bug 1476514 rename WorkletImpl::TerminateThread to NotifyWorkletFinished r=baku
...
This is more appropriate when WorkletImpl will not necessarily create a thread.
Differential Revision: https://phabricator.services.mozilla.com/D13212
--HG--
extra : moz-landing-system : lando
2018-11-28 23:45:04 +00:00
Jeff Walden
7dd0d06d8c
Bug 1485800 - Rename SourceBufferHolder to SourceText, and add a <typename Unit> template parameter to it so it can hold putative UTF-8 or UTF-16 source text. r=tcampbell, r=fitzgen
...
--HG--
rename : js/public/SourceBufferHolder.h => js/public/SourceText.h
extra : rebase_source : 34df669c2481eaccd6845f53c5ecf656b636f895
2018-11-08 18:42:48 -08:00
Jeff Walden
f2196f8c8f
Bug 1503086 - Initialize all SourceBufferHolders with a fallible function that in all cases assumes ownership of given-ownership data. r=tcampbell, r=bz, r=mrbkap on some finicky worker code lightly touched here
...
--HG--
extra : rebase_source : 94b1a13dc03a7f1a5d07a2c665fdc0cde162d411
2018-10-23 12:27:16 -07:00
Arnaud Bienner
a354c4ec9c
Bug 1503228 - Move PaintWorkletGlobalScope from dom/worklet to layout/style. r=karlt
...
Differential Revision: https://phabricator.services.mozilla.com/D10212
--HG--
rename : dom/worklet/PaintWorkletGlobalScope.cpp => layout/style/PaintWorkletGlobalScope.cpp
rename : dom/worklet/PaintWorkletGlobalScope.h => layout/style/PaintWorkletGlobalScope.h
extra : moz-landing-system : lando
2018-10-31 03:47:04 +00:00
Karl Tomlinson
6471490b0a
Bug 1492014 remove now-unused WorkletThread::mWorkletLoadInfo r=baku
...
Depends on D6107
Differential Revision: https://phabricator.services.mozilla.com/D6108
2018-09-18 09:28:28 +00:00
Karl Tomlinson
c724b9dd1f
Bug 1492014 introduce WorkletImpl as an object to identify a worklet from parent and execution threads r=baku
...
Depends on D6100
Differential Revision: https://phabricator.services.mozilla.com/D6101
--HG--
rename : dom/worklet/Worklet.cpp => dom/worklet/WorkletImpl.cpp
rename : dom/worklet/Worklet.h => dom/worklet/WorkletImpl.h
2018-09-18 09:36:38 +00:00
Karl Tomlinson
fa619dbb11
Bug 1492014 remove unused aWorkletLoadInfo parameter to ExecutionRunnable() r=baku
...
Depends on D6099
Differential Revision: https://phabricator.services.mozilla.com/D6100
2018-09-18 09:36:41 +00:00
Narcis Beleuzu
bf9a9a6b50
Backed out 13 changesets (bug 1492014) for multiple failures. a=backout
...
Backed out changeset f629b66a235f (bug 1492014)
Backed out changeset 0a8510efbba3 (bug 1492014)
Backed out changeset 2798792623cf (bug 1492014)
Backed out changeset 8818f5ae0d13 (bug 1492014)
Backed out changeset 0c6b469c9618 (bug 1492014)
Backed out changeset d1654231ffb8 (bug 1492014)
Backed out changeset 5a3967f37d3f (bug 1492014)
Backed out changeset ac095c2fdd8b (bug 1492014)
Backed out changeset 4d1ba44e30ab (bug 1492014)
Backed out changeset e34938a11fab (bug 1492014)
Backed out changeset 3e142ea44140 (bug 1492014)
Backed out changeset b0f2fafdba8c (bug 1492014)
Backed out changeset d77330a1cbfa (bug 1492014)
2018-09-25 16:26:04 +03:00
Karl Tomlinson
18b9edd04f
Bug 1492014 remove now-unused WorkletThread::mWorkletLoadInfo r=baku
...
Depends on D6107
Differential Revision: https://phabricator.services.mozilla.com/D6108
--HG--
extra : moz-landing-system : lando
2018-09-18 09:28:28 +00:00
Karl Tomlinson
89c6ae2a56
Bug 1492014 introduce WorkletImpl as an object to identify a worklet from parent and execution threads r=baku
...
Depends on D6100
Differential Revision: https://phabricator.services.mozilla.com/D6101
--HG--
rename : dom/worklet/Worklet.cpp => dom/worklet/WorkletImpl.cpp
rename : dom/worklet/Worklet.h => dom/worklet/WorkletImpl.h
extra : moz-landing-system : lando
2018-09-18 09:36:38 +00:00
Karl Tomlinson
b1571dd6e0
Bug 1492014 remove unused aWorkletLoadInfo parameter to ExecutionRunnable() r=baku
...
Depends on D6099
Differential Revision: https://phabricator.services.mozilla.com/D6100
--HG--
extra : moz-landing-system : lando
2018-09-18 09:36:41 +00:00
Jan de Mooij
cbb67627a3
Bug 722345 part 3 - Remove request API. r=luke
...
Differential Revision: https://phabricator.services.mozilla.com/D4424
--HG--
extra : rebase_source : 1842588c00dbc8fb4294ce5436cdb787190909b4
2018-08-28 09:53:30 +02:00
Jeff Walden
64fceacad0
Bug 1486577 - Don't #include "js/CompilationAndEvaluation.h" in jsapi.h, minimizing the scope of that header and reducing translation-unit size of anything that needs JSAPI but doesn't need to compile/evaluate JavaScript. r=jandem
...
--HG--
extra : rebase_source : cd9a8becc15477bc5e24408159d4f061ec81c8b2
2018-08-24 22:51:49 -05:00
Jeff Walden
4bdf4a3614
Bug 1486577 - Don't #include js/SourceBufferHolder.h in jsapi.h, and instead require users to do so -- a minor translation-unit size improvement for anyone who never has to use SourceBufferHolder other than by reference. r=jandem
...
--HG--
extra : rebase_source : df47aba0c7dac3fe80ab6ea1b9a34c7acc54850d
2018-08-24 21:01:58 -05:00
Jan de Mooij
01fa47134b
Bug 1479363 part 4 - Use JSAutoRealm instead of JSAutoRealmAllowCCW in dom/workers and dom/worklet. r=baku
2018-07-31 08:37:17 +02:00
Jan de Mooij
80adc67aba
Bug 1478955 part 1 - Rename JSAutoRealm to JSAutoRealmAllowCCW. r=luke
2018-07-28 12:12:26 +02:00
Arnaud Bienner
c0836367e5
Bug 1472324: Update Worklet: s/import/addModule. r=baku,karlt
...
MozReview-Commit-ID: 4HNBeUyzgJS
--HG--
extra : rebase_source : 64be88359f1ef0edc8ef2b7c893a9a2ae53a7d04
2018-07-10 14:24:14 +02:00
Andi-Bogdan Postelnicu
88cc63910d
Bug 1453795 - DOM - Initialize member fields in classes/ structures. r=peterv
...
--HG--
extra : rebase_source : 249fc26e50bded4e94f5effa4308af0f1e54b908
2018-06-16 17:21:46 +03:00
Arnaud Bienner
e89bd4b6e5
Bug 1470856 - Add AudioWorklet definition. r=baku,karlt
...
MozReview-Commit-ID: 39eqjisGNTE
--HG--
extra : rebase_source : 97c18e1125c490f3e9aa3b9d5c864f99da6fd265
2018-06-27 11:31:02 +02:00
Jeff Gilbert
5b753da289
Bug 1470325 - s/FooBinding/Foo_Binding/g - r=qdot
...
MozReview-Commit-ID: JtTcLL5OPF0
2018-06-26 17:05:01 -07:00
Emilio Cobos Álvarez
fffb25b74f
Bug 1465585: Switch from mozilla::Move to std::move. r=froydnj
...
This was done automatically replacing:
s/mozilla::Move/std::move/
s/ Move(/ std::move(/
s/(Move(/(std::move(/
Removing the 'using mozilla::Move;' lines.
And then with a few manual fixups, see the bug for the split series..
MozReview-Commit-ID: Jxze3adipUh
2018-06-01 10:45:27 +02:00
Jan de Mooij
80e44e8003
Bug 1461292 part 1 - Rename JSAutoCompartment to JSAutoRealm. r=bz,luke
2018-05-16 10:53:16 +02:00
Karl Tomlinson
233abfb95a
bug 1328964 don't allocate SourceBufferHolder on the heap r=baku
...
I'm not aware of any reason why SourceBufferHolder must be allocated only on
the stack, but bz and bkelly seemed to agree that it should be MOZ_STACK_CLASS
in https://bugzilla.mozilla.org/show_bug.cgi?id=987556#c72
FWIW avoiding SourceBufferHolder saves by not needing to store GiveOwnership.
UniquePtr makes the transfer of ownership clearer.
MozReview-Commit-ID: 2wxkW75TNUM
--HG--
extra : rebase_source : 86b47023f252fd9f009be530d5ada8d6e82499e9
2018-03-27 15:12:19 +13:00
Andrea Marchesini
2e8f885142
Bug 1328964 - part 3 - Console API exposed to worklets r=baku
...
Initial version r=smaug.
Rebased to c616a6fd5e4b by Jan-Ivar Bruaroey <jib@mozilla.com> r=karlt.
Rebased to 83de58ddda20 by Karl Tomlinson <karlt+@karlt.net> r=baku.
MozReview-Commit-ID: G5E5OXydj3a
--HG--
extra : rebase_source : 4c6c9d396debce92299496c86bb6f55fbbb15a8a
2018-04-12 16:21:20 +12:00
Andrea Marchesini
6bcc1f6196
Bug 1328964 - part 2 - WorkletThread r=baku
...
Initial version r=smaug.
Rebased to c616a6fd5e4b by Jan-Ivar Bruaroey <jib@mozilla.com> r=karlt.
Rebased to 83de58ddda20 by Karl Tomlinson <karlt+@karlt.net> r=baku.
MozReview-Commit-ID: Lo8TWtN8qyz
--HG--
extra : rebase_source : ffcb7b835ea49cda3e25dfa94a91b3725fdbfb29
2018-04-12 15:14:48 +12:00
Andrea Marchesini
a944cd0b3c
Bug 1328964 - part 1 - Remove the window from worklet r=baku
...
Initial version r=smaug.
Rebased to c616a6fd5e4b by Jan-Ivar Bruaroey <jib@mozilla.com> r=karlt.
Rebased to 83de58ddda20 by Karl Tomlinson <karlt+@karlt.net> r=baku.
MozReview-Commit-ID: 6S52ht1zIGh
--HG--
extra : rebase_source : 1ef5177b5abf6760973afd93c1cd881bd1bf43b2
2017-05-16 09:51:40 -04:00
Andrea Marchesini
1fd1731f81
Bug 1419382 - Moving ownership of nsIInputStream when using netUtil functions - part 3 - NS_NewInputStreamPump, r=smaug
2017-11-22 11:18:57 +01:00
Jan de Mooij
7f30bf48a7
Bug 1417844 part 2 - Remove JSVersion from CompileOptions, CompartmentBehaviors, scripts. r=evilpie
2017-11-17 12:12:39 +01:00
Andrea Marchesini
bd3028679b
Bug 1415086 - Fixing a out-of-scope issue for a string in Worklet code, r=qdot
2017-11-08 00:58:11 +01:00
Sebastian Hengst
05f6535141
Backed out changeset 1c6eac3c74d5 (bug 1415086) for build bustage at dom/worklet/Worklet.cpp:204. r=backout on a CLOSED TREE
2017-11-07 22:03:02 +02:00
Andrea Marchesini
7ace780911
Bug 1415086 - Fixing a out-of-scope issue for a string in Worklet code, r=qdot
2017-11-07 20:16:02 +01:00
Andrea Marchesini
4b75cfc9bc
Bug 1373555 - Move the Fetch consume body login in a separate class - part 3 - Move the consuming body logic from FetchBody to FetchBodyConsumer, r=bkelly
2017-06-20 17:53:21 +02:00
Andrea Marchesini
1981f67eb3
Bug 1362119 - part 1 - Moving dom/base/Script{Loader,Element}.* in dom/script, r=ehsan
...
This patch does these things:
1. it moves nsScriptElement, nsScriptLoader, ScriptSettings, nsIScriptElement
and nsIScriptLoaderObserver in dom/script
2. it renames nsScriptElement to mozilla::dom::ScriptElement
3. it renames nsScriptLaoder to mozilla::dom::ScriptLoader
--HG--
rename : dom/base/nsScriptElement.cpp => dom/script/ScriptElement.cpp
rename : dom/base/nsScriptElement.h => dom/script/ScriptElement.h
rename : dom/base/nsScriptLoader.cpp => dom/script/ScriptLoader.cpp
rename : dom/base/nsScriptLoader.h => dom/script/ScriptLoader.h
rename : dom/base/ScriptSettings.cpp => dom/script/ScriptSettings.cpp
rename : dom/base/ScriptSettings.h => dom/script/ScriptSettings.h
rename : dom/base/nsIScriptElement.h => dom/script/nsIScriptElement.h
rename : dom/base/nsIScriptLoaderObserver.idl => dom/script/nsIScriptLoaderObserver.idl
2017-05-08 08:24:22 +02:00
Carsten "Tomcat" Book
f0d6de60d7
Backed out changeset 5d77f6b14633 (bug 1362119) for android bustage in nsCCUncollectableMarker.cpp:500:7: error: 'TraceScriptHolder' is not a member of 'mozilla'
...
--HG--
rename : dom/script/ScriptSettings.cpp => dom/base/ScriptSettings.cpp
rename : dom/script/ScriptSettings.h => dom/base/ScriptSettings.h
rename : dom/script/nsIScriptElement.h => dom/base/nsIScriptElement.h
rename : dom/script/nsIScriptLoaderObserver.idl => dom/base/nsIScriptLoaderObserver.idl
rename : dom/script/ScriptElement.cpp => dom/base/nsScriptElement.cpp
rename : dom/script/ScriptElement.h => dom/base/nsScriptElement.h
rename : dom/script/ScriptLoader.cpp => dom/base/nsScriptLoader.cpp
rename : dom/script/ScriptLoader.h => dom/base/nsScriptLoader.h
2017-05-08 09:54:38 +02:00
Andrea Marchesini
7a4ef797cb
Bug 1362119 - part 1 - Moving dom/base/Script{Loader,Element}.* in dom/script, r=ehsan
...
This patch does these things:
1. it moves nsScriptElement, nsScriptLoader, ScriptSettings, nsIScriptElement
and nsIScriptLoaderObserver in dom/script
2. it renames nsScriptElement to mozilla::dom::ScriptElement
3. it renames nsScriptLaoder to mozilla::dom::ScriptLoader
--HG--
rename : dom/base/nsScriptElement.cpp => dom/script/ScriptElement.cpp
rename : dom/base/nsScriptElement.h => dom/script/ScriptElement.h
rename : dom/base/nsScriptLoader.cpp => dom/script/ScriptLoader.cpp
rename : dom/base/nsScriptLoader.h => dom/script/ScriptLoader.h
rename : dom/base/ScriptSettings.cpp => dom/script/ScriptSettings.cpp
rename : dom/base/ScriptSettings.h => dom/script/ScriptSettings.h
rename : dom/base/nsIScriptElement.h => dom/script/nsIScriptElement.h
rename : dom/base/nsIScriptLoaderObserver.idl => dom/script/nsIScriptLoaderObserver.idl
2017-05-08 08:24:22 +02:00
Nicolas B. Pierron
39741d711a
Bug 1331662 part 2 - Replace nsJSUtils::EvaluateString calls by ExecutionContext scopes. r=bz
2017-03-22 13:42:27 +00:00
Boris Zbarsky
1f816c60cf
Bug 1335368 part 12. Remove the use of IsCallerChrome in FetchRequest. r=bkelly
2017-02-01 15:43:37 -05:00
Andrea Marchesini
e261213b58
Bug 1332378 - Worklet must evaluate scripts in the right JS compartment, r=nbp
2017-01-20 14:39:39 +01:00
Andrea Marchesini
4623102eac
Bug 1323948 - PaintWorkletGlobalScope, r=smaug
2016-12-16 22:21:51 +01:00
Andrea Marchesini
ade950adbb
Bug 1322981 - Correct management of JS exceptions in Worklet, r=smaug
2016-12-14 15:24:33 +01:00
Andrea Marchesini
1156b79449
Bug 1322858 - Implement AudioWorkletGlobalScope - main-thread only - not meant to be exposed yet, r=smaug
2016-12-14 14:43:26 +01:00