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)

ARM
Maemo
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: cjones, Assigned: stechz)

References

Details

Attachments

(1 file, 3 obsolete files)

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.
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.)
Sorry, missed the question: I saw this in a Gtk build, haven't tested Qt.
Assignee: nobody → bugzillaFred
Attached patch patch v.1 (obsolete) — Splinter Review
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 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)
sorry, my bad ;-)
Attachment #439325 - Flags: review?(mark.finkle)
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
Attached patch patch v.2 (obsolete) — Splinter Review
much simpler like that, indeed.
Attachment #439325 - Attachment is obsolete: true
Attachment #439945 - Flags: review?(mark.finkle)
Attachment #439325 - Flags: review?(mark.finkle)
Attachment #439945 - Flags: review?(mark.finkle) → review+
Attached patch patch v.3 (obsolete) — Splinter Review
Fixed bitrot
Attachment #439945 - Attachment is obsolete: true
Attachment #440542 - Flags: review+
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
martijn can you verify this when you test fennectrolysis?
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: bugzillaFred → webapps
Attached patch Add tabindex=-1Splinter Review
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 on attachment 441182 [details] [diff] [review] Add tabindex=-1 wfm
Attachment #441182 - Flags: review?(dougt) → review+
Attachment #441182 - Flags: review?(mark.finkle) → review+
Status: REOPENED → RESOLVED
Closed: 15 years ago15 years ago
Resolution: --- → FIXED
Flags: in-testsuite?
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 → ---
(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?
Wasn't stopping prop and preventing default. Pushed fix.
Status: REOPENED → RESOLVED
Closed: 15 years ago15 years ago
Resolution: --- → FIXED
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.

Attachment

General

Created:
Updated:
Size: