Bug 835907 - DNT preferences "Learn more" link shouldn't open in new window. r=dolske

This commit is contained in:
Dão Gottwald 2013-02-05 10:35:21 +01:00
Родитель 48e8e0cdf9
Коммит f204555645
4 изменённых файлов: 3 добавлений и 31 удалений

Просмотреть файл

@ -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>