зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1374741 - Within toolkit/ make openUILinkIn() provide the correct triggeringPrincipal. r=Gijs
MozReview-Commit-ID: AX2S3bEKl1w --HG-- extra : rebase_source : f8ab09abbf65224e7253f72c5db36e774c4daffc
This commit is contained in:
Родитель
bbb3623c41
Коммит
6d747cc6cb
|
@ -668,7 +668,7 @@ function EditCellInSelectedRow(columnName) {
|
|||
function LaunchSiteUrl() {
|
||||
let row = signonsTree.currentIndex;
|
||||
let url = signonsTreeView.getCellText(row, {id: "siteCol"});
|
||||
window.openUILinkIn(url, "tab");
|
||||
window.openWebLinkIn(url, "tab");
|
||||
}
|
||||
|
||||
function UpdateContextMenu() {
|
||||
|
@ -689,7 +689,7 @@ function UpdateContextMenu() {
|
|||
let selectedRow = signonsTree.currentIndex;
|
||||
|
||||
// Don't display "Launch Site URL" if we're not a browser.
|
||||
if (window.openUILinkIn) {
|
||||
if (window.openWebLinkIn) {
|
||||
menuItems.get("context-launchsiteurl").removeAttribute("disabled");
|
||||
} else {
|
||||
menuItems.get("context-launchsiteurl").setAttribute("disabled", "true");
|
||||
|
|
|
@ -74,7 +74,7 @@ var gViewSourceUtils = {
|
|||
utils.viewSourceInBrowser(aArgs);
|
||||
}, { once: true });
|
||||
});
|
||||
window.top.openUILinkIn("about:blank", "current");
|
||||
window.top.openWebLinkIn("about:blank", "current");
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
|
@ -1248,7 +1248,7 @@
|
|||
<handlers>
|
||||
<handler event="click" button="0"><![CDATA[
|
||||
let baseURL = Services.urlFormatter.formatURLPref("app.support.baseURL");
|
||||
window.openUILinkIn(baseURL + "insecure-password", "tab", {
|
||||
window.openTrustedLinkIn(baseURL + "insecure-password", "tab", {
|
||||
relatedToCurrent: true,
|
||||
});
|
||||
]]></handler>
|
||||
|
|
Загрузка…
Ссылка в новой задаче