Commit Graph

359 Commits

Author SHA1 Message Date
Matt Woodrow
d3e50c8f76 Bug 1644943 - Create single webprogress for CanonicalBrowsingContext, regardless of process the browser element contents are in. r=nika,kmag,Gijs
I think at this point we can remove all of RemoteWebProgressManager, some/all of the TabProgressListener recreations, and probably a bunch more.

Differential Revision: https://phabricator.services.mozilla.com/D79240
2020-06-17 02:59:29 +00:00
Razvan Maries
c350ad5bd6 Backed out changeset f56d5efc5e43 (bug 1644943) for build bustages on nsFrameLoaderOwner.cpp. CLOSED TREE 2020-06-17 02:55:01 +03:00
Matt Woodrow
645b2bc301 Bug 1644943 - Create single webprogress for CanonicalBrowsingContext, regardless of process the browser element contents are in. r=nika,kmag,Gijs
I think at this point we can remove all of RemoteWebProgressManager, some/all of the TabProgressListener recreations, and probably a bunch more.

Differential Revision: https://phabricator.services.mozilla.com/D79240
2020-06-16 23:24:49 +00:00
Bogdan Tara
74ca6cc819 Backed out changeset 26231891f004 (bug 1644943) for browser_backforward_userinteraction.js and browser_sessionHistory.js failures CLOSED TREE 2020-06-16 02:46:15 +03:00
Matt Woodrow
d075fa7e08 Bug 1644943 - Create single webprogress for CanonicalBrowsingContext, regardless of process the browser element contents are in. r=nika,kmag,Gijs
I think at this point we can remove all of RemoteWebProgressManager, some/all of the TabProgressListener recreations, and probably a bunch more.

Differential Revision: https://phabricator.services.mozilla.com/D79240
2020-06-15 22:01:34 +00:00
Logan Smyth
25d491b792 Bug 1601179 - Enable async stacks but limit captured async stacks to debuggees. r=jorendorff,smaug
The 'asyncStack' flag on JS execution contexts is used as a general switch
to enable async stack capture across all locations in SpiderMonkey, but
this causes problems because it can at times be too much of a performance
burden to general and track all of these stacks.

Since the introduction of this option, we have only enabled it on Nightly
and DevEdition for non-mobile builds, which has left a lot of users unable
to take advantage of this data while debugging.

This patch enables async stack traces across all of Firefox, but introduces
a new pref to toggle the scope of the actual expensive part of async stacks,
which is _capturing_ them and keeping them alive in memory. The new pref
limits the capturing of async stack traces to only debuggees, unless an
explicit pref is flipped to capture async traces for all cases.

This means that while async stacks are technically enabled, and code could
manually capture a stack and pass it back to SpiderMonkey and see that stack
reflected in later captured stacks, SpiderMonkey itself and related async
DOM APIs, among others, will not capture stacks or pass them to SpiderMonkey,
so there should be no general change in performance by enabling the broader
feature itself, unless the user is actively debugging the page.

One effect of this patch is that if you have the debugger open and then close
it, objects that have async stacks associated with them will retain those
stacks and they will continue to show up in stack traces, no _new_ stacks
will be captured. jorendorff and I have decided that this is okay because
the expectation that the debugger fully revert every possible effect that it
could have on a page is a nice goal but not a strict requirement.

