Commit Graph

7222 Commits

Author SHA1 Message Date
Ted Campbell
243dd6a969 Bug 1559275 - Use JS::CompileOptions in AsyncScriptCompiler. r=kmag
Initializing OwningCompileOptions directly will soon be deprecated in
order to have consistent defaults. This results in more consistent
behavior of experimental features that are enabled based on realm flags.

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

--HG--
extra : moz-landing-system : lando
2019-06-19 00:27:41 +00:00
Eden Chuang
2e0a3f0ddb Bug 1546306 - Add an optional aFromChromeContext parameter to nsIScriptError::InitWithWindowID for the case the passed in windowId is zero. r=baku
In some cases, the nsIScriptError is initialized with zero innerWindowId, but is from chrome context.

For cases, this patch adds an optional aFromChromeContext parameter to nsIScriptError::InitWithWindowID, which default value is false.

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

--HG--
extra : moz-landing-system : lando
2019-06-13 09:50:49 +00:00
Andrea Marchesini
bb718d74fc Bug 1490044 - Remove DOMPrefs. r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D33510

--HG--
extra : moz-landing-system : lando
2019-06-13 09:02:03 +00:00
Ehsan Akhgari
b3c4267b3c Bug 1557887 - Part 6: Pass a storage principal to the rest of the call sites for createAboutBlankContentViewer(); r=baku
Differential Revision: https://phabricator.services.mozilla.com/D34460

--HG--
extra : moz-landing-system : lando
2019-06-12 09:07:33 +00:00
Ciure Andrei
916d8a7f73 Merge mozilla-central to autoland. a=merge CLOSED TREE 2019-06-13 00:44:53 +03:00
Andreea Pavel
8552bec485 Backed out changeset 13c976344b69 (bug 1557254) for causing bug 1558836 and bug 1558852 a=backout
--HG--
extra : histedit_source : 62d780cd7c039cde0eb18472a3edf9c51aa20270
2019-06-12 20:27:00 +03:00
Masatoshi Kimura
55094bccfc Bug 1557254 - Enable char range check on Nightly/DevEdition and make warnings more dire. r=hsivonen
Differential Revision: https://phabricator.services.mozilla.com/D34287

--HG--
extra : moz-landing-system : lando
2019-06-11 13:27:16 +00:00
Iain Ireland
4bb0dc7bd0 Bug 1548908: Remove "well-known numbers" from JSRuntime r=tcampbell
Back when we first freed the lizard in 1998, it made sense to have copies of NaN/+Inf/-Inf living on the runtime, because Values didn't store doubles inline. That hasn't been true for a long time. This patch gets rid of those.

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

--HG--
extra : moz-landing-system : lando
2019-06-03 15:59:25 +00:00
Nika Layzell
6abebf8c22 Bug 1556490 - Don't require JSContext* to get symbol name, r=mccr8
This patch also contains some other cleanups to avoid the need for
special-casing getting symbol IDs at call-sites.

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

--HG--
extra : moz-landing-system : lando
2019-06-06 14:57:29 +00:00
Jon Coppeard
ac265a3fa6 Bug 1556467 - Add telemetry for number of GC slices on the main thread r=sfink
Differential Revision: https://phabricator.services.mozilla.com/D33668
2019-06-04 18:08:41 +01:00
Jon Coppeard
f593c0d14b Bug 1556467 - Add telemetry for time between GC slices on the main thread r=sfink
Differential Revision: https://phabricator.services.mozilla.com/D33667
2019-06-04 17:28:58 +01:00
Jon Coppeard
99af123862 Bug 1556467 - Add telemetry for time since last GC on the main thread r=sfink
Differential Revision: https://phabricator.services.mozilla.com/D33666
2019-06-04 17:28:33 +01:00
Boris Zbarsky
e8ac7dedc5 Remove the unused ReleaseIncrementally declaration. No bug. r=mccr8
This function does not exist.

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

