Update DevTools code relying on toolbox.win.parent or toolbox.win.top
Categories
(DevTools :: General, enhancement, P2)
Tracking
(firefox68 fixed)
Tracking | Status | |
---|---|---|
firefox68 | --- | fixed |
People
(Reporter: jdescottes, Assigned: jdescottes)
References
Details
Attachments
(5 files)
In Bug 1539979 we want to use a frame with type=content to load DevTools. After that change we can no longer use win.top or win.parent to reach the Chrome window parent of the toolbox window. Instead we should use the topWindow getter on the toolbox (or rely on the same logic in case the toolbox object is not available)
Assignee | ||
Comment 1•6 years ago
|
||
Some classes in DevTools will not have an easy way to get access to the toolbox.
However they might still want to use the topmost chrome window.
Extract the logic from toolbox.js to a shared helper.
Assignee | ||
Comment 2•6 years ago
|
||
Depends on D27672
Not strictly related to win.top/parent, but those tests would fail if the toolbox is in a content frame.
tooltip-01.js is creating a blank tab for no reason which prevents interacting with the actual test frame.
tooltip-02.js is not properly targeting an iframe to simulate a click
Assignee | ||
Comment 3•6 years ago
|
||
Depends on D27674
Assignee | ||
Comment 4•6 years ago
|
||
Depends on D27675
The target of the iframe load event is the content document when running in frame with type=chrome.
When running in frame with type=content, the target will be the iframe element itself.
Stop relying on event.target so that the Sidebar can work in both cases
Assignee | ||
Comment 5•6 years ago
|
||
Depends on D27677
Update tests directly referencing toolbox.win.top/parent.
Assignee | ||
Comment 6•6 years ago
|
||
Try at https://treeherder.mozilla.org/#/jobs?repo=try&revision=9ab3ba6dc624a606ba139a1df0744515b0712496
I tried to extract all the minor changes that could land regardless of the frame's type, and not related to one of bigger tracks (contextmenus, shortcuts or webextensions).
Assignee | ||
Comment 7•6 years ago
|
||
Assignee | ||
Comment 8•6 years ago
|
||
Will reorder the patch + leave-open to start landing things here.
Assignee | ||
Updated•6 years ago
|
Comment 10•6 years ago
|
||
bugherder |
Comment 11•6 years ago
|
||
Assignee | ||
Updated•6 years ago
|
Comment 12•6 years ago
|
||
bugherder |
Description
•