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

788 Коммитов

Автор SHA1 Сообщение Дата
Jon Coppeard 623032e1f0 Bug 1482153 - Replace ModuleObject's host defined field with one on top-level JSScripts r=jandem r=hsivonen 2018-08-13 16:39:11 +01:00
Jon Coppeard 9d6255073d Bug 1481196 - Compile module scripts to a JSScript like we do for classic scripts r=jandem r=baku 2018-08-08 10:40:03 +01:00
Jon Coppeard 47ff6460be Bug 1480966 - Make ScriptLoader::GetScriptSource faillible on OOM r=baku 2018-08-08 10:40:03 +01:00
Jon Coppeard 7e4b3bcb99 Bug 1480720 - Factor out script fetch options from script load request classes r=baku 2018-08-06 10:54:28 +01:00
Jan de Mooij e0ef865217 Bug 1479363 part 5 - Use JSAutoRealm instead of JSAutoRealmAllowCCW in remaining dom/ directories. r=mccr8 2018-08-02 08:49:00 +02:00
Jon Coppeard 43dbbc475e Bug 1477090 - Only instantiate modules when it's safe to run script r=baku 2018-08-01 11:47:04 +01:00
Jon Coppeard b64ad562af Bug 1475228 - Allocate script loader source buffers on the JS heap and pass ownership when compiling r=baku 2018-07-17 14:30:24 +01:00
Jon Coppeard d3c569854b Bug 1475228 - Don't ignore errors returned from ScriptLoader::AttemptAsyncScriptCompile() r=baku 2018-07-17 14:30:23 +01:00
Jon Coppeard d45eed4795 Bug 1475228 - Refactor ScriptLoader::GetScriptSource() to remove inline data argument r=baku 2018-07-17 14:30:23 +01:00
Jon Coppeard 4ff436874c Bug 1475228 - Make asynchronous compile APIs take SourceBufferHolders r=jandem 2018-07-17 14:30:23 +01:00
Andreea Pavel 840f785b1e Backed out 8 changesets (bug 1475228) for wpt failures e.g. html/semantics/scripting-1/the-script-element/execution-timing/088.html on a CLOSED TREE
Backed out changeset b2d18ea619ec (bug 1475228)
Backed out changeset 45d3ffe3308e (bug 1475228)
Backed out changeset 02b27f8441be (bug 1475228)
Backed out changeset b82c2cf4b3f1 (bug 1475228)
Backed out changeset 2bc8f24dc3fc (bug 1475228)
Backed out changeset 6104ea971587 (bug 1475228)
Backed out changeset 7c83633262db (bug 1475228)
Backed out changeset 34fb24d52f08 (bug 1475228)
2018-07-30 16:49:02 +03:00
Jon Coppeard 7c613e5ab4 Bug 1475228 - Allocate script loader source buffers on the JS heap and pass ownership when compiling r=baku 2018-07-17 14:30:24 +01:00
Jon Coppeard 6fdbbb556c Bug 1475228 - Don't ignore errors returned from ScriptLoader::AttemptAsyncScriptCompile() r=baku 2018-07-17 14:30:23 +01:00
Jon Coppeard a694b41a5e Bug 1475228 - Refactor ScriptLoader::GetScriptSource() to remove inline data argument r=baku 2018-07-17 14:30:23 +01:00
Jon Coppeard cdfffa27fe Bug 1475228 - Make asynchronous compile APIs take SourceBufferHolders r=jandem 2018-07-17 14:30:23 +01:00
Jan de Mooij 80adc67aba Bug 1478955 part 1 - Rename JSAutoRealm to JSAutoRealmAllowCCW. r=luke 2018-07-28 12:12:26 +02:00
Jan de Mooij fad02aba7d Bug 1474540 - Assert we don't pass cross-compartment wrappers to AutoJSAPI::Init. r=bholley 2018-07-24 09:19:25 +02:00
Jan de Mooij 0ae9863373 Bug 1474541 part 2 - Assert we don't pass cross-compartment wrappers to AutoEntryScript. r=bz 2018-07-25 10:42:40 +02:00
Brian Hackett f594284848 Bug 1470795 Part 5 - Update content parse users for API movement, r=froydnj.
--HG--
extra : rebase_source : 856eecd3568adc9873b899a38ad96bbf24ebe955
2018-07-23 21:45:33 +00:00
Brian Hackett 06d1d0dddb Bug 1465292 Part 3 - Track parsed content from loaded script files, r=smaug.
--HG--
extra : rebase_source : 6ccda629306428c65eb4d2e912b5ee41b91019bf
2018-07-23 21:42:20 +00:00
Csoregi Natalia f03960010a Backed out changeset 438598073b9b (bug 1474540) for assertion failure at ScriptSettings.cpp:493 on Android. CLOSED TREE 2018-07-24 11:34:09 +03:00
Jan de Mooij 9100d22449 Bug 1474540 - Assert we don't pass cross-compartment wrappers to AutoJSAPI::Init. r=bholley 2018-07-24 09:19:25 +02:00
Jan de Mooij 8c93c6e9e8 Bug 1475559 part 5 - Pass a global object to nsScriptErrorWithStack. r=bz
The stack object might be a CCW and we want to make it impossible to get a CCW's global. Now the caller has to supply a same-compartment global object, so we no longer rely on getting the CCW's global.
2018-07-21 14:34:37 +02:00
Nazım Can Altınova 7fc9a27753 Bug 1474341 - Add AutoProfilerLabel to ScriptLoader::ProcessScriptElement r=mstange
MozReview-Commit-ID: 4wcSDgz3x0E

--HG--
extra : rebase_source : 3769c681908df9b94120ab58f982ac88b4badf56
2018-07-09 18:06:20 +02:00
Nazım Can Altınova 7dd60d07b7 Bug 1475006 - Remove mAutoProfilerLabel from AutoEntryScript in non-MOZ_GECKO_PROFILER builds r=mstange
MozReview-Commit-ID: 66mZK4q2ATK

