When submitting a content blocking issue report, pressing the left arrow (e.g. to fix a typo) exits the report and loses everything that was typed
Categories
(Firefox :: Site Identity, defect, P3)
Tracking
()
People
(Reporter: cconover, Unassigned)
References
Details
(Whiteboard: [anti-tracking])
Attachments
(1 file)
592.26 KB,
image/gif
|
Details |
Updated•6 years ago
|
Updated•6 years ago
|
Comment 1•6 years ago
|
||
Comment 2•6 years ago
|
||
Comment 3•6 years ago
|
||
Updated•6 years ago
|
Comment 4•6 years ago
|
||
Updated•6 years ago
|
Comment 6•6 years ago
|
||
Updated•6 years ago
|
Updated•6 years ago
|
Updated•6 years ago
|
Updated•6 years ago
|
Comment 8•6 years ago
|
||
There is a deeper issue around not being able to move the cursor in text areas, namely bug 187083. I don't expect us to solve this.
We can, however, solve the issue of navigating with the arrow-keys in this panel. The code that is doing this lives here: https://searchfox.org/mozilla-central/rev/b10ae6b7a50d176a813900cbe9dc18c85acd604b/browser/components/customizableui/PanelMultiView.jsm#1566
In this context, this.node
will refer to this element https://searchfox.org/mozilla-central/rev/b10ae6b7a50d176a813900cbe9dc18c85acd604b/browser/components/controlcenter/content/panel.inc.xul#317
It would be great if we could add an attribute to that element specifying that we don't want to enable navigation via back and forward keys, such as backforwardkeynavigation=false
.
Then the above mentioned code would need to check that attribute and stop navigation.
Updated•6 years ago
|
Comment 9•6 years ago
|
||
Having added the backforwardkeynavigation="false"
on line 320 of the panel.inc.xul, is the best way to check the attribute by doing this:
case "ArrowLeft":
case "ArrowRight": {
stop();
if (this.node.getAttribute("backforwardkeynavigation") &&
((!this.window.RTL_UI && keyCode == "ArrowLeft") ||
(this.window.RTL_UI && keyCode == "ArrowRight"))) {
this.node.panelMultiView.goBack();
break;
}
// If the current button is _not_ one that points to a subview, pressing
// the arrow key shouldn't do anything.
let button = this.selectedElement;
if (!button || !button.classList.contains("subviewbutton-nav")) {
break;
}
// Fall-through...
}
Or should I be checking it a different way/somewhere else?
Comment 10•6 years ago
|
||
Hey, I'm really sorry, it turns out that I think we will end up fixing this issue in bug 1522092. So there's probably no patch required here. It doesn't happen very often that two bugs collide, and I apologize for putting you onto this. Be sure that your effort was noted.
Can I just re-route you to work on bug 1501955 instead?
Thank you!
Comment 11•6 years ago
|
||
Hey, no problem at all! It was interesting to take a look at the bug anyway.
I'll start working on the other bug instead.
Thanks!
Comment 12•6 years ago
|
||
Bug 1522092 did fix this, but it also caused other problems. I'm going to address this properly in bug 1477673.
Comment 13•6 years ago
|
||
Let's keep this open for tracking then?
Comment 14•6 years ago
|
||
Seems to be fixed after bug 1477673 has landed.
Description
•