Bug 910729 - Temporary fix for e10s to avoid opening the findbar when entering an apostrophe. r=mikedeboer

This commit is contained in:
Tom Schuster 2013-09-19 12:37:37 -04:00
parent 401f1b3747
commit 6032219518

View File

@ -711,6 +711,13 @@
return false;
let elt = document.commandDispatcher.focusedElement;
// Temporary fix for e10s.
if (elt instanceof XULElement && elt.tagName == "xul:browser" &&
elt.getAttribute("remote")) {
elt = elt.contentDocument.activeElement;
}
if (elt) {
if (elt instanceof HTMLInputElement && elt.mozIsTextField(false))
return false;