--HG--
extra : rebase_source : ae72897b128731b8d721a3db230009a605b1560a
2018-07-12 11:01:08 +02:00
Jan de Mooij 7967870e29 Bug 1473865 part 4 - Use xpc::WindowOrNull instead of xpc::WindowGlobalOrNull in a few places. r=bz 2018-07-12 16:17:44 +02:00
Jan de Mooij 4f7b2378dc Bug 1474273 - Add xpc::CurrentNativeGlobal and use it instead of NativeGlobal(JS::CurrentGlobalOrNull(cx)). r=bz 2018-07-11 14:07:02 +02:00
Cosmin Sabou 26e792fe42 Merge autoland to mozilla-central. a=merge 2018-07-11 00:50:32 +03:00
Nazım Can Altınova c51d375549 Bug 1473303 - Add a AutoProfilerLabel member to AutoEntryScript class to add a label frame for evaluating scripts r=bz
MozReview-Commit-ID: CqfO7r7JoPS

--HG--
extra : rebase_source : 44f85f3b698ddb539134f75ea2bbc324b7ce8627
2018-07-04 15:35:07 +02:00
Andrea Marchesini 5fff1762ad Bug 1418236 - Correct EventTarget for CSP violation events, r=ckerschb 2018-07-10 17:40:21 +02:00
Andrea Marchesini 14d462eeb3 Bug 1418246 - Return valid columnNumber value in CSP violation events, r=ckerschb 2018-07-05 08:21:04 +02:00
Emilio Cobos Álvarez c7d35aa526 Bug 1470930: Use enums for passing arguments for event dispatch. r=smaug
MozReview-Commit-ID: DsNuF7GAflJ
2018-06-26 18:22:06 +02: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 09c4068fa0 Bug 1464134 part 1 - Fix various places to use Realm instead of JSCompartment. r=luke 2018-05-31 11:28:48 +02:00
Olli Pettay ae2b960685 Bug 1459309 - currentScript should be null when evaluating scripts from shadow DOM, r=peterv
--HG--
extra : rebase_source : 53979237d9d94438966ef470cc9ff80d612ef4ee
2018-05-11 20:24:50 +03:00
Jon Coppeard a844ec84c4 Bug 1427610 - Implement import.meta in the browser r=bkelly 2018-05-23 09:30:13 +01:00
Nicolas B. Pierron bdd58b3482 Bug 1461672 - Remove Telemetry probe added to tune the JSBC. r=francois,bkelly 2018-05-21 17:17:18 +00:00
Jon Coppeard 8d493df52b Bug 1444956 - Support BinAST decoding in the script loader r=baku 2018-05-16 15:58:13 +01:00
Jon Coppeard 65b2944794 Bug 1461751 - Simplify module resolve hook to be a function pointer r=luke r=baku 2018-05-16 11:59:09 +01:00
Jan de Mooij 9cfbaa7e06 Bug 1461292 part 2 - Rename JSAutoNullableCompartment to JSAutoNullableRealm. r=bz 2018-05-16 10:53:45 +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
Jon Coppeard 0924042900 Bug 1456774 - Remove linear search for finished parse task and type off thread parse token r=jandem r=baku 2018-05-10 14:51:14 +01:00
Chris Peterson 71422dcaa9 Bug 1457813 - Part 2: Replace non-asserting NS_PRECONDITIONs with MOZ_ASSERTs. r=froydnj
s/NS_PRECONDITION/MOZ_ASSERT/ and reindent

MozReview-Commit-ID: KuUsnVe2h8L

--HG--
extra : source : c14655ab3df2c9b1465dd8102b9d25683359a37b
2018-04-28 12:50:58 -07:00
Michal Novotny ee8f43208a Bug 1448476 - Cache entry corruption after writing the alternate data. r=honzab
When writing to alt-data output stream fails for whatever reason, we now try to
truncate alternative data and keep the original data instead of dooming the
whole entry. The patch also changes how is the predicted size passed to the
cache. Instead of a dedicated method it's now an argument of openOutputStream
and openAlternativeOutputStream methods which fail in case the entry would
exceed the allowed limit.
2018-04-25 07:01:00 +03:00
Andrew McCreight 269f53f8b6 Bug 1451985 - Tell the cycle collector about ScriptLoadRequest::mElement. r=baku
Not doing this can cause a leak because there is a cycle between the
load request and the script element.

MozReview-Commit-ID: E7GbH5iDBP6

--HG--
extra : rebase_source : b9c16b5a40bf465f28f792cbf727909d1f976c31
2018-04-19 16:33:12 -07:00
Jon Coppeard 96a3f31ff4 Bug 1453559 - Don't use channel URI for loading modules from resource: scheme r=baku 2018-04-13 14:15:33 +01:00
Karl Tomlinson 2405fe930c bug 1328964 use nsContentUtils::GetCurrentJSContext() on all threads r=smaug
nsContentUtils::GetCurrentJSContextForThread() originally needed to use
workers::GetCurrentThreadJSContext() in
https://hg.mozilla.org/mozilla-central/rev/366a45b41539#l2.18
because CycleCollectedJS*()->Context() did not exist until
https://hg.mozilla.org/mozilla-central/rev/1a0cd542e1e9#l7.12

nsContentUtils::GetCurrentJSContext() is thread-safe since these changes:
https://hg.mozilla.org/mozilla-central/rev/e636c7186286#l3.12
https://hg.mozilla.org/mozilla-central/rev/c8029c072776#l2.12

MozReview-Commit-ID: 2f1eGS9uBBO

