mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-03 22:38:41 +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">
|
||||
<body>
|
||||
<![CDATA[
|
||||
var tabBrowser = this.parentNode;
|
||||
while (tabBrowser && tabBrowser.localName != "tabbrowser")
|
||||
tabBrowser = tabBrowser.parentNode;
|
||||
return tabBrowser;
|
||||
for (let node = this.parentNode; node instanceof Element; node = node.parentNode) {
|
||||
if (node.localName == "tabbrowser")
|
||||
return node;
|
||||
}
|
||||
return null;
|
||||
]]>
|
||||
</body>
|
||||
</method>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue