diff --git a/browser/base/content/urlbarBindings.xml b/browser/base/content/urlbarBindings.xml index cbdd873c4370..1ad5c224aa1d 100644 --- a/browser/base/content/urlbarBindings.xml +++ b/browser/base/content/urlbarBindings.xml @@ -39,7 +39,7 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/. OwnerDoc())) { aContent->GetAttr(kNameSpaceID_None, nsGkAtoms::inputmode, context.mHTMLInputInputmode); + if (context.mHTMLInputInputmode.EqualsLiteral("mozAwesomebar") && + !nsContentUtils::IsChromeDoc(aContent->OwnerDoc())) { + // mozAwesomebar should be allowed only in chrome + context.mHTMLInputInputmode.Truncate(); + } } aContent->GetAttr(kNameSpaceID_None, nsGkAtoms::moz_action_hint,