--HG--
extra : moz-landing-system : lando
2019-06-04 17:43:25 +00:00
Ehsan Akhgari
9a068c6c2e Bug 1555876 - Part 1: Return the main principal from all overrides of nsIScriptObjectPrincipal::GetEffectiveStoragePrincipal(); r=baku
Differential Revision: https://phabricator.services.mozilla.com/D33335

--HG--
extra : moz-landing-system : lando
2019-05-31 21:48:52 +00:00
Honza Bambas
c35df87597 Bug 1545421 - New nsresult error codes for 407, 502 and 504 http response codes returned by proxies + test, r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D32817

--HG--
extra : moz-landing-system : lando
2019-05-31 17:29:53 +00:00
Tom Ritter
b8705a8481 Bug 1539595 - Rename Priveleged Content Process to PrivlegedAbout Content Process r=mconley,flod
We do this because we will be introducing more privileged content processes
and we want to be able to distinguish them.

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

--HG--
rename : browser/base/content/test/tabs/browser_new_tab_in_privileged_process_pref.js => browser/base/content/test/tabs/browser_new_tab_in_privilegedabout_process_pref.js
extra : moz-landing-system : lando
2019-05-29 11:31:31 +00:00
Sebastian Hengst
fba75a919c Backed out 4 changesets (bug 1539595) for build bustage in nsAboutRedirector.cpp. CLOSED TREE
Backed out changeset 2b0bb889b087 (bug 1539595)
Backed out changeset 95f0b82ec253 (bug 1539595)
Backed out changeset 6310e6dabceb (bug 1539595)
Backed out changeset ba3e353c6957 (bug 1539595)

--HG--
rename : browser/base/content/test/tabs/browser_e10s_about_page_triggeringprincipal.js => browser/base/content/test/general/browser_e10s_about_page_triggeringprincipal.js
rename : browser/base/content/test/tabs/browser_e10s_about_process.js => browser/base/content/test/general/browser_e10s_about_process.js
rename : browser/base/content/test/tabs/browser_e10s_chrome_process.js => browser/base/content/test/general/browser_e10s_chrome_process.js
rename : browser/base/content/test/tabs/browser_e10s_javascript.js => browser/base/content/test/general/browser_e10s_javascript.js
rename : browser/base/content/test/tabs/browser_e10s_switchbrowser.js => browser/base/content/test/general/browser_e10s_switchbrowser.js
rename : browser/base/content/test/tabs/file_about_child.html => browser/base/content/test/general/file_about_child.html
rename : browser/base/content/test/tabs/file_about_parent.html => browser/base/content/test/general/file_about_parent.html
rename : browser/base/content/test/tabs/test_process_flags_chrome.html => browser/base/content/test/general/test_process_flags_chrome.html
rename : browser/base/content/test/tabs/browser_new_tab_in_privilegedabout_process_pref.js => browser/base/content/test/tabs/browser_new_tab_in_privileged_process_pref.js
2019-05-28 19:49:17 +02:00
Tom Ritter
03b41fa512 Bug 1539595 - Rename Priveleged Content Process to PrivlegedAbout Content Process r=mconley,flod
We do this because we will be introducing more privileged content processes
and we want to be able to distinguish them.

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

--HG--
rename : browser/base/content/test/tabs/browser_new_tab_in_privileged_process_pref.js => browser/base/content/test/tabs/browser_new_tab_in_privilegedabout_process_pref.js
extra : moz-landing-system : lando
2019-05-28 14:19:11 +00:00
Valentin Gosu
d0eb46c5d5 Bug 1536744 - Fix test_import.js by calling nsIIOService.newURI instead of nsIResProtocolHandler.newURI r=baku
Differential Revision: https://phabricator.services.mozilla.com/D30710

--HG--
extra : moz-landing-system : lando
2019-05-28 13:51:18 +00:00
Jean-Yves Avenard
022c57caf3 Bug 1550422 - P23. Remove now unused gfxPrefs. r=jrmuizel
And with some tidying some comments and removing stray #include "gfxPrefs.h"

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

