mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 993329 - Remove inline event handlers in newTab.xul [r=adw]
Add listener from page's init instead of inline. --HG-- extra : rebase_source : 3a635d20bbb2b35caa23c4d7a5823172d066aee9
This commit is contained in:
parent
77f49a161b
commit
7718402af0
@ -21,7 +21,6 @@
|
||||
<xul:description>&newtab.panel.message;</xul:description>
|
||||
<xul:label class="text-link"
|
||||
href="https://support.mozilla.org/kb/how-do-sponsored-tiles-work"
|
||||
onclick="this.parentNode.hidePopup();"
|
||||
value="&newtab.panel.link.text;" />
|
||||
</xul:panel>
|
||||
|
||||
|
@ -25,6 +25,8 @@ let gPage = {
|
||||
|
||||
// Initialize sponsored panel
|
||||
this._sponsoredPanel = document.getElementById("sponsored-panel");
|
||||
let link = this._sponsoredPanel.querySelector(".text-link");
|
||||
link.addEventListener("click", () => this._sponsoredPanel.hidePopup());
|
||||
|
||||
// Check if the new tab feature is enabled.
|
||||
let enabled = gAllPages.enabled;
|
||||
|
Loading…
Reference in New Issue
Block a user