--HG--
extra : rebase_source : dad1d2084a63413c3975f9e7c66c6b06857c9f23
2018-04-09 12:11:18 +12:00
Nicolas B. Pierron d8df648fc6 Bug 1448194 - Substract the mBytecodeOffset from the bytecode length, as this could cause some assertion failures. r=mrbkap 2018-04-06 09:47:47 +00:00
Jon Coppeard 1ce8789ad0 Bug 1440827 - Cancel preloaded requests if we decide not to use them r=baku 2018-03-29 17:11:41 +01:00
Christoph Kerschbaumer a929955d1f Bug 1439713 - Change nsIContentPolicy shouldLoad to take an <uri, loadInfo> pair instead of the various args. r=bz 2018-03-29 12:16:23 +02:00
Kris Maglione 83371fe0b5 Bug 1445551: Part 4 - Remove compartment-per-addon. r=mccr8
The compartment-per-addon code was added so that we could segregate at least
some of the code from system-privileged add-ons into tagged compartments, even
when it ran in browser windows. That allowed us to apply certain special
behavior to them, such as enabling e10s shims, and to track some performance
characteristics.

The only remaining chrome-privileged add-ons now are system add-ons controlled
by us, and the shim system and per-compartment performance metrics are gone,
it no longer serves a purpose.

MozReview-Commit-ID: Ap186bWAaqP

--HG--
extra : rebase_source : c5bf81b44dd42b7cebce2784b7dd98480b41b593
2018-03-13 19:43:30 -07:00
Olli Pettay 2439836b37 Bug 1193394 - Part 1: Microtasks and promises scheduling. r=bevis 2017-11-17 11:01:27 +08:00
Emilio Cobos Álvarez 2988d4e66d Bug 1442207: Remove unneeded arguments to nsIMutationObserver. r=smaug
aDocument is always content->OwnerDoc().
aContainer is always content->GetParent().

Differential Revision: https://phabricator.services.mozilla.com/D664

MozReview-Commit-ID: 4xwPCOnhyIL
2018-03-01 22:45:17 +01:00
Jon Coppeard 6562e60574 Bug 1440269 - Defer calling debugger onNewScript hook for preloaded modules r=nbp 2018-03-01 17:13:14 +00:00
Csoregi Natalia 1fd0486e23 Backed out 7 changesets (bug 1193394) for browser-chrome failures on browser_ext_popup_background.js. CLOSED TREE
Backed out changeset 9683f24ff8ec (bug 1193394)
Backed out changeset 0e7140a7c841 (bug 1193394)
Backed out changeset a0e26f6b2784 (bug 1193394)
Backed out changeset 29e1fceaf48d (bug 1193394)
Backed out changeset b8632bbbd273 (bug 1193394)
Backed out changeset a54ef2d8f896 (bug 1193394)
Backed out changeset 55c94c05c57f (bug 1193394)
2018-03-01 16:29:02 +02:00
Olli Pettay b7726493fb Bug 1193394 - Part 1: Microtasks and promises scheduling. r=bevis 2017-11-17 11:01:27 +08:00
Emilio Cobos Álvarez 9f26540cc4 Bug 1441547: Make character data change notifications use a const reference for the info parameter. r=smaug
It's not intended to be mutated.

MozReview-Commit-ID: 5nkD1YkidlV

