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

445 Коммитов

Автор SHA1 Сообщение Дата
Nika Layzell c38d0d1762 Bug 1726865 - Prefer using existing content processes for subframes during process selection, r=farre
Differential Revision: https://phabricator.services.mozilla.com/D123661
2021-08-26 16:57:27 +00:00
Iulian Moraru dc862c1716 Bug 1725635 - disable browser_gc_schedule.js on linux_18.04_64_debug for frequent failures. r=intermittent-reviewers,jmaher DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D123306
2021-08-25 12:40:22 +00:00
Paul Bone 1eea9a0557 Bug 1710552 - pt 2. Inform the idle scheduler when we initiate a GC r=smaug
This lets the idle scheduler know that we've initiated a GC that we didn't
ask its permission for.  Eg the JS engine hit a threshold.  It now uses this
info when scheduling GCs for other processes.

Differential Revision: https://phabricator.services.mozilla.com/D120831
2021-08-13 04:06:26 +00:00
Christoph Kerschbaumer 838a7bfdfc Bug 1723452: Update tests within dom/ipc to work with https-first enabled r=baku
Differential Revision: https://phabricator.services.mozilla.com/D122350
2021-08-11 13:58:24 +00:00
Alexandru Michis bd251bad18 Bug 1714200 - Add mistakenly removed annotation for browser_CrashService_crash.js a=fix
CLOSED TREE
2021-08-06 23:50:46 +03:00
Olli Pettay 6492d1564b Bug 1721306, hide the tooltip when deactivating a BrowserParent, r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D121756
2021-08-06 19:33:04 +00:00
Ben Hearsum aecb82dbfc Bug 1714200: skip failing mochitest-browser-chrome tests on M1 machines r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D121221
2021-08-06 19:16:54 +00:00
Olli Pettay e361a4cdfa Bug 1724451, activate the relevant processes when restoring a bfcached page on the foreground tab, r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D122008
2021-08-06 17:39:21 +00:00
Marian-Vasile Laza 9c94fc9c4c Backed out changeset 37008f131c6f (bug 1721306) for causing bustages on SessionHistoryEntry.cpp. 2021-08-06 19:28:58 +03:00
Olli Pettay ece46d2b64 Bug 1721306, hide the tooltip when deactivating a BrowserParent, r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D121756
2021-08-06 15:13:36 +00:00
Paul Bone 0001b756ab Bug 1724355 - Don't skip browser_gc_schedule.js for fission r=gsvelto
Differential Revision: https://phabricator.services.mozilla.com/D117970
2021-08-06 11:14:22 +00:00
Jed Davis 2257145e1c Bug 1635451 - Minimize content processes' connections to the X server. r=jgilbert,stransky,nika
This patch launches content processes with the `MOZ_HEADLESS` env var set
if they're using GTK with an X11 display (and there's no other reason
they'd need GTK).

The goal is to avoid exhausting Xorg's default limit of 256 clients if
there are many content processes due to Fission.  If these conditions
are met, the content process doesn't need to eagerly connect to the X
server.  This does not affect the sandbox policy, and content processes
can still use X if needed for, e.g.,  WebGL.

The boolean pref `dom.ipc.avoid-gtk`, set by default, controls this
feature.  In the future it could also be extended to minimize GTK use
with Wayland displays.

Note that disabling `widget.non-native-theme.enabled`, which is also
enabled by default, will restore the use of X11 in all content processes
even if this pref is set; the alternative is that widgets wouldn't render
in that case.

This change will also save some memory for now-unnecessary instances of
GTK's global state, and improve content process startup time.

Remove also the temp pref dom.ipc.remote-mozIcon because it cannot work
anymore with the content process being headless.

Differential Revision: https://phabricator.services.mozilla.com/D112197
2021-07-06 07:42:42 +00:00
Mike Conley b4deb453df Bug 1686570 - Add a tooltip for crashed subframes. r=flod,fluent-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D118626
2021-06-24 15:57:17 +00:00
Gabriele Svelto c5849e7c01 Bug 1713905 - Stop listening to crashes in tests right after the first has been received r=nika
Differential Revision: https://phabricator.services.mozilla.com/D117992
2021-06-17 12:56:02 +00:00
Kris Maglione b3c34d273e Bug 1646560: Part 1 - Move some XPCShell content helpers to generic shared module. r=nika
They were originally written for the extension framework, but have been used
more and more widely ever since.

Differential Revision: https://phabricator.services.mozilla.com/D114898
2021-06-15 04:40:10 +00:00
Andrew Halberstadt f84d5f3016 Bug 1694824 - [ci] Annotate browser-chrome manifests for new fission failures, r=jmaher,extension-reviewers,preferences-reviewers,zombie
Differential Revision: https://phabricator.services.mozilla.com/D116276
2021-06-02 19:22:25 +00:00
Steve Fink 3f752fc5a8 Bug 1712614 - Allow passing a GC reason through pokeGC and runNextCollectorSlice for testing, to allow removing a special case in the code r=pbone,smaug
Differential Revision: https://phabricator.services.mozilla.com/D115833
2021-05-26 21:01:50 +00:00
Steve Fink ccaf13bf0a Bug 1712006 - Speed up browser_gc_schedule.js with Promise.all and removing unnecessary waitForNewTab calls r=pbone
Differential Revision: https://phabricator.services.mozilla.com/D115554
2021-05-21 22:08:06 +00:00
Paul Bone 6477eef4a5 Bug 1710803 - Skip browser_gc_schedule.js for verify mode r=mccr8 DONTBUILD
I don't think the intermittent failures here are an indication of a true
problem here, more of a problem with how it's possible to test this code.

