mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-20 22:27:31 +09:00
Fix reference to undefined property warnings in toolkit's browser.xml.
This commit is contained in:
parent
06cbc47e9e
commit
5345ccd8b6
1 changed files with 5 additions and 4 deletions
|
|
@ -389,10 +389,11 @@
|
||||||
<method name="getTabBrowser">
|
<method name="getTabBrowser">
|
||||||
<body>
|
<body>
|
||||||
<![CDATA[
|
<![CDATA[
|
||||||
var tabBrowser = this.parentNode;
|
for (let node = this.parentNode; node instanceof Element; node = node.parentNode) {
|
||||||
while (tabBrowser && tabBrowser.localName != "tabbrowser")
|
if (node.localName == "tabbrowser")
|
||||||
tabBrowser = tabBrowser.parentNode;
|
return node;
|
||||||
return tabBrowser;
|
}
|
||||||
|
return null;
|
||||||
]]>
|
]]>
|
||||||
</body>
|
</body>
|
||||||
</method>
|
</method>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue