Remove CreateWindowInDifferentProcess
Categories
(Core :: DOM: Content Processes, enhancement)
Tracking
()
People
(Reporter: nika, Assigned: nika)
References
Details
Attachments
(9 external files, 3 obsolete files)
This message was used with e10s in order to allow noopener windows to load into a different content process than the window they were opened from (send, recv). With Fission, the method was disabled, as process selection could now happen during navigation, making it much less relevant.
Since Fission shipped on Desktop, this method has only been used on Android, in order to distribute load between multi-e10s content processes, and Android has been slowly moving towards using Fission as well.
This bug tracks removing CreateWindowInDifferentProcess completely, reducing maintenance burden, and using the process isolation process selection logic to encourage distributing documents between content processes instead.
| Assignee | ||
Comment 1•4 years ago
|
||
This will allow us to continue to spread load between processes after the other
changes in this bug, both with and without Fission. This is done because
replacing BrowsingContext forces process selection to re-run and potentially
select a different process than the one the initial about:blank page was
rendered in. In the case of these noopener pop-up windows, that process will be
the process which opened the pop-up.
In the next part the non-fission solution to this problem will be removed.
| Assignee | ||
Comment 2•4 years ago
|
||
After the changes in part 1, it no longer brings any benefit to non-fission
callers either, so can be removed completely.
Depends on D161831
| Assignee | ||
Comment 3•4 years ago
|
||
The only uses of these xpcom methods from C++ were to implement
CreateWindowInDifferentProcess, which has been removed in the previous part.
This allows some simplification in the nsIBrowserDOMWindow implementations.
It should also be possible to merge createContentWindow and
createContentWindow[InFrame] however there are some slight potential
behaviour differences right now, and I want to leave that to another bug.
Depends on D161832
Updated•7 months ago
|
Updated•7 months ago
|
Updated•7 months ago
|
| Assignee | ||
Comment 4•7 months ago
|
||
This method is now dead code, as we have shipped fission.autostart on
all platforms since bug 1998306, and CreateWindowInDifferentProcess is
disabled when Fission is disabled.
This is intended to be a fairly straightforward change to remove the
unnecessary IPC call, and does not clean up the implementation to remove
the now-dead codepaths from CommonCreateWindow. That is done in part 2.
| Assignee | ||
Comment 5•7 months ago
|
||
Updated•7 months ago
|
Updated•7 months ago
|
Comment 8•6 months ago
|
||
Backed out for causing wpt failures
Backout link: https://hg.mozilla.org/integration/autoland/rev/f1b4c3b4b5771876b5e596403675effeb3a26a07
Updated•5 months ago
|
Updated•5 months ago
|
| Assignee | ||
Comment 9•5 months ago
|
||
This patch updates the expectations for window-open-popup-behavior.html
on Android to reflect the fact that many of these tests appear to have
only been passing due to Android using CreateWindowInDifferentProcess.
Now that codepath has been removed, the test is now failing more
consistently across platforms.
I also removed the pass cases for linux-nofis, though I don't think we
run that configuration in treeherder anymore off the top of my head.
It appears that we fail this test due to a fundamental mismatch between
our implementation and the WPT. Specifically it appears the test expects
that specifying noopener/noreferrer overrides all other window open
options, and always forces the document to open in a tab, not a popup.
We always respect the specified options even if noopener is set.
Comment 10•5 months ago
|
||
Comment 11•5 months ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/f48d73fcc49a
https://hg.mozilla.org/mozilla-central/rev/ef28f764b4d6
https://hg.mozilla.org/mozilla-central/rev/7c59e1d52cf4
| Assignee | ||
Comment 12•4 months ago
|
||
This method is now dead code, as we have shipped fission.autostart on
all platforms since bug 1998306, and CreateWindowInDifferentProcess is
disabled when Fission is disabled.
This is intended to be a fairly straightforward change to remove the
unnecessary IPC call, and does not clean up the implementation to remove
the now-dead codepaths from CommonCreateWindow. That is done in part 2.
Original Revision: https://phabricator.services.mozilla.com/D297450
Updated•4 months ago
|
| Assignee | ||
Comment 14•4 months ago
|
||
Original Revision: https://phabricator.services.mozilla.com/D297451
Updated•4 months ago
|
Comment 15•4 months ago
|
||
firefox-beta Uplift Approval Request
- User impact if declined/Reason for urgency: Removal of unnecessary IPC surface.
- Code covered by automated testing?: yes
- Fix verified in Nightly?: yes
- Needs manual QE testing?: no
- Steps to reproduce for manual QE testing:
- Risk associated with taking this patch: low
- Explanation of risk level: Removes unnecessary IPC surface which is only used on disabled configurations.
- String changes made/needed?: None
- Is Android affected?: yes
| Assignee | ||
Comment 16•4 months ago
|
||
This patch updates the expectations for window-open-popup-behavior.html
on Android to reflect the fact that many of these tests appear to have
only been passing due to Android using CreateWindowInDifferentProcess.
Now that codepath has been removed, the test is now failing more
consistently across platforms.
I also removed the pass cases for linux-nofis, though I don't think we
run that configuration in treeherder anymore off the top of my head.
It appears that we fail this test due to a fundamental mismatch between
our implementation and the WPT. Specifically it appears the test expects
that specifying noopener/noreferrer overrides all other window open
options, and always forces the document to open in a tab, not a popup.
We always respect the specified options even if noopener is set.
Original Revision: https://phabricator.services.mozilla.com/D308619
| Assignee | ||
Comment 17•4 months ago
|
||
This method is now dead code, as we have shipped fission.autostart on
all platforms since bug 1998306, and CreateWindowInDifferentProcess is
disabled when Fission is disabled.
This is intended to be a fairly straightforward change to remove the
unnecessary IPC call, and does not clean up the implementation to remove
the now-dead codepaths from CommonCreateWindow. That is done in part 2.
Original Revision: https://phabricator.services.mozilla.com/D297450
Updated•4 months ago
|
| Assignee | ||
Comment 18•4 months ago
|
||
Original Revision: https://phabricator.services.mozilla.com/D297451
Updated•4 months ago
|
Comment 19•4 months ago
|
||
firefox-esr140 Uplift Approval Request
- User impact if declined/Reason for urgency: Removal of unnecessary IPC surface.
- Code covered by automated testing?: yes
- Fix verified in Nightly?: yes
- Needs manual QE testing?: no
- Steps to reproduce for manual QE testing:
- Risk associated with taking this patch: low
- Explanation of risk level: Removes unnecessary IPC surface which is only used on disabled configurations.
- String changes made/needed?: None
- Is Android affected?: yes
| Assignee | ||
Comment 20•4 months ago
|
||
This patch updates the expectations for window-open-popup-behavior.html
on Android to reflect the fact that many of these tests appear to have
only been passing due to Android using CreateWindowInDifferentProcess.
Now that codepath has been removed, the test is now failing more
consistently across platforms.
I also removed the pass cases for linux-nofis, though I don't think we
run that configuration in treeherder anymore off the top of my head.
It appears that we fail this test due to a fundamental mismatch between
our implementation and the WPT. Specifically it appears the test expects
that specifying noopener/noreferrer overrides all other window open
options, and always forces the document to open in a tab, not a popup.
We always respect the specified options even if noopener is set.
Original Revision: https://phabricator.services.mozilla.com/D308619
Updated•4 months ago
|
Updated•4 months ago
|
Updated•4 months ago
|
Updated•4 months ago
|
Comment 21•4 months ago
|
||
| uplift | ||
Updated•4 months ago
|
Updated•4 months ago
|
Updated•4 months ago
|
Updated•4 months ago
|
Comment 22•4 months ago
|
||
| uplift | ||
Updated•4 months ago
|
Description
•