Differential Revision: https://phabricator.services.mozilla.com/D115330
2021-05-19 02:36:40 +00:00
Paul Bone e301ee240c Bug 1629064 - pt 8. Add a test for JS initiated GCs r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D109855
2021-05-12 06:46:10 +00:00
Paul Bone b5e6d9ccd6 Bug 1629064 - pt 7. Check that aborts do not confuse GC scheduler r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D109854
2021-05-12 06:46:10 +00:00
Paul Bone b3d03fb2a6 Bug 1629064 - pt 6. Add a basic GC scheduling test r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D105421
2021-05-12 06:46:10 +00:00
Nika Layzell ad678cf076 Bug 1708734 - Part 3: Add tests for createActor: false, r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D114793
2021-05-11 17:29:25 +00:00
Andrew McCreight 0688567b46 Bug 1618547 - Support Fission in the process priority manager. r=kmag,gsvelto
With Fission, there can be multiple BrowserParents in a single tab, so
this patch moves the tracking of active tabs onto the top BrowsingContext
in a tab. If the priority of a top BC is changed, then the activity
of all of the BPs of the BCs in the tree are all adjusted. The flag
that tracks this state gets carried forward to the new BC in the case
of a cross-group navigation by the changes in ReplacedBy().

The other change here covers the case where we do a process-switching
navigation on an iframe. If we create a new BrowserParent with an active
top BC, then the BP gets marked as active in the priority manager. Doing
this tracking on the BP instead of the BC (both here in and in the part
that landed previously in BrowserParent::Deactivated()) means that we
don't need to track down every place that a BC switches processes.

I left the tracking of activity in ParticularProcessPriorityManager
centered around BrowserParents, instead of changing it to BCs, to
minimize the changes required. There are some tricky interactions there
with wakelocks that I didn't want to have to figure out.

browser_ProcessPriorityManager.js was set up to track a mapping of
browsers to priorities, but for the purposes of testing Fission support
I changed it to track a mapping of child IDs to priorities.

In the test, I also removed an assignment (this.window = null) that
didn't seem to be doing anything.

Differential Revision: https://phabricator.services.mozilla.com/D112213
2021-05-07 17:51:34 +00:00
Paul Bone 6191ca4916 Bug 1709526 - Fix all the lint errors for .ini files in dom/ r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D114321
2021-05-06 01:29:31 +00:00
Noemi Erli b7da3f34ee Backed out changeset f45996fe15b2 (bug 1618547) for causing failures in browser_ProcessPriorityManager.js CLOSED TREE 2021-05-06 00:53:54 +03:00
Andrew McCreight 063f9001b0 Bug 1618547 - Support Fission in the process priority manager. r=kmag,gsvelto
With Fission, there can be multiple BrowserParents in a single tab, so
this patch moves the tracking of active tabs onto the top BrowsingContext
in a tab. If the priority of a top BC is changed, then the activity
of all of the BPs of the BCs in the tree are all adjusted. The flag
that tracks this state gets carried forward to the new BC in the case
of a cross-group navigation by the changes in ReplacedBy().

The other change here covers the case where we do a process-switching
navigation on an iframe. If we create a new BrowserParent with an active
top BC, then the BP gets marked as active in the priority manager. Doing
this tracking on the BP instead of the BC (both here in and in the part
that landed previously in BrowserParent::Deactivated()) means that we
don't need to track down every place that a BC switches processes.

I left the tracking of activity in ParticularProcessPriorityManager
centered around BrowserParents, instead of changing it to BCs, to
minimize the changes required. There are some tricky interactions there
with wakelocks that I didn't want to have to figure out.

browser_ProcessPriorityManager.js was set up to track a mapping of
browsers to priorities, but for the purposes of testing Fission support
I changed it to track a mapping of child IDs to priorities.

In the test, I also removed an assignment (this.window = null) that
didn't seem to be doing anything.