--HG--
extra : rebase_source : 810d429208fa3eaf30e220e77a7d27107cb77346
2018-02-27 15:30:27 +01:00
Jon Coppeard 9b97fa3a81 Bug 1342416 - Preload module scripts r=baku 2018-02-15 13:18:59 +00:00
Boris Zbarsky 6d7aa804ec Bug 838521. Don't preload scripts of unknown type, just like we don't load them normally. r=baku
MozReview-Commit-ID: JWiKNElENyZ
2018-02-14 12:05:26 -05:00
Josh Matthews 19738f789f Bug 1436743 - Dispatch events via the docgroup rather than the tabgroup when possible. r=mystor 2018-02-08 15:54:00 -05:00
Andrea Marchesini 8cdf705535 Bug 1435174 - Remove the renaming 'using namespace workers', r=bkelly 2018-02-05 19:55:07 +01:00
Andrea Marchesini 26352bfee1 Bug 1432963 - Fixing workers headers - part 17 - no LIBS=[workers] in moz.build files, r=smaug 2018-01-31 08:25:30 +01:00
Andrea Marchesini 2c7c69af24 Bug 1432963 - Fixing workers headers - part 14 - WorkerPrivate without workers namespace, r=smaug 2018-01-31 08:24:08 +01:00
Andrea Marchesini c6da271117 Bug 1425458 - Resource timing entries Workers - part 0 - NS_NewChannel, r=smaug
* * *
Bug 1425458 - Resource timing entries Workers - part 10 - Correct parameters in NS_NewChannel in nsDataObj.cpp, r=me
2018-01-24 17:17:31 +01:00
Brindusan Cristian 368c3d5b6b Backed out 12 changesets (bug 1425458) for mochitest failures on WorkerPrivate.cpp on a CLOSED TREE
Backed out changeset 11997de13778 (bug 1425458)
Backed out changeset 100b9d4f36bc (bug 1425458)
Backed out changeset a29e9dbb8c42 (bug 1425458)
Backed out changeset b96d58fd945c (bug 1425458)
Backed out changeset f140da44ba68 (bug 1425458)
Backed out changeset af56400233d9 (bug 1425458)
Backed out changeset 7034af4332e4 (bug 1425458)
Backed out changeset f70500179140 (bug 1425458)
Backed out changeset 793bbfc23257 (bug 1425458)
Backed out changeset 2efb375a8ffc (bug 1425458)
Backed out changeset 07e781e37451 (bug 1425458)
Backed out changeset e875f3702a5f (bug 1425458)
2018-01-24 20:47:48 +02:00
Andrea Marchesini 6480b95ba3 Bug 1425458 - Resource timing entries Workers - part 0 - NS_NewChannel, r=smaug 2018-01-24 17:17:31 +01:00
Nika Layzell c33284aec0 Bug 1293362 - Part 4: Generate runtime bindings for calling xpcom methods from rust, r=froydnj
MozReview-Commit-ID: K37KyHkKsSl
2018-01-23 17:27:26 -05:00
Jon Coppeard 3bdf7ef24a Bug 1382020 - Don't preload nomodule scripts when modules are enabled r=hsivonen 2018-01-23 13:07:37 +00:00
Jon Coppeard 57f7f09133 Bug 1430635 - Add telemetry to track how often preloaded scripts are used. r=baku, data-review=liuche 2018-01-17 03:10:00 -05:00
Jon Coppeard a38267f276 Bug 1430145 - Add telemetry for script kind. r=baku, data-review=liuche 2018-01-17 03:06:00 -05:00
Jon Coppeard 1768b988e8 Bug 1429783 - Reset frozen state in nsIScriptElement::LoseParserInsertedness() r=smaug 2018-01-12 10:36:23 +00:00
Jon Coppeard 20b2d0162c Bug 1429535 - Split up ScriptLoader::ProcessScriptElement method r=baku 2018-01-11 12:05:26 +00:00
Jon Coppeard 2219c13082 Backed out changeset ef258af45592 (bug 1429535) for test_bug704320_preload.html timeouts 2018-01-11 13:14:23 +00:00
Jon Coppeard b0fcfd08bf Bug 1429535 - Split up ScriptLoader::ProcessScriptElement method r=baku 2018-01-11 12:05:26 +00:00
Andrea Marchesini 8f0c2b3ab9 Bug 1428745 - Remove support for version parameter from script loader, r=jonco 2018-01-09 17:00:49 +01:00
Narcis Beleuzu 0cc8c52dcb Backed out 6 changesets (bug 1428745) for wpt failures on script-type-and-language-with-params.html. r=backout on a CLOSED TREE
Backed out changeset 9e84285278fe (bug 1428745)
Backed out changeset e199f1ccf64c (bug 1428745)
Backed out changeset dfb9af93ac53 (bug 1428745)
Backed out changeset 1d975770bd9a (bug 1428745)
Backed out changeset 1d5dc7dfd429 (bug 1428745)
Backed out changeset 4e53f251c5b8 (bug 1428745)
2018-01-10 00:37:59 +02:00
Andrea Marchesini 9d1d1b1ff3 Bug 1428745 - Remove support for version parameter from script loader, r=jonco 2018-01-09 17:00:49 +01:00
Jon Coppeard e7889065a7 Bug 1426189 - Make document.currentScript null in modules r=baku 2018-01-08 18:07:39 +00:00
Jon Coppeard bc9a97d964 Bug 1361369 - Allow async attribute on inline module scripts r=smaug 2018-01-08 15:17:34 +00:00
Jon Coppeard 61e2c40529 Bug 1361369 - Fix coding style in ScriptLoadRequest.h r=smaug 2018-01-08 15:17:33 +00:00
Jon Coppeard 0d68beed29 Bug 1361369 - Add a script processing mode enum r=smaug 2018-01-08 15:17:33 +00:00
Jon Coppeard ba458e83d4 Bug 1361369 - Factor out method to queue an async request r=smaug 2018-01-08 15:17:33 +00:00
Jon Coppeard a606770b91 Bug 1361369 - Rename some script load request flags to be more descriptive r=smaug 2018-01-08 15:17:33 +00:00
Tom Schuster 7fb8dab210 Bug 1371551 - Make ES6 modules work for webextension URLs. r=baku 2018-01-03 19:08:29 +01:00
Jon Coppeard 42419122ec Bug 1426440 - Fix processing of non-parser-generated module scripts r=smaug 2018-01-03 13:07:58 +00:00
Jon Coppeard 09b342610e Bug 1426140 - Handle errors for inline module scripts and ensure we update the module map after fetch errors r=baku 2018-01-03 13:07:58 +00:00
Jon Coppeard 579c74b331 Bug 1426140 - Factor out SRI handling from ScriptLoader::OnStreamComplete r=baku 2018-01-03 13:07:58 +00:00
Jon Coppeard 781b2bd3b1 Bug 1426140 - Factor out error handling from ScriptLoader::OnStreamComplete r=baku 2018-01-03 13:07:58 +00:00
Emilio Cobos Álvarez c8eb630ebe Bug 1423990: Move the last few attribute-related methods outside of nsIContent. r=bz
MozReview-Commit-ID: 8JZuS6O8f8W
2017-12-25 17:50:10 +01:00
Emilio Cobos Álvarez ffdf5d2cb5 Backout changeset e43f568b3e9a (bug 1423990) because some OSX-only code still doesn't build. r=me 2017-12-25 12:55:45 +01:00
Emilio Cobos Álvarez c0959b2955 Bug 1423990: Move the last few attribute-related methods outside of nsIContent. r=bz
MozReview-Commit-ID: 8JZuS6O8f8W

