Devtools should use LoadInfo.browsingContextID.top.id instead of LoadInfo.topOuterWindowID when matching requests in network-observer
Categories
(DevTools :: General, enhancement)
Tracking
(Fission Milestone:M6c, firefox79 fixed)
| Tracking | Status | |
|---|---|---|
| firefox79 | --- | fixed |
People
(Reporter: annyG, Assigned: ochameau)
References
Details
(Whiteboard: dt-fission-m2-mvp)
Attachments
(1 file)
In bug 1642468 I plan to replace usages of outer windowID's in LoadInfo with corresponding browsing context IDs. In bug 1642469 I will add mTopBrowsingContextID field to LoadInfo so that network observer in devtools can be changed to use it instead of mTopOuterWindowID.
| Reporter | ||
Comment 1•6 years ago
•
|
||
Actually, we don't even need mTopBrowsingContextID field for LoadInfo as JS code can use loadInfo.browsingContext.top.id instead of loadInfo.topOuterWindowID here https://searchfox.org/mozilla-central/rev/8ccea36c4fb09412609fb738c722830d7098602b/devtools/server/actors/network-monitor/network-observer.js#126
Updated•6 years ago
|
| Reporter | ||
Comment 2•6 years ago
|
||
so channel.loadInfo && channel.loadInfo.topOuterWindowID == can be replaced with channel.loadInfo && channel.loadInfo.browsingContext && channel.loadInfo.browsingContext.top.id ==
| Reporter | ||
Updated•6 years ago
|
Comment 3•6 years ago
|
||
Alex, this is a Fission task for the DevTools team. The network observer should switch to this alternate API (loadInfo.browsingContext.top.id) now to avoid getting broken when the old API (loadInfo.topOuterWindowID) is removed (in bug 1642468).
| Assignee | ||
Comment 4•6 years ago
|
||
Sorry for the delay, I'll look into this.
This actually looks helpful regarding the ongoing refactorings we are doing for network monitor to support Fission!
| Assignee | ||
Comment 5•6 years ago
|
||
OuterWindow ID is deprecated in a Fission world and we should rather use Browsing Context ID.
The outer window ID will change when navigating to another origin, loaded in a distinct process,
whereas Browsing Context ID will stay the same.
| Assignee | ||
Comment 6•6 years ago
|
||
Updated•6 years ago
|
Comment 8•6 years ago
|
||
| bugherder | ||
Description
•