Differential Revision: https://phabricator.services.mozilla.com/D68503
2020-06-14 02:41:45 +00:00
Razvan Maries
a36bb7751f Backed out 3 changesets (bug 1638153) for perma failures on cross-origin-objects.html. CLOSED TREE
Backed out changeset f7aedc92d396 (bug 1638153)
Backed out changeset 07ec713926c6 (bug 1638153)
Backed out changeset 5a656842e241 (bug 1638153)
2020-06-01 23:51:35 +03:00
Kris Maglione
b3fcd970ec Bug 1638153: Part 2 - Fix uses of .rootTreeItem to get top browser window. r=geckoview-reviewers,nika,snorp
Differential Revision: https://phabricator.services.mozilla.com/D75429
2020-06-01 17:59:01 +00:00
Olli Pettay
85d3e9e10f Bug 1548274 - try to make dom/ipc/tests/browser_cancel_content_js.js a bit less racy r=squib
Differential Revision: https://phabricator.services.mozilla.com/D77445
2020-05-29 21:46:53 +00:00
Narcis Beleuzu
0c898075c2 Bug 1604538 - Disable browser_destroy_callbacks.js on OSX. r=egao
Differential Revision: https://phabricator.services.mozilla.com/D75663
2020-05-16 07:18:15 +00:00
David Teller
9eb843fe55 Bug 1637212 - Simplify actorCreated test;r=nika
Differential Revision: https://phabricator.services.mozilla.com/D75076
2020-05-13 18:09:09 +00:00
David Teller
ba7da0c9ff Bug 1593186 - Invoke JS{Parent, Window}Actor.actorCreated;r=nika
Differential Revision: https://phabricator.services.mozilla.com/D74639
2020-05-12 07:55:39 +00:00
Bogdan Tara
ee479fe473 Backed out changeset 40cdffbbff0e (bug 1593186) for browser_getActor.js and browser_sendQuery.js failures CLOSED TREE 2020-05-12 01:13:20 +03:00
David Teller
79225f24da Bug 1593186 - Invoke JS{Parent, Window}Actor.actorCreated;r=nika
Differential Revision: https://phabricator.services.mozilla.com/D74639
2020-05-11 21:12:10 +00:00
Bogdan Tara
2cb15e959f Backed out changeset 3f222a72eb1c (bug 1593186) for browser_getActor.js failures CLOSED TREE 2020-05-11 22:26:47 +03:00
David Teller
e11bdf2afc Bug 1593186 - Invoke JS{Parent, Window}Actor.actorCreated;r=nika
Differential Revision: https://phabricator.services.mozilla.com/D74639
2020-05-11 16:23:52 +00:00
David Teller
ded0c0d4ee Bug 1580448 - JSProcessActor tests;r=nika
Differential Revision: https://phabricator.services.mozilla.com/D69819
2020-04-30 16:45:14 +00:00
David Teller
8317b02f61 Bug 1580448 - Renaming Test{Child, Parent} => TestWindow{Child, Parent};r=nika
Differential Revision: https://phabricator.services.mozilla.com/D69818
2020-04-30 16:19:14 +00:00
David Teller
cd067d3c2e Bug 1580448 - Rename JSWindowActor into JSActor;r=nika
Differential Revision: https://phabricator.services.mozilla.com/D70038
2020-04-30 16:42:53 +00:00
Stefan Hindli
e22cd35728 Backed out 9 changesets (bug 1580448) for linux build bustages in /builds/worker/workspace/obj-build/dist/include/mozilla/dom/JSWindowActorChild.h CLOSED TREE
Backed out changeset 6b4db1a501df (bug 1580448)
Backed out changeset 677257a41457 (bug 1580448)
Backed out changeset 6db8de5fc125 (bug 1580448)
Backed out changeset fd7527c86239 (bug 1580448)
Backed out changeset bfbd3330b0a5 (bug 1580448)
Backed out changeset dafa80c63322 (bug 1580448)
Backed out changeset 2a1701831a6a (bug 1580448)
Backed out changeset 9b548bd38671 (bug 1580448)
Backed out changeset 358f764ae48b (bug 1580448)
2020-04-30 10:58:27 +03:00
David Teller
f700c5624c Bug 1580448 - JSProcessActor tests;r=nika
Differential Revision: https://phabricator.services.mozilla.com/D69819
2020-04-30 07:36:29 +00:00
David Teller
a8154d1972 Bug 1580448 - Renaming Test{Child, Parent} => TestWindow{Child, Parent};r=nika
Differential Revision: https://phabricator.services.mozilla.com/D69818
2020-04-30 07:36:01 +00:00
David Teller
e3ac58091c Bug 1580448 - Rename JSWindowActor into JSActor;r=nika
Differential Revision: https://phabricator.services.mozilla.com/D70038
2020-04-30 07:33:28 +00:00
Coroiu Cristina
07757a8da8 Bug 1591344 - update disable condition for browser_ElapsedTime.js on win platform r=egao
Differential Revision: https://phabricator.services.mozilla.com/D72445
2020-04-24 21:23:07 +00:00
Narcis Beleuzu
7499b910ee Bug 1591344 - Fix disable patch. CLOSED TREE 2020-04-24 05:13:18 +03:00
Andreea Pavel
eafbad3740 Bug 1591344 - disable browser_ElapsedTime.js on linux and win to reduce failures r=egao
Differential Revision: https://phabricator.services.mozilla.com/D72085
2020-04-23 05:14:52 +00:00
Kris Maglione
6e7489c316 Bug 1614462: Part 2e - Migrate desktop-only CrashService_crash test to browser test. r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D70746
2020-04-20 22:15:30 +00:00
Kris Maglione
4c89b71494 Bug 1614462: Part 2d - Fix tests that don't need to use mozbrowser. r=mccr8
These tests used <iframe mozbrowser> for convenience, mostly forcing
themselves to only run in non-e10s mode in the process, but none of them
really have any need to.