--HG--
extra : rebase_source : 09b82acb4f3d69e8a4345457ab217443bc28d6e2
2017-12-07 19:13:50 +01:00
Jon Coppeard 34c29bdfcc Bug 1425145 - Don't mute errors for module scripts because they always use CORS r=baku 2017-12-21 17:08:48 +00:00
Jon Coppeard 66cb694a8d Bug 1425077 - Make ModuleScript::SetErrorToRethrow call HoldJSObjects in case there is no module record r=baku 2017-12-21 16:59:12 +00:00
Jon Coppeard e9db166191 Bug 1426443 - Set CORS mode for inline module scripts r=smaug 2017-12-21 11:17:12 +00:00
Jon Coppeard bd0f421e61 Bug 1426190 - Integrity option for descendant module scripts should be the empty string r=smaug 2017-12-21 10:58:53 +00:00
Jon Coppeard a4ab509570 Bug 1425885 - Ignore 'event' and 'for' attributes for module scripts r=baku 2017-12-19 15:32:21 +00:00
Jon Coppeard ef759bb6a5 Bug 1425843 - Pass correct referrer and referrer policy when fetching modules r=smaug 2017-12-19 15:30:49 +00:00
Jon Coppeard 8a6245d972 Bug 1330688 - Report a better error in the console when a module load fails r=baku r=flod 2017-12-19 15:29:38 +00:00
Jon Coppeard cf046ed130 Bug 1365187 - Keep track of which modules in a graph have been fetched using a visited set r=smaug 2017-12-14 15:13:57 -06:00
Jon Coppeard 023b2958fa Bug 1365187 - Simplify module map interface r=smaug 2017-12-14 15:13:57 -06:00
Steve Fink d9f0a6c76b Bug 1420420 followup - sidestep a rooting hazard. r=me a=hazad-fix
--HG--
extra : amend_source : 3369480b635e7f6675a106bce78391557516d1c7
2017-12-07 16:07:23 -08:00
Jon Coppeard 1d4c4b18bf Bug 1420420 - Update module implementation to match latest spec regarding handling of instantiation errors r=anba r=baku r=jgraham 2017-12-06 14:54:58 +00:00
Sebastian Hengst e70bf9e08c Backed out changeset 92ad856a4bae (bug 1420420) for failing tests/jit-test/jit-test/tests/modules/bug-1402649.js after asserting. r=backout 2017-12-06 20:14:18 +02:00
Jon Coppeard 73138b170f Bug 1420420 - Update module implementation to match latest spec regarding handling of instantiation errors r=anba r=baku r=jgraham 2017-12-06 14:54:58 +00:00
Jon Coppeard 1aa0606254 Bug 1421259 - Fix error events fired when loading JS module dependencies fail r=baku 2017-12-01 13:12:48 +00:00
Andrea Marchesini 9d60eea296 Bug 1418860 - Adding telemetry to see how often version param is used in ScriptLoader type, r=jonco, data-r=francois 2017-11-29 09:01:04 +01:00
Jan de Mooij a8cef631a3 Bug 1417895 part 2 - Use a ValidJSVersion enum instead of JSVersion in script loader. r=bz 2017-11-18 23:16:09 +01:00
Jan de Mooij d66dc34955 Bug 1417895 part 1 - Move ParseJavascriptVersion from nsContentUtils to ScriptLoader.cpp. r=bz 2017-11-18 23:16:05 +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
Kyle Machulis f25f505bc5 Bug 1415747 - Remove nsIDOMHTMLScriptElement; r=bz
MozReview-Commit-ID: 3I7qVTsKFJC
2017-11-10 13:10:00 -08:00
Nika Layzell 3409141758 Bug 1414974 - Part 2: Switch many consumers to nsGlobalWindow{Inner,Outer}, r=smaug
This is a large patch which tries to switch many of the external consumers of
nsGlobalWindow to instead use the new Inner or Outer variants.

MozReview-Commit-ID: 99648Lm46T5
2017-11-09 10:44:47 -05:00
Henri Sivonen 080aa07386 Bug 1412866 - Use spec nomenclature for the ignore-destructive-writes counter. r=smaug
MozReview-Commit-ID: FKwbEZll95J

--HG--
extra : rebase_source : b42a7a17434f1c711c395fd5a09893cac81b7a9d
2017-10-30 17:45:09 +02:00
Kris Maglione 5fdcb5a5d2 Bug 1407056: Part 1 - Provide more consistent principal/origin URL to content policies. r=bz,ckerschb
We're currently fairly vague and inconsistent about the values we provide to
content policy implementations for requestOrigin and requestPrincipal. In some
cases they're the triggering principal, sometimes the loading principal,
sometimes the channel principal.

Our existing content policy implementations which require or expect a loading
principal currently retrieve it from the context node. Since no current
callers require the principal to be the loading principal, and some already
expect it to be the triggering principal (which there's currently no other way
to retrieve), I chose to pass the triggering principal whenever possible, but
use the loading principal to determine the origin URL.

As a follow-up, I'd like to change the nsIContentPolicy interface to
explicitly receive loading and triggering principals, or possibly just
LoadInfo instances, rather than poorly-defined request
origin/principal/context args. But since that may cause trouble for
comm-central, I'd rather not do it as part of this bug.

MozReview-Commit-ID: LqD9GxdzMte

--HG--
extra : rebase_source : 41ce439912ae7b895e0a3b0e660fa6ba571eb50f
2017-10-12 15:43:55 -07:00
Kris Maglione 0641eb51a8 Bug 1406278: Part 3 - Use subject principal as triggering principal in <script> "src" attribute. r=bz
MozReview-Commit-ID: KwGIE4t7KUx

--HG--
extra : rebase_source : 7bc0f04178c5ea5a2b9b66960280f53e4a10e0cd
2017-10-04 22:16:32 -07:00
Nicholas Nethercote d225f7151b Bug 1400460 - Rename nsIAtom as nsAtom. r=hiro.
(Path is actually r=froydnj.)

Bug 1400459 devirtualized nsIAtom so that it is no longer a subclass of
nsISupports. This means that nsAtom is now a better name for it than nsIAtom.

MozReview-Commit-ID: 91U22X2NydP

--HG--
rename : xpcom/ds/nsIAtom.h => xpcom/ds/nsAtom.h
extra : rebase_source : ac3e904a21b8b48e74534fff964f1623ee937c67
2017-10-03 09:05:19 +11:00
Catalin Badea f8162c4bfd Bug 651120 - Remove index argument from content removed/appended/inserted notifications. r=peterv 2017-10-03 11:09:08 +01:00
Olli Pettay ecbbad31ed Bug 1378092 - Consider to remove MaybeGC from AutoEntryScript::~AutoEntryScript(), r=jonco
--HG--
extra : rebase_source : 0a2904c0204e13e15be4289c111457e1d20c1330
2017-09-07 09:28:25 +01:00
Jon Coppeard bbf830a646 Bug 1395896 - Record module dependency before starting fetch so that error handling works correctly r=bkelly 2017-09-06 09:07:09 +01:00
Honza Bambas 8d492fe637 Bug 1395525 - Make all changes landed as part of tracker request tailing preferrable. r=dragana 2017-08-31 06:07:00 -04:00
Honza Bambas 4263c50db2 Bug 1358060 - Allow postponing of unimportant resources opening during page load, class-of-service Tail flag. r=dragana
--HG--
extra : rebase_source : 1ab691fe066e641c948aa5f42827305411579708
2017-08-30 09:32:00 -04:00
Nicolas B. Pierron 605f187aa5 Bug 1394442 - Clear the bytecode buffer after the evaluation. r=mrbkap 2017-08-30 12:57:32 +00:00
Andrew McCreight 78807d8776 Bug 1391005 - Eliminate NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION_INHERITED. r=peterv
Replace it with NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION, because it
has been the same for a while.

