1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-01 16:02:26 +01:00

Fix some CPOW issues. Everything is still terrible, though.

This commit is contained in:
Kris Maglione
2015-12-19 23:02:57 -08:00
parent bc9eb79fb3
commit 65725c9516
22 changed files with 195 additions and 89 deletions

View File

@@ -621,7 +621,8 @@ var Events = Module("events", {
let win = (elem.ownerDocument || elem).defaultView || elem;
if (!(services.focus.getLastFocusMethod(win) & 0x3000)
if (!Cu.isCrossProcessWrapper(win) &&
!(services.focus.getLastFocusMethod(win) & 0x3000)
&& events.isContentNode(elem)
&& !buffer.focusAllowed(elem)
&& isinstance(elem, [Ci.nsIDOMHTMLInputElement,
@@ -808,7 +809,7 @@ var Events = Module("events", {
// Prevents certain sites from transferring focus to an input box
// before we get a chance to process our key bindings on the
// "keypress" event.
if (!pass)
if (!pass && Cu.getClassName(event, true) !== "Proxy")
event.stopPropagation();
},
keydown: function onKeyDown(event) {