gecko-dev/dom/ipc/tests
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
..
JSProcessActor Bug 1676632 - Throw more descriptive actor errors. r=smaug,nika 2020-11-16 21:18:49 +00:00
JSWindowActor Bug 1705768 - Update dom/ipc/tests/JSWindowActor/browser_contentWindow.js to pass with Fission+BFCache, r=kmag 2021-04-26 22:25:59 +00:00
.eslintrc.js
blob_verify.sjs
browser_bug1646088.js
browser_bug1686194.js Bug 1686194 - Fire pagetitlechanged when initialized with an empty string r=smaug 2021-01-28 17:24:09 +00:00
browser_cancel_content_js.js
browser_crash_oopiframe.js Bug 1670244: Ensure we never load a document with a codebase principal in the wrong type of webIsolated process r=nika 2021-04-12 18:06:52 +00:00
browser_CrashService_crash.js
browser_domainPolicy.js
browser_memory_distribution_telemetry.js
browser_ProcessPriorityManager.js Bug 1618547 - Support Fission in the process priority manager. r=kmag,gsvelto 2021-05-05 20:29:14 +00:00
browser.ini Bug 1618547 - Support Fission in the process priority manager. r=kmag,gsvelto 2021-05-05 20:29:14 +00:00
chrome.ini
file_broadcast_currenturi_onload.html Bug 1663757 - Part 5: Add a test for CanonicalBrowsingContext.currentURI, r=annyG 2021-03-09 15:29:41 +00:00
file_cancel_content_js.html
file_cross_frame.html Bug 1618547 - Support Fission in the process priority manager. r=kmag,gsvelto 2021-05-05 20:29:14 +00:00
file_disableScript.html
file_domainPolicy_base.html
file_dummy.html Bug 1618547 - Support Fission in the process priority manager. r=kmag,gsvelto 2021-05-05 20:29:14 +00:00
mochitest.ini Bug 1697988: Fix race in test_browsingcontext_currenturi.html. r=mccr8 2021-04-08 00:51:46 +00:00
process_error.xhtml
test_bcg_processes.html
test_blob_sliced_from_child_process.js
test_blob_sliced_from_parent_process.js
test_browsingcontext_currenturi.html Bug 1697988: Fix race in test_browsingcontext_currenturi.html. r=mccr8 2021-04-08 00:51:46 +00:00
test_bug1086684.js Backed out changeset b21f364898eb (bug 1678389) for causing Android gv-unit failures CLOSED TREE 2020-11-22 04:24:23 +02:00
test_child_docshell.js Bug 1649843, remove now unused legacy actor code, r=kmag 2020-11-06 15:46:11 +00:00
test_Preallocated.html
test_process_error_oom.xhtml
test_process_error.xhtml
test_sharedMap.js Bug 1649843, remove now unused legacy actor code, r=kmag 2020-11-06 15:46:11 +00:00
test_temporaryfile_stream.html
test_window_open_discarded_bc.html Bug 1678330: Ensure nested SpinEventLoopUntil(OrShutdown) calls are traceable to the originating source in case of crash. r=nika,extension-reviewers 2021-03-02 22:11:58 +00:00
xpcshell.ini