MozReview-Commit-ID: 5agRGFyUry1

--HG--
extra : rebase_source : 5388c56b2f6905c6ef969150f0c5b77bf247624d
2017-08-29 16:02:48 -07:00
Jon Coppeard a5766511a6 Bug 1362098 - Report source position for module specfier resolution failure r=bkelly 2017-08-23 17:24:38 +01:00
Nicolas B. Pierron 4dd803021e Bug 1390863 - Do not hold ScriptLoadRequest, when the load-end event is not fired. r=mrbkap 2017-08-22 18:06:37 +00:00
Jon Coppeard 57cc56cf0b Bug Bug 1388728 - Update module loader error handling to match the spec r=bkelly 2017-08-22 10:34:14 +01:00
Jon Coppeard 22a385b644 Bug 1388728 - Remove eager module instantiation r=bkelly 2017-08-22 10:08:21 +01:00
Jon Coppeard 0173f129e8 Bug 1388728 - Rename JS APIs for loading modules in line with the spec r=bkelly 2017-08-22 10:07:49 +01:00
Honza Bambas 2f9f6408e0 Bug 1053321 - Correctly pass info about 'defer' and 'async' attributes to HTML5 parser invoked script preload. r=bkelly 2017-08-19 05:35:00 -04:00
Jon Coppeard ccc6ec51bc Bug 1358882 - Fix build error on android r=me 2017-08-15 13:19:32 +01:00
Jon Coppeard 382f184d88 Bug 1358882 - Check for failed instantiation when starting to fetch module dependencies r=smaug 2017-05-02 18:01:51 +01:00
Kate McKinley 092434c08c Bug 1376651 - Pass the nsIScriptElement instead of allocating a string every time r=ckerschb
Change the interface to GetAlowsInline to take an nsISupports* instead
of a string, and pass the nsIScriptElement directly. If we don't have an
element, then pass nullptr or the mock string created as an
nsISupportsString.

MozReview-Commit-ID: pgIMxtplsi

--HG--
extra : rebase_source : 4691643bb67ff6c78a74a4886a04c4816cff6219
2017-07-27 11:01:24 -07:00
Phil Ringnalda c5ab89e934 Backed out changeset 548ed79f2337 (bug 1053321) for strange and terribly-reported failures in Android opt mochitest-15 and debug mochitest-36
CLOSED TREE

MozReview-Commit-ID: IigWQ1wnxhZ

--HG--
extra : source : 70bd3854b6d034b67419ba11044b6cbe82b713bc
2017-08-01 23:13:42 -07:00
Honza Bambas f33b5cb515 Bug 1053321 - Correctly pass info about 'defer' and 'async' attributes to HTML5 parser invoked script preload. r=bkelly
--HG--
extra : histedit_source : 1743f499ca20d75df7e957fab1c942c4f4e22df8
2017-08-01 21:21:09 +02:00
Ryan VanderMeulen 1b497ab253 Backed out changeset 20344f0dbff9 (bug 1053321) for ESLint failures. 2017-08-01 16:14:01 -04:00
Honza Bambas d8659dd692 Bug 1053321 - Correctly pass info about 'defer' and 'async' attributes to HTML5 parser invoked script preload. r=bkelly 2017-08-01 12:43:00 -04:00
Nicolas B. Pierron 7a08464871 Bug 900784 - Tune the bytecode cache heuristic based on telemetry results. r=mrbkap 2017-07-28 13:06:48 +00:00
Bevis Tseng a7505864a8 Bug 1378930 - Part 2: Remove the aName parameter from SchedulerGroup/DocGroup/DispatcherTrait. r=billm
--HG--
extra : rebase_source : 11319e568a51d16754a6a9990f76c35c86c2bda7
2017-07-26 16:13:35 +08:00
Nicolas B. Pierron 6eb7dc59af Bug 1381888 - Hard-code the current size factor between the source size and the bytecode size. r=mrbkap
--HG--
extra : rebase_source : 5e2a0735a7d02e414b38ce24ac6b887cb0c7ddbc
2017-07-18 10:09:00 -04:00
Andrew McCreight bf7fff95f0 Bug 1379786, part 4 - Use GetIsSystemPrincipal() method instead of going through secman in CHECK_PRINCIPAL_AND_DATA. r=mrbkap
MozReview-Commit-ID: INBsjjxbXZz

--HG--
extra : rebase_source : fd6d491d01acc70be1bf51e25ec31bbcde81344a
2017-07-10 15:00:03 -07:00
Ryan VanderMeulen 019bd042fc Merge autoland to m-c. a=merge 2017-07-14 09:16:03 -04:00
Andrea Marchesini 50f9ea47a3 Bug 1350958 - Finish labeling ProxyReleaseEvent, r=billm 2017-07-14 08:49:22 +02:00
Xidorn Quan 2fa56dab45 Bug 1379585 part 1 - Add an RAII class for auto disable interrupt callback. r=baku
MozReview-Commit-ID: IInIukI0yI7

--HG--
extra : rebase_source : 857e438902cb06a5514b5b0a1c4abf09edafcda1
2017-07-14 10:02:59 +10:00
Tom Tromey 28e8f458a9 Bug 1306887 - keep SourceMap response header on CSS style sheets; r=bz,heycam
When loading a style sheet, if the SourceMap (or legacy X-SourceMap)
response header was seen, record it and make it available to chrome
scripts.

MozReview-Commit-ID: 3wtUADzgrI3

