mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-21 09:15:35 +00:00
Bug 1316359
- autocomplete.xml must get userContextId from the attribute of the element instead using contentPrincipal, r=Gijs
This commit is contained in:
parent
18b95f0ad4
commit
73db43e2da
@ -659,8 +659,10 @@
|
||||
|
||||
<handler event="focus" phase="capturing"><![CDATA[
|
||||
this.attachController();
|
||||
if (window.gBrowser) {
|
||||
this.userContextId = window.gBrowser.selectedBrowser.contentPrincipal.originAttributes.userContextId;
|
||||
if (window.gBrowser && window.gBrowser.selectedBrowser.hasAttribute("usercontextid")) {
|
||||
this.userContextId = parseInt(window.gBrowser.selectedBrowser.getAttribute("usercontextid"));
|
||||
} else {
|
||||
this.userContextId = 0;
|
||||
}
|
||||
]]></handler>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user