--HG--
extra : moz-landing-system : lando
2019-05-26 14:31:53 +00:00
Gurzau Raul
967bc2a754 Backed out 31 changesets (bug 1552643, bug 1550422) for xpcshell crash on a CLOSED TREE.
Backed out changeset e30c1aa75529 (bug 1552643)
Backed out changeset caadcd7e02d3 (bug 1552643)
Backed out changeset aa7086ab09be (bug 1552643)
Backed out changeset 0b4029671710 (bug 1550422)
Backed out changeset a16295296035 (bug 1550422)
Backed out changeset 3b70307c0db5 (bug 1550422)
Backed out changeset 69df7818d4a3 (bug 1550422)
Backed out changeset d98dfc565927 (bug 1550422)
Backed out changeset 6f0997976944 (bug 1550422)
Backed out changeset 0edd264464c2 (bug 1550422)
Backed out changeset 9ea6da7a74ec (bug 1550422)
Backed out changeset f855f9309c8b (bug 1550422)
Backed out changeset 1033546224a7 (bug 1550422)
Backed out changeset ade7384c6186 (bug 1550422)
Backed out changeset 75b04de7e99c (bug 1550422)
Backed out changeset 91c3acdb2454 (bug 1550422)
Backed out changeset 77d2f80257d1 (bug 1550422)
Backed out changeset e0cd10d35327 (bug 1550422)
Backed out changeset 097091082423 (bug 1550422)
Backed out changeset 2f328853c1ab (bug 1550422)
Backed out changeset f92f2cc29cb1 (bug 1550422)
Backed out changeset 6dc82f88333d (bug 1550422)
Backed out changeset c20f66494d69 (bug 1550422)
Backed out changeset 2ba22cddeb6f (bug 1550422)
Backed out changeset 3aa72f89e295 (bug 1550422)
Backed out changeset ab4c4e806977 (bug 1550422)
Backed out changeset 72e5de040dda (bug 1550422)
Backed out changeset 7d3c2d486706 (bug 1550422)
Backed out changeset 132e0b8d8468 (bug 1550422)
Backed out changeset 54c85ac75dd0 (bug 1550422)
Backed out changeset d7ba4a18dd54 (bug 1550422)
2019-05-25 09:07:49 +03:00
Jean-Yves Avenard
074aea57fe Bug 1550422 - P23. Remove now unused gfxPrefs. r=jrmuizel
And with some tidying some comments and removing stray #include "gfxPrefs.h"

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

