Open
Bug 1208293
Opened 9 years ago
Updated 2 years ago
[e10s] Shift-Ctrl-I launches GTK3 inspector as well as Firefox inspector
Categories
(Core :: DOM: UI Events & Focus Handling, defect)
Core
DOM: UI Events & Focus Handling
Tracking
()
NEW
People
(Reporter: roc, Unassigned)
References
Details
Attachments
(1 file)
40 bytes,
text/x-review-board-request
|
Details |
Fedora 22, gtk3-3.16.6-1.fc22.x86_64.
Steps to reproduce: Press shift-ctrl-I in Firefox.
Expected results: Fx devtools inspector opens.
Actual results: Fx devtools inspector opens *and* Gtk3 Inspector opens.
Reporter | ||
Comment 1•9 years ago
|
||
Bug 1208293. Suppress GTK3 Inspector opening by handling enable-debugging signal. r=karlt
Attachment #8665744 -
Flags: review?(karlt)
Comment 2•9 years ago
|
||
Comment on attachment 8665744 [details]
MozReview Request: Bug 1208293. Suppress GTK3 Inspector opening by handling enable-debugging signal. r=karlt
https://reviewboard.mozilla.org/r/20313/#review18277
I don't think this is a good fix, thanks.
Whether enable-debugging is sent depends on what OnKeyPressEvent() returns.
If the devtools inspector binding is not calling preventDefault on the event
or we don't have nsEventStatus_eConsumeNoDefault for some other reason, then
that should be fixed at its cause.
This workaround would disable the GTK3 inspector for any keybinding
(not just C-S-i) and the inspector may be useful for debugging Gecko.
This bug will actually get fixed by bug 1195002 because OnKeyPressEvent() will
always return TRUE, but now that I see that GtkWindow has its own key bindings,
I'm wondering whether returning TRUE for unhandled events is really a good
idea.
Attachment #8665744 -
Flags: review?(karlt)
Reporter | ||
Comment 3•9 years ago
|
||
enndeakin: should the XUL commands defined in browser-sets.inc via <command>, <broadcaster> and <key> --- such as Tools:DevToolbox --- trigger preventDefault? It seems to me they should, but as far as I can tell, they don't.
Flags: needinfo?(enndeakin)
Comment 4•9 years ago
|
||
The inspector is disabled by default in 3.18 for this reason:
https://git.gnome.org/browse/gtk+/commit/?id=9326f1a57c52cc991b5756d1811155a25fe6623c
Comment 5•9 years ago
|
||
STR:
1. enable e10s.
2. Load page which uses content process. e.g. https://bugzilla.mozilla.org/
3. Click on content page to focus.
4. S-C-i.
When chrome is focused or e10s is disabled, we have nsEventStatus_eConsumeNoDefault as expected. With e10s and content focus, we have nsEventStatus_eIgnore.
Component: Widget: Gtk → Event Handling
Summary: Shift-Ctrl-I launches GTK3 inspector as well as Firefox inspector → [e10s] Shift-Ctrl-I launches GTK3 inspector as well as Firefox inspector
Comment 7•9 years ago
|
||
roc, do you feel this should block e10s?
Reporter | ||
Comment 8•9 years ago
|
||
No. As Karl said, bug 1195002 works around this bug so there isn't a problem on trunk.
tracking-e10s:
+ → ---
Flags: needinfo?(roc)
Updated•9 years ago
|
tracking-e10s:
--- → -
Reporter | ||
Updated•9 years ago
|
Assignee: roc → nobody
Assignee | ||
Updated•6 years ago
|
Component: Event Handling → User events and focus handling
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•