can't zoom in toolbox moved to tab opened with window.open
Categories
(DevTools :: Framework, defect, P3)
Tracking
(firefox-esr91 unaffected, firefox96 unaffected, firefox97 unaffected, firefox98 wontfix, firefox99 wontfix, firefox100 wontfix)
Tracking | Status | |
---|---|---|
firefox-esr91 | --- | unaffected |
firefox96 | --- | unaffected |
firefox97 | --- | unaffected |
firefox98 | --- | wontfix |
firefox99 | --- | wontfix |
firefox100 | --- | wontfix |
People
(Reporter: nchevobbe, Unassigned)
References
(Blocks 1 open bug, Regression)
Details
(Keywords: regression)
Attachments
(1 obsolete file)
Steps to reproduce
- With
devtools.popups.debug
set totrue
, open devtools on this tab - In the console, execute
window.open("about:blank")
- This should open a new tab with devtools opened
- Make sure the focus is on the toolbox (e.g. clicking in the console input)
- Hit Ctrl (Cmd on OSX) and + to zoom in (or use Ctrl/Cmd + mousewheel)
Expected results
The toolbox gets zoomed
Actual results
The content page is zoomed (see the zoom indicator in the url bar), even if the focus is on the toolbox
Updated•3 years ago
|
Comment 1•3 years ago
|
||
Set release status flags based on info from the regressing bug 1569859
Updated•3 years ago
|
Comment 2•3 years ago
|
||
Nicolas checked that opening a tab with window open and then opening DevTools doesn't reproduce the issue. So this is really related to moving the toolbox.
Updated•3 years ago
|
Comment 3•3 years ago
|
||
Alex, could this be related to the "magical" swapFrameLoaders API?
(used in https://phabricator.services.mozilla.com/D131802)
Honza
Comment 4•3 years ago
|
||
I don't think it relaces to swapFrameLoader
. If so, it would most likely also fail when moving between window and bottom hosts, whereas it does not.
It might relate to this code:
https://searchfox.org/mozilla-central/rev/e66593593f3b356901011ea0fcdf9979728e9ae8/devtools/client/framework/toolbox.js#1235-1238
// Add zoom-related shortcuts.
if (!this._hostOptions || this._hostOptions.zoom === true) {
ZoomKeys.register(this.win, this.shortcuts);
}
Or this other one:
https://searchfox.org/mozilla-central/rev/e66593593f3b356901011ea0fcdf9979728e9ae8/devtools/client/shared/zoom-keys.js#28
const bc = BrowsingContext.getFromWindow(window);
Or yet this other one:
https://searchfox.org/mozilla-central/rev/e66593593f3b356901011ea0fcdf9979728e9ae8/devtools/client/framework/toolbox-host-manager.js#135-155
(this last one would rather cause glicthes rather than total miss of the feature)
Comment 5•3 years ago
|
||
This report represents an issue with new feature that is still being hidden behind a pref, so not "real" regression.
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Updated•11 months ago
|
Description
•