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

125 Коммитов

Автор SHA1 Сообщение Дата
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