Differential Revision: https://phabricator.services.mozilla.com/D70745
2020-04-20 22:31:29 +00:00
Ciure Andrei
a5ac2a8bbc Backed out 10 changesets (bug 1614462) for causing test_ipc_messagemanager_blob.js failures CLOSED TREE
Backed out changeset bf4f8253c708 (bug 1614462)
Backed out changeset c61b797d63e9 (bug 1614462)
Backed out changeset 284002de7137 (bug 1614462)
Backed out changeset 7f604ee5731c (bug 1614462)
Backed out changeset a73ef8167cd4 (bug 1614462)
Backed out changeset ecc3477ed34e (bug 1614462)
Backed out changeset 2106f3ccc4b5 (bug 1614462)
Backed out changeset e68c38a7741d (bug 1614462)
Backed out changeset 93b3bacdbb34 (bug 1614462)
Backed out changeset 0cf4898ae08d (bug 1614462)
2020-04-21 01:11:37 +03:00
Kris Maglione
e1b1f20547 Bug 1614462: Part 2e - Migrate desktop-only CrashService_crash test to browser test. r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D70746
2020-04-20 20:11:46 +00:00
Kris Maglione
d1639bbfcd Bug 1614462: Part 2d - Fix tests that don't need to use mozbrowser. r=mccr8
These tests used <iframe mozbrowser> for convenience, mostly forcing
themselves to only run in non-e10s mode in the process, but none of them
really have any need to.

Differential Revision: https://phabricator.services.mozilla.com/D70745
2020-04-20 20:11:43 +00:00
David Teller
bfd2379a68 Bug 1605209 - Testing JSWindowActor crash annotations;r=gsvelto
Differential Revision: https://phabricator.services.mozilla.com/D70175
2020-04-17 10:56:21 +00:00
Daniel Varga
ca80197a2f Backed out 4 changesets (bug 1605209) for causing browser-chrome failures at dom/ipc/tests/JSWindowActor/browser_crash_report.js
CLOSED TREE

Backed out changeset 6eb1cc169dbf (bug 1605209)
Backed out changeset d81b566ad94f (bug 1605209)
Backed out changeset e0e6dbf1d48d (bug 1605209)
Backed out changeset 289f5bbac1ae (bug 1605209)
2020-04-17 13:49:04 +03:00
David Teller
b59500d568 Bug 1605209 - Testing JSWindowActor crash annotations;r=gsvelto
Differential Revision: https://phabricator.services.mozilla.com/D70175
2020-04-16 08:05:45 +00:00
Ciure Andrei
c15dcac93b Backed out 10 changesets (bug 1614462) for causing xpcshell failures CLOSED TREE
Backed out changeset 34d4a86530b4 (bug 1614462)
Backed out changeset dbc2e2556d08 (bug 1614462)
Backed out changeset 512bbab4730c (bug 1614462)
Backed out changeset cd6b8d630f4c (bug 1614462)
Backed out changeset e4ad5037658f (bug 1614462)
Backed out changeset 0ffed1dc4296 (bug 1614462)
Backed out changeset 90ed81cbfe34 (bug 1614462)
Backed out changeset 6d2137eb1d52 (bug 1614462)
Backed out changeset b4819c99e16e (bug 1614462)
Backed out changeset b7deaed376ed (bug 1614462)
2020-04-17 02:26:14 +03:00
Kris Maglione
5d5b988515 Bug 1614462: Part 2e - Migrate desktop-only CrashService_crash test to browser test. r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D70746
2020-04-16 16:58:13 +00:00
Kris Maglione
c45d02801c Bug 1614462: Part 2d - Fix tests that don't need to use mozbrowser. r=mccr8
These tests used <iframe mozbrowser> for convenience, mostly forcing
themselves to only run in non-e10s mode in the process, but none of them
really have any need to.

Differential Revision: https://phabricator.services.mozilla.com/D70745
2020-04-16 16:57:14 +00:00
Brian Grinstead
30b9da5519 Bug 1623992 - Automated rewrite from chrome://global/skin/ to chrome://global/skin/global.css in markup r=marionette-reviewers,perftest-reviewers,mossop,whimboo,sparky
This was generated with

```
cp .gitignore .rgignore
rg -l -g '*.{html,xhtml}' 'href="chrome://global/skin/"' | xargs sed -i "" 's/href\="chrome:\/\/global\/skin\/"/href\="chrome:\/\/global\/skin\/global.css"/g'
```

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