--HG--
extra : moz-landing-system : lando
2019-05-24 11:37:50 +00:00
Steve Fink
995829d42a No bug. Reformat js/** to fix accumulated divergences.
# ignore-this-changeset

--HG--
extra : amend_source : 7b51d539061710bf4939e687b4ca4b74af757cf3
2019-05-24 11:57:18 -07:00
Daniel Varga
af42676c4a Merge mozilla-central to autoland. a=merge on a CLOSED TREE 2019-05-23 18:59:21 +03:00
Jan de Mooij
d9d5e4ef64 Bug 1551796 part 1 - Rename TypeScript to JitScript. r=tcampbell
Also JSScript::makeTypes => JSScript::createJitScript for consistency with code
elsewhere.

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

--HG--
extra : moz-landing-system : lando
2019-05-23 07:28:00 +00:00
Jeff Walden
08e794e1d7 Bug 1552977 - Compile code passed in |-e| arguments to xpcshell as UTF-8 without first inflating it. r=arai
Differential Revision: https://phabricator.services.mozilla.com/D31883

--HG--
extra : rebase_source : 9ce8d0eafa9d5b6512742b8db93927fd9d167b04
2019-05-16 16:45:39 -07:00
Boris Zbarsky
47341d0933 Bug 1553276. Don't enter the content compartment when calling a Web IDL legacycaller over Xrays. r=bholley
Differential Revision: https://phabricator.services.mozilla.com/D32047

--HG--
extra : moz-landing-system : lando
2019-05-21 19:49:18 +00:00
Brendan Dahl
543c10a1d2 Bug 1551320 - Replace all CreateElement calls in XUL documents with CreateXULElement. r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D31295

--HG--
extra : moz-landing-system : lando
2019-05-20 16:50:28 +00:00
Andrew McCreight
d1648e5525 Bug 1552597, part 2 - Handlify RemapAllWrappersForObject. r=jonco
Differential Revision: https://phabricator.services.mozilla.com/D31689

--HG--
extra : moz-landing-system : lando
2019-05-20 08:40:01 +00:00
Andrew McCreight
2184a00342 Bug 1552597, part 1 - Fix comments in RemapWrapper to say rewrap instead of wrap. r=jonco
These calls were changed from wrap() to rewrap() in bug 1291001.

Also, fix a minor typo in xpcprivate.h, because I didn't feel like
filing a separate bug for it.

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

--HG--
extra : moz-landing-system : lando
2019-05-20 08:37:49 +00:00
Csoregi Natalia
60874606d0 Merge mozilla-central to autoland. CLOSED TREE 2019-05-17 00:58:59 +03:00
Jonas Allmann
50275c5d2b Bug 1549326 - Remove simpletest.js from eval()-whitelist, r=ckerschb
Amend several test files for triggering eval() assertion through simpletest.js

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

--HG--
extra : moz-landing-system : lando
2019-05-16 13:44:36 +00:00
Brian Hackett
a231842bb7 Bug 1547084 Part 1 - Remove recordReplayDirective interface and uses, r=mccr8.
--HG--
extra : rebase_source : 9fcddba95a4759fe6eb1222199ad8eeaaba2e146
2019-05-12 13:09:55 -10:00
Ryan VanderMeulen
8f5477d25e Bug 1313741 - Use AppConstants in DOM and XPConnect tests instead of manual detection. r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D30973

--HG--
extra : moz-landing-system : lando
2019-05-14 21:01:05 +00:00
Geoff Brown
167de4a58d Bug 1551226 - Run Android x86_64 7.0/debug mochitests; r=snorp
We can run /debug mochitests against geckoview for the cost of another dozen
or so test annotations. Both /opt and /debug mochitests are nearly worthy of
tier 1, but still waiting for bug 1534732.

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

--HG--
extra : moz-landing-system : lando
2019-05-13 20:52:36 +00:00
Boris Zbarsky
76cffb4a86 Bug 1551124. Add support for optional Array arguments in xpconnect. r=nika
The semantics are that you get an empty array if the argument is not supplied,
and if [optional_argc] is used it's set accordingly so you can tell whether you
were passed explicit [] or not passed anything.

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

--HG--
extra : moz-landing-system : lando
2019-05-13 19:51:57 +00:00
Jeff Walden
353b248b45 Bug 1548729 - Move SourceHook-related functionality into its own public header for reduced dependencies. r=jorendorff
Differential Revision: https://phabricator.services.mozilla.com/D29781

--HG--
rename : js/src/jsfriendapi.h => js/public/experimental/SourceHook.h
rename : js/src/jsfriendapi.cpp => js/src/vm/SourceHook.cpp
extra : moz-landing-system : lando
2019-05-10 23:38:56 +00:00
Coroiu Cristina
d2d1ba5805 Backed out changeset 45ff6c2d30e5 (bug 1548729) for SpiderMonkey failure at build/src/js/src/vm/SourceHook.cpp 2019-05-11 02:15:15 +03:00
Jeff Walden
684ce81117 Bug 1548729 - Move SourceHook-related functionality into its own public header for reduced dependencies. r=jorendorff
Differential Revision: https://phabricator.services.mozilla.com/D29781

--HG--
rename : js/src/jsfriendapi.h => js/public/experimental/SourceHook.h
rename : js/src/jsfriendapi.cpp => js/src/vm/SourceHook.cpp
extra : moz-landing-system : lando
2019-05-10 22:42:27 +00:00
Brindusan Cristian
7f7d7f6a70 Backed out changeset e925cef1cadf (bug 1549326) for mochitest assertion failures at nsContentSecurityManager.cpp:205. CLOSED TREE 2019-05-09 21:05:40 +03:00
Jonas Allmann
4b72fd9bba Bug 1549326 - Remove simpletest.js from eval()-whitelist, r=ckerschb
Amend several test files for triggering eval() assertion through simpletest.js

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

--HG--
extra : moz-landing-system : lando
2019-05-09 16:02:49 +00:00
Jim Porter
679c9bfc7e Bug 1549177 - Fix a race condition when cancelling content JS during navigation; r=smaug
This patch fixes a race condition where we could request that a content page's
JS be cancelled during navigation in `HangMonitorChild::InterruptCallback`,
but the new page has already started loading by the time the JS is cancelled in
`XPCJSContext::InterruptCallback`, thus cancelling the JS of the new page. To
fix this, we now handle everything in `HangMonitorChild::InterruptCallback`,
making sure to only do anything for *content* scripts (to avoid inadvertently
cancelling the browser's JS).

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

--HG--
extra : moz-landing-system : lando
2019-05-07 21:56:58 +00:00
Geoff Brown
0f0beaf249 Bug 1546553 - Disable some xpcshell tests on Android x86_64; r=jmaher
These tests need to be disabled to get a green run on the Android x86_64
test platform. The failures in toolkit/components/extensions are
concerning and definitely require follow-up.

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

--HG--
extra : moz-landing-system : lando
2019-05-03 16:50:15 +00:00
Boris Zbarsky
e6c83d06e3 Bug 1548613. Get rid of FastGetGlobalJSObject. r=mccr8,jonco
Marking GetGlobalJSObject and GetGlobalJSObjectPreserveColor final and inline
on inner/outer windows allows compilers to de-virtualize and inline them, which
makes them just as fast as calling FastGetGlobalJSObject is now (in the case of
GetGlobalJSObjectPreserveColor; GetGlobalJSObject has to do the gray-unmarking,
which is a bit more work).

In WindowDestroyedEvent::Run we want to switch to GetGlobalJSObject(), because
we want to root the object and hence should unmark gray.

In nsGlobalWindowInner::RunTimeoutHandler we likewise want to unmark gray.  The
AutoEntryScript constructor likely did that already, but it's not that
expensive when it doesn't need to do any work.

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

--HG--
extra : moz-landing-system : lando
2019-05-03 10:08:07 +00:00
Boris Zbarsky
517a6ebdd7 Bug 1547923 part 6. Make nsIGlobalObject::GetGlobalJSObject always expose to active JS. r=mccr8
See callsite audit in https://bugzilla.mozilla.org/attachment.cgi?id=9061976
for details on why the remaining GetGlobalJSObject callers should switch to the
"always expose" behavior.

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

--HG--
extra : moz-landing-system : lando
2019-05-02 21:36:15 +00:00
Boris Zbarsky
ff72e84ac1 Bug 1547923 part 4. Add nsIGlobalObject::HasJSGlobal(). r=mccr8
Consumers that just care about this boolean state should use this instead of
getting the JSObject* directly.

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

--HG--
extra : moz-landing-system : lando
2019-05-02 21:32:17 +00:00
Boris Zbarsky
5c1d789bfa Bug 1547923 part 3. Add nsIGlobalObject::GetGlobalJSObjectPreserveColor(). r=mccr8
This can be used in things like assertions or some other rare circumstances
where not exposing the object to active JS is OK.

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

--HG--
extra : moz-landing-system : lando
2019-05-02 21:23:35 +00:00
Jim Porter
c62f65e325 Bug 1548565 - Fix crash in XPCJSContext::InterruptCallback from bug 1493225; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D29710

--HG--
extra : moz-landing-system : lando
2019-05-02 19:35:08 +00:00
Robin Templeton
fa340ddad3 Bug 1527902 - Enable javascript.options.bigint by default r=jandem,kmag
Differential Revision: https://phabricator.services.mozilla.com/D29182

--HG--
extra : moz-landing-system : lando
2019-05-02 19:19:00 +00:00
Jeff Walden
273ef90da4 Bug 1543458 - Make the JS subscript loader compile UTF-8 directly without inflating it. r=arai
Differential Revision: https://phabricator.services.mozilla.com/D26959

--HG--
extra : rebase_source : a1e6e89cde52fe36e7a74442be087b2adbd619ed
2019-04-10 10:48:50 -07:00