Closed
Bug 555074
Opened 15 years ago
Closed 15 years ago
Key events in the URL bar are forwarded from the chrome process to the content process
Categories
(Firefox for Android Graveyard :: General, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: cjones, Assigned: stechz)
References
Details
Attachments
(1 file, 3 obsolete files)
3.78 KB,
patch
|
mfinkle
:
review+
dougt
:
review+
|
Details | Diff | Splinter Review |
To see this, run fennectrolysis with MOZ_IPC_MESSAGE_LOG=1 and type in the URL bar.
stechz tells me that this is not intended.
Comment 1•15 years ago
|
||
I don't have a E10s-Fennec build so can't test.
Sounds like a bug in Fennec code.
Btw, is this a Qt or Gtk build? They have different focus handling,
and I have no idea how it works in Qt.
(key events go in general to the focused element.)
Reporter | ||
Comment 2•15 years ago
|
||
Sorry, missed the question: I saw this in a Gtk build, haven't tested Qt.
Updated•15 years ago
|
Assignee: nobody → bugzillaFred
Comment 3•15 years ago
|
||
I investigated this. The problem clearly lives in Fennec InputHandler.
No matter where the key event came from, the keyModule would dispatch to our custom Key Handler (crossProcess key send...).
This quick fix seems to solve the problem.
Attachment #439325 -
Flags: review?(Olli.Pettay)
Comment 4•15 years ago
|
||
Comment on attachment 439325 [details] [diff] [review]
patch v.1
Sorry, I know next to nothing about Fennec's code.
Attachment #439325 -
Flags: review?(Olli.Pettay)
Comment 5•15 years ago
|
||
sorry, my bad ;-)
Updated•15 years ago
|
Attachment #439325 -
Flags: review?(mark.finkle)
Comment 6•15 years ago
|
||
Comment on attachment 439325 [details] [diff] [review]
patch v.1
>diff -r b798302abc67 chrome/content/InputHandler.js
> handleEvent: function handleEvent(evInfo) {
> if (evInfo.event.type == "keydown" || evInfo.event.type == "keyup" || evInfo.event.type == "keypress") {
>- this._keyer = this._browserViewContainer.customKeySender;
>- if (this._keyer) {
>- this._keyer._dispatchKeyEvent(evInfo.event);
>+ if (evInfo.event.target == this._browserViewContainer) {
>+ this._keyer = this._browserViewContainer.customKeySender;
>+ if (this._keyer) {
>+ this._keyer._dispatchKeyEvent(evInfo.event);
>+ }
instead of:
if (evInfo.event.target == this._browserViewContainer)
what about just moving the keypress, keydown, and keyup events back under browserViewContainer
this.listenFor(browserViewContainer, "keyup");
this.listenFor(browserViewContainer, "keydown");
this.listenFor(browserViewContainer, "keypress");
Here http://hg.mozilla.org/users/pavlov_mozilla.com/mobile-e10s/file/aa1050b285bc/chrome/content/InputHandler.js#l142
Comment 7•15 years ago
|
||
much simpler like that, indeed.
Attachment #439325 -
Attachment is obsolete: true
Attachment #439945 -
Flags: review?(mark.finkle)
Attachment #439325 -
Flags: review?(mark.finkle)
Updated•15 years ago
|
Attachment #439945 -
Flags: review?(mark.finkle) → review+
Comment 8•15 years ago
|
||
Fixed bitrot
Attachment #439945 -
Attachment is obsolete: true
Attachment #440542 -
Flags: review+
Comment 9•15 years ago
|
||
Seems I had commiter's right to http://hg.mozilla.org/users/pavlov_mozilla.com/mobile-e10s after all.
Pushed http://hg.mozilla.org/users/pavlov_mozilla.com/mobile-e10s/rev/e1d062de26a7
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Comment 10•15 years ago
|
||
martijn can you verify this when you test fennectrolysis?
Comment 11•15 years ago
|
||
http://hg.mozilla.org/users/pavlov_mozilla.com/mobile-e10s/rev/9040a85af814
this regressed fennec -- i could not get any key events to content. reopening.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Assignee | ||
Updated•15 years ago
|
Assignee: bugzillaFred → webapps
Assignee | ||
Comment 12•15 years ago
|
||
The last patch had the right idea I think: use the event model to handle who gets what key events instead of doing it ourselves. The only problem was that tile-container can't receive focus!
tabindex="-1" fixes this problem.
Attachment #440542 -
Attachment is obsolete: true
Attachment #441182 -
Flags: review?(mark.finkle)
Attachment #441182 -
Flags: review?(dougt)
Comment 13•15 years ago
|
||
Comment on attachment 441182 [details] [diff] [review]
Add tabindex=-1
wfm
Attachment #441182 -
Flags: review?(dougt) → review+
Updated•15 years ago
|
Attachment #441182 -
Flags: review?(mark.finkle) → review+
Comment 14•15 years ago
|
||
Updated•15 years ago
|
Status: REOPENED → RESOLVED
Closed: 15 years ago → 15 years ago
Resolution: --- → FIXED
Updated•15 years ago
|
Flags: in-testsuite?
Comment 15•15 years ago
|
||
so... not completely wfm....
i am noticing now that when i press the delete key, we move back in session history.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Comment 16•15 years ago
|
||
(In reply to comment #15)
> so... not completely wfm....
>
> i am noticing now that when i press the delete key, we move back in session
> history.
What element has focus? The URLBar? or content?
Assignee | ||
Comment 17•15 years ago
|
||
Wasn't stopping prop and preventing default. Pushed fix.
Status: REOPENED → RESOLVED
Closed: 15 years ago → 15 years ago
Resolution: --- → FIXED
Updated•15 years ago
|
Component: Linux/Maemo → General
OS: Linux → Linux (embedded)
QA Contact: maemo-linux → general
Hardware: x86 → ARM
You need to log in
before you can comment on or make changes to this bug.
Description
•