зеркало из https://github.com/mozilla/gecko-dev.git
Bug 835907 - DNT preferences "Learn more" link shouldn't open in new window. r=dolske
This commit is contained in:
Родитель
48e8e0cdf9
Коммит
f204555645
|
@ -123,20 +123,6 @@ var gPrivacyPane = {
|
|||
document.getElementById("historyPane").selectedIndex = selectedIndex;
|
||||
},
|
||||
|
||||
/**
|
||||
* Open up the DNT "learn more" link.
|
||||
*/
|
||||
openTrackingInfoSite: function PPP_openTrackingInfoSite()
|
||||
{
|
||||
let thisDocEl = document.documentElement,
|
||||
openerDocEl = window.opener && window.opener.document.documentElement,
|
||||
url = "https://www.mozilla.org/dnt";
|
||||
if (thisDocEl.id == "BrowserPreferences" && !thisDocEl.instantApply)
|
||||
openUILinkIn(url, "window");
|
||||
else
|
||||
openUILinkIn(url, "tab");
|
||||
},
|
||||
|
||||
/**
|
||||
* Update the Tracking preferences based on controls.
|
||||
*/
|
||||
|
|
|
@ -86,7 +86,7 @@
|
|||
accesskey="&dntTrackingNopref.accesskey;" />
|
||||
</radiogroup>
|
||||
<label class="text-link" id="doNotTrackInfo"
|
||||
onclick="event.stopPropagation();gPrivacyPane.openTrackingInfoSite();"
|
||||
href="https://www.mozilla.org/dnt"
|
||||
value="&doNotTrackInfo.label;"/>
|
||||
</groupbox>
|
||||
|
||||
|
|
|
@ -126,20 +126,6 @@ var gPrivacyPane = {
|
|||
document.getElementById("historyPane").selectedIndex = selectedIndex;
|
||||
},
|
||||
|
||||
/**
|
||||
* Open up the DNT "learn more" link.
|
||||
*/
|
||||
openTrackingInfoSite: function PPP_openTrackingInfoSite()
|
||||
{
|
||||
let thisDocEl = document.documentElement,
|
||||
openerDocEl = window.opener && window.opener.document.documentElement,
|
||||
url = "https://www.mozilla.org/dnt";
|
||||
if (thisDocEl.id == "BrowserPreferences" && !thisDocEl.instantApply)
|
||||
openUILinkIn(url, "window");
|
||||
else
|
||||
openUILinkIn(url, "tab");
|
||||
},
|
||||
|
||||
/**
|
||||
* Update the Tracking preferences based on controls.
|
||||
*/
|
||||
|
|
|
@ -97,7 +97,7 @@
|
|||
accesskey="&dntTrackingNopref.accesskey;" />
|
||||
</radiogroup>
|
||||
<label class="text-link" id="doNotTrackInfo"
|
||||
onclick="event.stopPropagation();gPrivacyPane.openTrackingInfoSite();"
|
||||
href="https://www.mozilla.org/dnt"
|
||||
value="&doNotTrackInfo.label;"/>
|
||||
|
||||
</groupbox>
|
||||
|
|
Загрузка…
Ссылка в новой задаче