--HG--
extra : rebase_source : 25ed09e264d4b3a679ae970c709dedd4d50e2324
2017-06-28 16:51:46 -07:00
Nicolas B. Pierron 09b27eb5ff Bug 1376634 - Fix telemetry reports to report cacheable scripts instead of only small scripts. r=mrbkap 2017-06-29 00:48:55 +00:00
Carsten "Tomcat" Book 4e00eff077 merge mozilla-inbound to mozilla-central a=merge 2017-06-27 10:56:41 +02:00
Bill McCloskey f115503a0b Bug 1372405 - Provide names for all runnables in the tree (r=froydnj)
MozReview-Commit-ID: DKR6ROiHRS7
2017-06-26 14:19:58 -07:00
Masatoshi Kimura b515c9c804 Bug 1373984 - Turn nsIDocument::mCharacterSet into mozilla::NotNull<const mozilla::Encoding*>. r=hsivonen
MozReview-Commit-ID: GF0YXDwfA14

--HG--
extra : rebase_source : fdae0046f882d47fb539a7f882364e5c5caafdcd
extra : source : 49249788c0dee331ac2989dc39f0505d965a7bd8
2017-06-18 20:37:50 +09:00
Sebastian Hengst dfc1ad2562 Backed out changeset 7235d05662b0 (bug 1373984) for Android bustage. r=backout on a CLOSED TREE 2017-06-25 18:30:13 +02:00
Masatoshi Kimura 2e04751921 Bug 1373984 - Turn nsIDocument::mCharacterSet into mozilla::NotNull<const mozilla::Encoding*>. r=hsivonen
MozReview-Commit-ID: GF0YXDwfA14

--HG--
extra : rebase_source : a84ab644f52e68676b45f112ff69f868d89f6177
extra : source : 49249788c0dee331ac2989dc39f0505d965a7bd8
2017-06-18 20:37:50 +09:00
Wes Kocher e02435a31e Backed out changeset 77af189b5c49 (bug 1373984) for build bustage in nsHtml5Parser.cpp a=backout CLOSED TREE
MozReview-Commit-ID: 6kBmU71j2To
2017-06-25 05:10:14 -07:00
Masatoshi Kimura 241039fd97 Bug 1373984 - Turn nsIDocument::mCharacterSet into mozilla::NotNull<const mozilla::Encoding*>. r=hsivonen
MozReview-Commit-ID: GF0YXDwfA14

--HG--
extra : rebase_source : 09da1685795583513bf019d61c58230c2c4d298d
extra : source : 49249788c0dee331ac2989dc39f0505d965a7bd8
2017-06-18 20:37:50 +09:00
Nicolas B. Pierron c64732dcc7 Bug 1362114 - JSBC: Add telemetry to later tune the heuristics. r=mrbkap,francois 2017-06-20 09:53:10 +00:00
Carsten "Tomcat" Book ea1b86680c Backed out changeset 9846de3bd954 (bug 1372405)
--HG--
extra : rebase_source : 5d4a48e8ec394c329994689d938d2a6e9b2752b0
2017-06-20 08:27:02 +02:00
Bill McCloskey 4592152411 Bug 1372405 - Provide names for all runnables in the tree (r=froydnj)
MozReview-Commit-ID: DKR6ROiHRS7
2017-06-19 22:25:47 -07:00
Bevis Tseng d1637b9c5a Bug 1372453 - Part 2: Name the caller of ProxyReleaseEvent. r=billm
MozReview-Commit-ID: LYhSWnZkq0i
2017-06-14 09:27:17 +08:00
Sebastian Hengst 1f7d31312c merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-06-18 20:50:40 +02:00
Mats Palmgren 5b7c81e34b Bug 1372317 part 2 - Replace LookupRemoveIf() calls with Lookup() + entry.Remove() where needed. r=froydnj
MozReview-Commit-ID: AoRNdbzh66c
2017-06-18 17:07:54 +02:00
Masatoshi Kimura 838ccc4108 Bug 1369025 - Remove mozilla::dom::EncodingUtils. r=hsivonen
MozReview-Commit-ID: 5O5WtxbmATQ