--HG--
extra : moz-landing-system : lando
2020-04-03 22:23:23 +00:00
Bogdan Tara
40fdcf8307 Backed out 2 changesets (bug 1621726) for web platform test failures CLOSED TREE
Backed out changeset ebe18133a194 (bug 1621726)
Backed out changeset c43c38de33b2 (bug 1621726)
2020-04-06 22:03:02 +03:00
Nika Layzell
b6d18805e0 Bug 1621726 - Part 1: Manage PWindowGlobal with PContent instead of PBrowser, r=farre
Previously, the PWindowGlobal actor was managed by the PBrowser which hosted it,
however this could cause issues when the tab containing the PWindowGlobal was
being destroyed. Due to the slightly different lifecycles of the PBrowser actor
and the nsGlobalWindowInner which the PWindowGlobal was trying to match the
lifetime of, the actor would sometimes not fire 'willDestroy' events correctly.

This patch moves PWindowGlobal to be directly managed by PContent, and changes
logic which previously used `Manager()` to get `Browser{Parent,Child}` to
instead use a pointer member.

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

--HG--
extra : moz-landing-system : lando
2020-04-06 15:06:30 +00:00
Neil Deakin
c9187651d1 Bug 1557118, test to check filtering actor creation based on the messagemanagergroup attribute, r=farre
Depends on D68780

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

--HG--
extra : moz-landing-system : lando
2020-04-01 12:57:31 +00:00
Csoregi Natalia
7f39c4edfb Backed out changeset 9e1fba94da3a (bug 1621726) for bustages on WinHeaderOnlyUtils.h. CLOSED TREE
--HG--
extra : histedit_source : 475a57cb7d987f9ce3e1cf35e46292bc9b588a24
2020-04-01 00:05:16 +03:00
Nika Layzell
33e15617d3 Bug 1621726 - Manage PWindowGlobal with PContent instead of PBrowser, r=farre
Previously, the PWindowGlobal actor was managed by the PBrowser which hosted it,
however this could cause issues when the tab containing the PWindowGlobal was
being destroyed. Due to the slightly different lifecycles of the PBrowser actor
and the nsGlobalWindowInner which the PWindowGlobal was trying to match the
lifetime of, the actor would sometimes not fire 'willDestroy' events correctly.

This patch moves PWindowGlobal to be directly managed by PContent, and changes
logic which previously used `Manager()` to get `Browser{Parent,Child}` to
instead use a pointer member.

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

--HG--
extra : moz-landing-system : lando
2020-03-31 17:47:51 +00:00
Mike Conley
c7a68782d0 Bug 1621684 - Add tests for the ProcessPriorityManager. r=gsvelto
Differential Revision: https://phabricator.services.mozilla.com/D67550

--HG--
extra : moz-landing-system : lando
2020-03-26 20:11:10 +00:00
Nika Layzell
bd152e0d88 Bug 1614259 - Ensure BrowisngContexts are detached when nsDocShell is destroyed, r=farre
After bug 1582832, DocShell destruction and BrowsingContext detaching happen
in separate operations, leaving a gap where a DocShell has been destroyed, but
its BrowsingContext is still considered attached. During this gap, the usual
invariant that an in-process, attached BrowsingContext always has an
associated DOM window doesn't hold, nor do the usual invariants for outer
window forwarding security checks.

This patch fixes the detach timing so that a child BrowsingContext for a frame
which has been removed is always marked detached at the same time its DocShell
is destroyed.

Co-authored-by: Kris Maglione <maglione.k@gmail.com>

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

--HG--
extra : moz-landing-system : lando
2020-03-23 13:28:09 +00:00
David Teller
c781dd8809 Bug 1580447 - Expose Content{Parent, Child} to JS;r=nika
Differential Revision: https://phabricator.services.mozilla.com/D65344

--HG--
extra : moz-landing-system : lando
2020-03-20 09:11:32 +00:00
Arthur Iakab
768dcd08ae Backed out changeset 0b8ffd5fed51 (bug 1580447) for causing build bustages.
CLOSED TREE
2020-03-19 14:53:26 +02:00
David Teller
96c856d32a Bug 1580447 - Expose Content{Parent, Child} to JS;r=nika
Differential Revision: https://phabricator.services.mozilla.com/D65344

--HG--
extra : moz-landing-system : lando
2020-03-19 09:13:48 +00:00
David Teller
e251bcf21f Bug 1589493 - Testing ipc:content-shutdown's support for isLikelyOOM;r=gsvelto
Depends on D54700

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

--HG--
extra : moz-landing-system : lando
2020-03-03 21:16:00 +00:00
Mark Banner
15cfe23b88 Bug 1620542 - Automatically fix ESLint errors in .eslintrc.js files. r=mossop
# ignore-this-changeset

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

--HG--
extra : moz-landing-system : lando
2020-03-07 10:09:44 +00:00