Differential Revision: https://phabricator.services.mozilla.com/D112213
2021-05-05 20:29:14 +00:00
Olli Pettay 2af2d39a1c Bug 1705768 - Update dom/ipc/tests/JSWindowActor/browser_contentWindow.js to pass with Fission+BFCache, r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D112377
2021-04-26 22:25:59 +00:00
Joel Maher 8a9f37b534 Bug 1706716 green up mda, xpcshell, browser-chrome, reftest for apple silicon. r=necko-reviewers,extension-reviewers,preferences-reviewers,application-update-reviewers,zombie,ahal,bytesized
Differential Revision: https://phabricator.services.mozilla.com/D113001
2021-04-22 18:39:40 +00:00
Christoph Kerschbaumer 5427febae7 Bug 1670244: Ensure we never load a document with a codebase principal in the wrong type of webIsolated process r=nika
Differential Revision: https://phabricator.services.mozilla.com/D108185
2021-04-12 18:06:52 +00:00
Kris Maglione 3721adc8cd Bug 1697988: Fix race in test_browsingcontext_currenturi.html. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D111150
2021-04-08 00:51:46 +00:00
Mark Striemer 1b17e2e325 Bug 1702327 - Fix browser_crash_oopiframe.js r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D110631
2021-04-06 04:26:35 +00:00
Andreea Pavel 7a0148230a Bug 1697988 - disable test_browsingcontext_currenturi.html on linux64, mac-qr and win-qr r=jmaher DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D110721
2021-04-03 00:59:22 +00:00
Neil Deakin 0f2a4484d4 Bug 1701173, wait for notificationbars to close more reliably by waiting for the notification node to be removed, r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D110000
2021-03-29 18:58:26 +00:00
Nika Layzell aab577d1a8 Bug 1663757 - Part 5: Add a test for CanonicalBrowsingContext.currentURI, r=annyG
This specifically tests the interesting case of loading an error page.

Differential Revision: https://phabricator.services.mozilla.com/D105560
2021-03-09 15:29:41 +00:00
Jens Stutte 05581ddca4 Bug 1678330: Ensure nested SpinEventLoopUntil(OrShutdown) calls are traceable to the originating source in case of crash. r=nika,extension-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D106839
2021-03-02 22:11:58 +00:00
Neil Deakin f66ba76299 Bug 1691499, add a link field to notification bar buttons to use a link instead, convert learn more buttons in notification bars to links, r=mstriemer,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D105750
2021-02-26 13:43:10 +00:00
Cosmin Sabou 253c39a17a Backed out changeset 36b76c196497 (bug 1691499) for bc failures on browser_decoderDoctor.js. CLOSED TREE 2021-02-25 21:47:25 +02:00
Neil Deakin 86db2fec08 Bug 1691499, add a link field to notification bar buttons to use a link instead, convert learn more buttons in notification bars to links, r=mstriemer,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D105750
2021-02-25 12:00:39 +00:00
Neil Deakin 2c12c67037 Bug 1676943, add telemetry for how often tab or subframe crash ui is presented to the user. In addition, add telemetry to indicate that the user is shown the unsubmitted crashes notification bar, r=mconley
The telemetry is triggered either when the user is shown the tab crashed page, or when the subframe notification is displayed and the crash occurs in an active tab, or when the user switches to a tab that has a subframe crash notification displayed. The telemetry only applies the first time the tab is switched to. The unsubmitted crashes notification bar appears after 10 minutes or so and is shown in the top-most browser window, if one exists, and telemetry applies once when this occurs.

Differential Revision: https://phabricator.services.mozilla.com/D100349
2021-02-19 19:24:17 +00:00
Neil Deakin 9b59ada594 Bug 1689126, add a test to verify that a subframe crash notification does not appear if there is no crash report, r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D105661
2021-02-19 13:40:45 +00:00
Kagami Sascha Rosylight a267a9ea0c Bug 1686194 - Fire pagetitlechanged when initialized with an empty string r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D102054
2021-01-28 17:24:09 +00:00
Csoregi Natalia dcca87cf8b Backed out changeset 4837c1efc868 (bug 1686194) for failures on browser_bug1686194.js. CLOSED TREE 2021-01-28 19:08:14 +02:00
Kagami Sascha Rosylight f3d0bd2669 Bug 1686194 - Fire pagetitlechanged when initialized with an empty string r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D102054
2021-01-28 15:40:33 +00:00
Neil Deakin 7c97e0940d Bug 1644911, add notification bar when a subframe crashes that allows submitting a crash report, r=mconley,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D97346
2021-01-21 08:44:51 +00:00
Neil Deakin 2ae4d6a15b Bug 1644911, add access to the childID from the frame crashed event, r=nika
Differential Revision: https://phabricator.services.mozilla.com/D98206
2021-01-21 08:44:51 +00:00
Alexis Beingessner b1d3b28ef7 Bug 1683730 - disabled tests failing with tsan full shutdown. r=decoder
Seems like all timeouts at various levels.

Differential Revision: https://phabricator.services.mozilla.com/D100269
2021-01-08 20:08:29 +00:00
Kartik Gautam 7ae6aea145 Bug 1684173 - Add newline character at end of files when missing r=sylvestre,geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D100484
2021-01-07 08:53:08 +00:00
Cosmin Sabou 2978aa00a3 Backed out changeset dbed1cdf588f (bug 1684173) for mochitest plain and devtools failures. a=backout DONTBUILD 2020-12-28 00:43:51 +02:00
Kartik Gautam 775cdec032 Bug 1684173 - Add newline character at end of files when missing r=sylvestre
Depends on D100443

Differential Revision: https://phabricator.services.mozilla.com/D100484
2020-12-27 11:43:41 +00:00