mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1248302 - We should not show any decoration for tab with usercontextid=0, r=gijs
This commit is contained in:
parent
963f9156d9
commit
9d292635cb
@ -3980,7 +3980,7 @@ function updateEditUIVisibility()
|
||||
function openNewUserContextTab(event)
|
||||
{
|
||||
openUILinkIn(BROWSER_NEW_TAB_URL, "tab", {
|
||||
userContextId: event.target.getAttribute('usercontextid'),
|
||||
userContextId: parseInt(event.target.getAttribute('usercontextid')),
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -983,7 +983,7 @@ nsContextMenu.prototype = {
|
||||
|
||||
let params = this._openLinkInParameters({
|
||||
allowMixedContent: persistAllowMixedContentInChildTab,
|
||||
userContextId: event.target.getAttribute('usercontextid'),
|
||||
userContextId: parseInt(event.target.getAttribute('usercontextid')),
|
||||
});
|
||||
openLinkIn(this.linkURL, "tab", params);
|
||||
},
|
||||
|
@ -1726,8 +1726,9 @@
|
||||
b.setAttribute("contextmenu", this.getAttribute("contentcontextmenu"));
|
||||
b.setAttribute("tooltip", this.getAttribute("contenttooltip"));
|
||||
|
||||
if (userContextId)
|
||||
if (userContextId) {
|
||||
b.setAttribute("usercontextid", userContextId);
|
||||
}
|
||||
|
||||
if (remote)
|
||||
b.setAttribute("remote", "true");
|
||||
@ -6272,8 +6273,13 @@
|
||||
<parameter name="aUserContextId"/>
|
||||
<body>
|
||||
<![CDATA[
|
||||
if (aUserContextId) {
|
||||
this.linkedBrowser.setAttribute("usercontextid", aUserContextId);
|
||||
this.setAttribute("usercontextid", aUserContextId);
|
||||
} else {
|
||||
this.linkedBrowser.removeAttribute("usercontextid");
|
||||
this.removeAttribute("usercontextid");
|
||||
}
|
||||
]]>
|
||||
</body>
|
||||
</method>
|
||||
|
Loading…
Reference in New Issue
Block a user