--HG--
rename : dom/encoding/encodingsgroups.properties => intl/locale/encodingsgroups.properties
extra : rebase_source : 13143b43ee745b618e05ed1b6991d69781c2767d
2017-06-17 11:54:40 +09:00
Bill McCloskey 0767e31489 Bug 1372736 - Avoid using AbstractThread for non-media MozPromises (r=bkelly)
MozReview-Commit-ID: BBi0pK4DXxf
2017-06-15 20:16:25 -07:00
Nicolas B. Pierron 3fc61ce76c Bug 1372207 - Schedule JSBC encoding to be executed at the next idle time after the onload event. r=smaug 2017-06-14 14:37:14 +00:00
Mats Palmgren fb22ab5655 Bug 1372013 - Remove a redundant mFetchingModules.Get before Remove call, and replace Get+Put calls with a LookupRemoveIf call. r=froydnj
MozReview-Commit-ID: LDQkiin1hgf
2017-06-14 16:11:21 +02:00
Nicolas B. Pierron 3a18a8a20c Bug 1372643 - Guard ScriptLoader::GetScriptGlobalObject with mDocument weak-ptr check. r=mrbkap 2017-06-14 13:58:32 +00:00
Bill McCloskey c85ab6308c Bug 1366072 - Change promises to take nsISerialEventTarget instead of AbstractThread (r=jwwang)
MozReview-Commit-ID: 4azUhSB6whu
2017-06-13 14:51:01 -07:00
Henri Sivonen 432653453a Bug 1261841 part 2 - Use encoding_rs instead of uconv. r=emk,mystor.
MozReview-Commit-ID: 15Y5GTX98bv
2017-06-13 13:23:23 +03:00
Ben Kelly bd95903746 Bug 1197401 Remove the disabled HTML imports implementation. r=wchen 2017-06-12 07:36:02 -07:00
Nicolas B. Pierron a54368e741 Bug 1371261 - ScriptLoader: Work-around the lack of Epoch from TimeStamp class. r=mrbkap 2017-06-09 13:52:52 +00:00
Nicolas B. Pierron 45f5fab197 Bug 1370345 - Create JS bytecode mime type based on the platform BuildID instead of MOZ_BUILDID macro. r=mrbkap 2017-06-09 13:52:52 +00:00
Stanley Ye 65a48a95db Bug 1367515 - Use ::mozilla::Maybe to de-duplicate the loop of ScriptLoader::GiveUpBytecodeEncoding r=nbp
--HG--
extra : rebase_source : 158f72dd99c7d23395cac232c970d365d590769a
2017-06-06 23:49:54 -07:00
Nicolas B. Pierron 558a57a171 Bug 1368992 - JS bytecode cache: Do not attempt to encode bytecode if the compilation failed. r=mrbkap 2017-06-06 12:04:29 +00:00
Nicolas B. Pierron 6534093b4d Bug 1368675 - Add multiple heuristics to trigger the JS bytecode cache encoding. r=mrbkap 2017-06-05 12:06:20 +00:00
Carsten "Tomcat" Book 8a1350b5a6 Backed out changeset 4f6302a98ae4 (bug 1372405)
--HG--
extra : rebase_source : 41632f3158e88e692809731394a683d065a73dfb
2017-06-21 13:59:26 +02:00
Bill McCloskey 6b3e84ed5f Bug 1372405 - Provide names for all runnables in the tree (r=froydnj)
MozReview-Commit-ID: DKR6ROiHRS7
2017-06-20 21:44:11 -07:00
Nicolas B. Pierron 8ea6209d25 Bug 1364117 - Encode JS bytecode of scripts which are parsed on the main thread. r=mrbkap 2017-05-29 16:01:37 +00:00
Nicolas B. Pierron 9812c67569 Bug 1366773 - Move buffer argument from JS::StartIncrementalEncoding to JS::FinishIncrementalEncoding. r=mrbkap,shu 2017-05-24 18:28:19 +00:00
Ryan VanderMeulen 2942c9f721 Backed out changeset 1a261952f14a (bug 1365187) for frequent Win7 test_linkErrorInCommon2.html failures. a=me 2017-05-23 18:11:48 -04:00
Jon Coppeard cb6dbbfeac Bug 1365187 - When fetching a dependent module wait for any ongoing fetch of the module and its dependents to finish rather than creating a new load request r=smaug 2017-05-23 11:54:11 -04:00
Tom Tromey 088509bb80 Bug 1346936 - support SourceMap header in addition to X-SourceMap; r=Ehsan
According to the source map spec, the X-SourceMap header is deprecated
in favor of SourceMap.  This adds support for the newer name.  The test
case is a copy of the X-SourceMap test with the obvious change.

MozReview-Commit-ID: 8J6YN8xMIfb

--HG--
extra : rebase_source : 76673c096f5571065527073575b6e8c033ae68be
2017-05-15 11:58:23 -06:00
Nicolas B. Pierron 9df25fcb32 Bug 1364118 - List JS bytecode cache preferences in all.js. r=mrbkap 2017-05-18 14:12:15 +00:00
JW Wang 1156916926 Bug 1365494 - Remove the call to AbstractThread::GetCurrent() in ScriptLoader.cpp. r=jonco
See bug 1365483 for the rationale.

MozReview-Commit-ID: EDcJU48H9iX

--HG--
extra : rebase_source : c1297e8f4c2fbc024a00e7f93d1d47bc4275aadc
2017-05-17 14:07:54 +08:00
Andrea Marchesini cd805aa7fd Bug 1362119 - part 2 - Fixing the code style in dom/script, r=ehsan 2017-05-08 08:25:03 +02:00
Andrea Marchesini 9326c6d072 Bug 1362119 - part 2 - Splitting ScriptLoader in multiple files, r=ehsan
This patch it's huge because I use hg cp in order to keep the history/blame
during the moving.

--HG--
rename : dom/script/ScriptLoader.cpp => dom/script/ModuleLoadRequest.cpp
rename : dom/script/ScriptLoader.cpp => dom/script/ModuleLoadRequest.h
rename : dom/script/ScriptLoader.cpp => dom/script/ModuleScript.cpp
rename : dom/script/ScriptLoader.cpp => dom/script/ModuleScript.h
rename : dom/script/ScriptLoader.cpp => dom/script/ScriptLoadHandler.cpp
rename : dom/script/ScriptLoader.h => dom/script/ScriptLoadHandler.h
rename : dom/script/ScriptLoader.cpp => dom/script/ScriptLoadRequest.cpp
rename : dom/script/ScriptLoader.h => dom/script/ScriptLoadRequest.h
2017-05-08 08:24:44 +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
Carsten "Tomcat" Book 6201e6527c Backed out changeset a8abdd77a92c (bug 1362119) 2017-05-08 09:54:08 +02:00
Carsten "Tomcat" Book a786373f4a Backed out changeset 30104bffcd4b (bug 1362119) 2017-05-08 09:54:06 +02:00
Andrea Marchesini f629d54e2c Bug 1362119 - part 2 - Fixing the code style in dom/script, r=ehsan 2017-05-08 08:25:03 +02:00
Andrea Marchesini 3dec24b843 Bug 1362119 - part 2 - Splitting ScriptLoader in multiple files, r=ehsan
This patch it's huge because I use hg cp in order to keep the history/blame
during the moving.

--HG--
rename : dom/script/ScriptLoader.cpp => dom/script/ModuleLoadRequest.cpp
rename : dom/script/ScriptLoader.cpp => dom/script/ModuleLoadRequest.h
rename : dom/script/ScriptLoader.cpp => dom/script/ModuleScript.cpp
rename : dom/script/ScriptLoader.cpp => dom/script/ModuleScript.h
rename : dom/script/ScriptLoader.cpp => dom/script/ScriptLoadHandler.cpp
rename : dom/script/ScriptLoader.h => dom/script/ScriptLoadHandler.h
rename : dom/script/ScriptLoader.cpp => dom/script/ScriptLoadRequest.cpp
rename : dom/script/ScriptLoader.h => dom/script/ScriptLoadRequest.h
2017-05-08 08:24:44 +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