Closed
Bug 1320045
Opened 9 years ago
Closed 9 years ago
New content process not created when clicking a link that opens a new tab/window
Categories
(Core :: DOM: Content Processes, defect)
Core
DOM: Content Processes
Tracking
()
RESOLVED
INVALID
People
(Reporter: dqeswn, Unassigned)
References
Details
(Whiteboard: [e10s-multi:?])
There's this weird discrepancy:
Some links open a new tab/window when clicked normally with left click. If you do so, the new tab will be added to the parent's content process, even though the dom.ipc.processCount is not reached.
However if you middle click that link, a new content process is created for that tab.
Blocks: e10s-multi
When we open a target="_blank" link (the kind where you left click and it opens a new tab), we need to set window.opener of the new window to the old window. That allows these windows to communicate a little bit through JavaScript. Therefore they have to run in the same process.
When the link is opened through middle click, we don't set window.opener and we can use a separate process.
If the link is <a target="_blank" rel="noopener"> (or the related noreferrer), then we're able to use a separate content process, but at this time I think we don't.
(In reply to Bill McCloskey (:billm) from comment #1)
> When we open a target="_blank" link (the kind where you left click and it
> opens a new tab), we need to set window.opener of the new window to the old
> window. That allows these windows to communicate a little bit through
> JavaScript. Therefore they have to run in the same process.
And the JS communication can't be between processes?
> When the link is opened through middle click, we don't set window.opener and
> we can use a separate process.
>
> If the link is <a target="_blank" rel="noopener"> (or the related
> noreferrer), then we're able to use a separate content process, but at this
> time I think we don't.
I see. Is there a bug for this?
Comment 3•9 years ago
|
||
rel=noopener is in FF52. See bug 1222516.
Updated•9 years ago
|
Whiteboard: [e10s-multi:?]
Comment 4•9 years ago
|
||
It looks like this is working as designed. We'll fix rel=noopener another time.
Status: UNCONFIRMED → RESOLVED
Closed: 9 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•