mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-26 04:09:50 +00:00
Bug 1527495 - migrate text-link binding to CE, r=bgrins
Differential Revision: https://phabricator.services.mozilla.com/D19595 --HG-- rename : toolkit/content/widgets/text.xml => toolkit/content/widgets/text.js
This commit is contained in:
parent
323f397330
commit
1649231cef
@ -27,14 +27,14 @@
|
||||
aStartIndex, aEndIndex, aValid)
|
||||
{
|
||||
testRole(aID, aRole);
|
||||
is(aAcc.anchorCount, aAnchorCount, "Wrong number of anchors for ID "
|
||||
is(aAcc.anchorCount, aAnchorCount, "Wrong number of anchors for ID "
|
||||
+ aID + "!");
|
||||
is(aAcc.getAnchor(0).name, aAnchorName, "Wrong name for ID " + aID + "!");
|
||||
is(aAcc.getURI(0).spec, aURI, "URI wrong for ID " + aID + "!");
|
||||
is(aAcc.startIndex, aStartIndex, "Wrong startIndex value for ID " + aID
|
||||
is(aAcc.startIndex, aStartIndex, "Wrong startIndex value for ID " + aID
|
||||
+ "!");
|
||||
is(aAcc.endIndex, aEndIndex, "Wrong endIndex value for ID " + aID + "!");
|
||||
is(aAcc.valid, aValid, "Wrong valid state for ID " + aID + "!");
|
||||
is(aAcc.valid, aValid, "Wrong valid state for ID " + aID + "!");
|
||||
}
|
||||
|
||||
var gQueue = null;
|
||||
@ -89,9 +89,9 @@
|
||||
</pre>
|
||||
</body>
|
||||
|
||||
<label id="linkedLabel" class="text-link" href="http://www.mozilla.org/">
|
||||
<label id="linkedLabel" href="http://www.mozilla.org/" is="text-link">
|
||||
Mozilla Foundation home</label>
|
||||
<label id="linkLabelWithValue" value="Mozilla Foundation" class="text-link"
|
||||
<label id="linkLabelWithValue" value="Mozilla Foundation" is="text-link"
|
||||
href="http://www.mozilla.org/" />
|
||||
<label id="normalLabel" value="This label should not be a link" />
|
||||
</window>
|
||||
|
@ -54,7 +54,7 @@
|
||||
</label>
|
||||
<hbox align="baseline">
|
||||
<label id="version"/>
|
||||
<label id="releasenotes" class="text-link" hidden="true" data-l10n-id="releaseNotes-link"></label>
|
||||
<label id="releasenotes" is="text-link" hidden="true" data-l10n-id="releaseNotes-link"></label>
|
||||
</hbox>
|
||||
|
||||
<label id="distribution" class="text-blurb"/>
|
||||
@ -95,7 +95,7 @@
|
||||
<label data-l10n-id="update-applying"></label>
|
||||
</hbox>
|
||||
<hbox id="downloadFailed" align="center" data-l10n-id="update-failed">
|
||||
<label id="failedLink" class="text-link" data-l10n-name="failed-link"></label>
|
||||
<label id="failedLink" is="text-link" data-l10n-name="failed-link"></label>
|
||||
</hbox>
|
||||
<hbox id="policyDisabled" align="center">
|
||||
<label data-l10n-id="update-adminDisabled"></label>
|
||||
@ -107,10 +107,10 @@
|
||||
<label data-l10n-id="update-otherInstanceHandlingUpdates"></label>
|
||||
</hbox>
|
||||
<hbox id="manualUpdate" align="center" data-l10n-id="update-manual">
|
||||
<label id="manualLink" class="text-link" data-l10n-name="manual-link"/>
|
||||
<label id="manualLink" is="text-link" data-l10n-name="manual-link"/>
|
||||
</hbox>
|
||||
<hbox id="unsupportedSystem" align="center" data-l10n-id="update-unsupported">
|
||||
<label id="unsupportedLink" class="text-link" data-l10n-name="unsupported-link"></label>
|
||||
<label id="unsupportedLink" is="text-link" data-l10n-name="unsupported-link"></label>
|
||||
</hbox>
|
||||
<hbox id="restarting" align="center">
|
||||
<image class="update-throbber"/>
|
||||
@ -128,26 +128,26 @@
|
||||
<vbox id="experimental" hidden="true">
|
||||
<description class="text-blurb" id="warningDesc" data-l10n-id="warningDesc-version"></description>
|
||||
<description class="text-blurb" id="communityExperimentalDesc" data-l10n-id="community-exp">
|
||||
<label class="text-link" href="http://www.mozilla.org/" data-l10n-name="community-exp-mozillaLink"></label>
|
||||
<label class="text-link" useoriginprincipal="true" href="about:credits" data-l10n-name="community-exp-creditsLink"></label>
|
||||
<label is="text-link" href="http://www.mozilla.org/" data-l10n-name="community-exp-mozillaLink"></label>
|
||||
<label is="text-link" useoriginprincipal="true" href="about:credits" data-l10n-name="community-exp-creditsLink"></label>
|
||||
</description>
|
||||
</vbox>
|
||||
<description class="text-blurb" id="communityDesc" data-l10n-id="community-2">
|
||||
<label class="text-link" href="http://www.mozilla.org/" data-l10n-name="community-mozillaLink"></label>
|
||||
<label class="text-link" useoriginprincipal="true" href="about:credits" data-l10n-name="community-creditsLink"></label>
|
||||
<label is="text-link" href="http://www.mozilla.org/" data-l10n-name="community-mozillaLink"></label>
|
||||
<label is="text-link" useoriginprincipal="true" href="about:credits" data-l10n-name="community-creditsLink"></label>
|
||||
</description>
|
||||
<description class="text-blurb" id="contributeDesc" data-l10n-id="helpus">
|
||||
<label class="text-link" href="https://donate.mozilla.org/?utm_source=firefox&utm_medium=referral&utm_campaign=firefox_about&utm_content=firefox_about" data-l10n-name="helpus-donateLink"></label>
|
||||
<label class="text-link" href="http://www.mozilla.org/contribute/" data-l10n-name="helpus-getInvolvedLink"></label>
|
||||
<label is="text-link" href="https://donate.mozilla.org/?utm_source=firefox&utm_medium=referral&utm_campaign=firefox_about&utm_content=firefox_about" data-l10n-name="helpus-donateLink"></label>
|
||||
<label is="text-link" href="http://www.mozilla.org/contribute/" data-l10n-name="helpus-getInvolvedLink"></label>
|
||||
</description>
|
||||
</vbox>
|
||||
</vbox>
|
||||
</hbox>
|
||||
<vbox id="bottomBox">
|
||||
<hbox pack="center">
|
||||
<label class="text-link bottom-link" useoriginprincipal="true" href="about:license" data-l10n-id="bottomLinks-license"></label>
|
||||
<label class="text-link bottom-link" useoriginprincipal="true" href="about:rights" data-l10n-id="bottomLinks-rights"></label>
|
||||
<label class="text-link bottom-link" href="https://www.mozilla.org/privacy/" data-l10n-id="bottomLinks-privacy"></label>
|
||||
<label is="text-link" class="bottom-link" useoriginprincipal="true" href="about:license" data-l10n-id="bottomLinks-license"></label>
|
||||
<label is="text-link" class="bottom-link" useoriginprincipal="true" href="about:rights" data-l10n-id="bottomLinks-rights"></label>
|
||||
<label is="text-link" class="bottom-link" href="https://www.mozilla.org/privacy/" data-l10n-id="bottomLinks-privacy"></label>
|
||||
</hbox>
|
||||
<description id="trademark" data-l10n-id="trademarkInfo"></description>
|
||||
</vbox>
|
||||
|
@ -38,8 +38,7 @@ var gEMEHandler = {
|
||||
let mainMessage = gNavigatorBundle.getString("emeNotifications.drmContentDisabled.message");
|
||||
let text = gNavigatorBundle.getString("emeNotifications.drmContentDisabled.learnMoreLabel");
|
||||
let baseURL = Services.urlFormatter.formatURLPref("app.support.baseURL");
|
||||
let link = document.createXULElement("label");
|
||||
link.className = "text-link";
|
||||
let link = document.createXULElement("label", {is: "text-link"});
|
||||
link.setAttribute("href", baseURL + "drm-content");
|
||||
link.textContent = text;
|
||||
return BrowserUtils.getLocalizedFragment(document, mainMessage, link);
|
||||
|
@ -474,8 +474,7 @@ var gPluginHandler = {
|
||||
iconURL, priority, buttons);
|
||||
|
||||
// Add the "learn more" link.
|
||||
let link = notification.ownerDocument.createXULElement("label");
|
||||
link.className = "text-link";
|
||||
let link = notification.ownerDocument.createXULElement("label", {is: "text-link"});
|
||||
link.setAttribute("value", gNavigatorBundle.getString("crashedpluginsMessage.learnMore"));
|
||||
let crashurl = formatURL("app.support.baseURL", true);
|
||||
crashurl += "plugin-crashed-notificationbar";
|
||||
|
@ -1189,9 +1189,9 @@ var gIdentityHandler = {
|
||||
let icon = document.createXULElement("image");
|
||||
icon.setAttribute("class", "popup-subitem identity-popup-permission-icon");
|
||||
|
||||
let text = document.createXULElement("label");
|
||||
let text = document.createXULElement("label", {is: "text-link"});
|
||||
text.setAttribute("flex", "1");
|
||||
text.setAttribute("class", "identity-popup-permission-label text-link");
|
||||
text.setAttribute("class", "identity-popup-permission-label");
|
||||
|
||||
let popupCount = gBrowser.selectedBrowser.blockedPopups.length;
|
||||
let messageBase = gNavigatorBundle.getString("popupShowBlockedPopupsIndicatorText");
|
||||
|
@ -84,7 +84,7 @@
|
||||
<popupnotificationheader id="cfr-notification-header">
|
||||
<stack id="cfr-notification-header-stack">
|
||||
<description id="cfr-notification-header-label"></description>
|
||||
<label id="cfr-notification-header-link" class="text-link">
|
||||
<label id="cfr-notification-header-link" is="text-link">
|
||||
<xul:image id="cfr-notification-header-image"/>
|
||||
</label>
|
||||
</stack>
|
||||
@ -99,7 +99,7 @@
|
||||
<hbox id="cfr-notification-footer-empty-stars"/>
|
||||
<label id="cfr-notification-footer-users"/>
|
||||
<spacer id="cfr-notification-footer-spacer" hidden="true"/>
|
||||
<label id="cfr-notification-footer-learn-more-link" class="text-link"/>
|
||||
<label id="cfr-notification-footer-learn-more-link" is="text-link"/>
|
||||
</hbox>
|
||||
</popupnotificationfooter>
|
||||
</popupnotification>
|
||||
|
@ -5,5 +5,5 @@
|
||||
|
||||
<page xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
||||
xmlns:html="http://www.w3.org/1999/xhtml">
|
||||
<label id="test-xul-text-link-label" class="text-link" value="XUL text-link label" href="https://www.mozilla.com"/>
|
||||
<label id="test-xul-text-link-label" is="text-link" value="XUL text-link label" href="https://www.mozilla.com"/>
|
||||
</page>
|
||||
|
@ -1872,7 +1872,7 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
</xul:description>
|
||||
</xul:hbox>
|
||||
<xul:label id="search-suggestions-change-settings"
|
||||
class="text-link"
|
||||
is="text-link"
|
||||
role="link"
|
||||
#ifdef XP_WIN
|
||||
value="&urlbar.searchSuggestionsNotification.changeSettingsWin;"
|
||||
|
@ -122,7 +122,7 @@
|
||||
oncommand="ContentBlocking.enableForCurrentPage(); gIdentityHandler.recordClick('block');" />
|
||||
<label id="identity-popup-content-blocking-report-breakage"
|
||||
onclick="ContentBlocking.showReportBreakageSubview(); gIdentityHandler.recordClick('report_breakage');"
|
||||
class="text-link subviewkeynav"
|
||||
is="text-link" class="subviewkeynav"
|
||||
flex="1">&contentBlocking.openBreakageReportView2.label;</label>
|
||||
</vbox>
|
||||
</hbox>
|
||||
@ -196,7 +196,7 @@
|
||||
and-when-loginforms="secure">&identity.description.insecure;</description>
|
||||
|
||||
<!-- Insecure login forms -->
|
||||
<description when-loginforms="insecure">&identity.description.insecureLoginForms; <label id="identity-popup-insecure-login-forms-learn-more" class="text-link plain" value="&identity.learnMore;"/></description>
|
||||
<description when-loginforms="insecure">&identity.description.insecureLoginForms; <label id="identity-popup-insecure-login-forms-learn-more" is="text-link" class="plain" value="&identity.learnMore;"/></description>
|
||||
|
||||
<!-- Weak Cipher -->
|
||||
<description when-ciphers="weak">&identity.description.weakCipher;</description>
|
||||
@ -205,27 +205,27 @@
|
||||
|
||||
<!-- Active Mixed Content Blocked -->
|
||||
<description class="identity-popup-warning-gray"
|
||||
when-mixedcontent="active-blocked">&identity.description.activeBlocked; <label class="identity-popup-mcb-learn-more text-link plain" value="&identity.learnMore;"/></description>
|
||||
when-mixedcontent="active-blocked">&identity.description.activeBlocked; <label is="text-link" class="identity-popup-mcb-learn-more plain" value="&identity.learnMore;"/></description>
|
||||
|
||||
<!-- Passive Mixed Content Loaded -->
|
||||
<description when-mixedcontent="passive-loaded">&identity.description.passiveLoaded;</description>
|
||||
<description class="identity-popup-warning-yellow"
|
||||
when-mixedcontent="passive-loaded">&identity.description.passiveLoaded2; <label class="identity-popup-mcb-learn-more text-link plain" value="&identity.learnMore;"/></description>
|
||||
when-mixedcontent="passive-loaded">&identity.description.passiveLoaded2; <label is="text-link" class="identity-popup-mcb-learn-more plain" value="&identity.learnMore;"/></description>
|
||||
|
||||
<!-- Passive Mixed Content Loaded, Active Mixed Content Blocked -->
|
||||
<description when-mixedcontent="passive-loaded active-blocked">&identity.description.passiveLoaded;</description>
|
||||
<description when-mixedcontent="passive-loaded active-blocked"
|
||||
class="identity-popup-warning-yellow">&identity.description.passiveLoaded3; <label class="identity-popup-mcb-learn-more text-link plain" value="&identity.learnMore;"/></description>
|
||||
class="identity-popup-warning-yellow">&identity.description.passiveLoaded3; <label is="text-link" class="identity-popup-mcb-learn-more plain" value="&identity.learnMore;"/></description>
|
||||
|
||||
<!-- Active Mixed Content Blocking Disabled -->
|
||||
<description when-mixedcontent="active-loaded"
|
||||
and-when-loginforms="secure">&identity.description.activeLoaded;</description>
|
||||
<description when-mixedcontent="active-loaded"
|
||||
and-when-loginforms="secure">&identity.description.activeLoaded2; <label class="identity-popup-mcb-learn-more text-link plain" value="&identity.learnMore;"/></description>
|
||||
and-when-loginforms="secure">&identity.description.activeLoaded2; <label is="text-link" class="identity-popup-mcb-learn-more plain" value="&identity.learnMore;"/></description>
|
||||
<!-- Show only the first message when there are insecure login forms,
|
||||
and make sure the Learn More link is included. -->
|
||||
<description when-mixedcontent="active-loaded"
|
||||
and-when-loginforms="insecure">&identity.description.activeLoaded; <label class="identity-popup-mcb-learn-more text-link plain" value="&identity.learnMore;"/></description>
|
||||
and-when-loginforms="insecure">&identity.description.activeLoaded; <label is="text-link" class="identity-popup-mcb-learn-more plain" value="&identity.learnMore;"/></description>
|
||||
|
||||
<!-- Buttons to enable/disable mixed content blocking. -->
|
||||
<button when-mixedcontent="active-blocked"
|
||||
@ -320,7 +320,7 @@
|
||||
<vbox id="identity-popup-breakageReportView-heading">
|
||||
<description>&contentBlocking.breakageReportView2.description;</description>
|
||||
<label id="identity-popup-breakageReportView-learn-more"
|
||||
class="text-link">&contentBlocking.breakageReportView.learnMore;</label>
|
||||
is="text-link">&contentBlocking.breakageReportView.learnMore;</label>
|
||||
</vbox>
|
||||
<vbox id="identity-popup-breakageReportView-body" class="panel-view-body-unscrollable">
|
||||
<vbox class="identity-popup-breakageReportView-collection-section">
|
||||
|
@ -109,7 +109,7 @@
|
||||
hidden="true">
|
||||
<popupnotificationcontent id="update-available-notification-content" orient="vertical">
|
||||
<description id="update-available-description">&updateAvailable.message;</description>
|
||||
<label id="update-available-whats-new" class="text-link" value="&updateAvailable.whatsnew.label;" />
|
||||
<label id="update-available-whats-new" is="text-link" value="&updateAvailable.whatsnew.label;" />
|
||||
</popupnotificationcontent>
|
||||
</popupnotification>
|
||||
|
||||
@ -127,7 +127,7 @@
|
||||
hidden="true">
|
||||
<popupnotificationcontent id="update-manual-notification-content" orient="vertical">
|
||||
<description id="update-manual-description">&updateManual.message;</description>
|
||||
<label id="update-manual-whats-new" class="text-link" value="&updateManual.whatsnew.label;" />
|
||||
<label id="update-manual-whats-new" is="text-link" value="&updateManual.whatsnew.label;" />
|
||||
</popupnotificationcontent>
|
||||
</popupnotification>
|
||||
|
||||
|
@ -303,8 +303,8 @@ class ExtensionControlledPopup {
|
||||
BrowserUtils.getLocalizedFragment(doc, message, addonDetails));
|
||||
}
|
||||
|
||||
let link = doc.createXULElement("label");
|
||||
link.setAttribute("class", "learnMore text-link");
|
||||
let link = doc.createXULElement("label", {is: "text-link"});
|
||||
link.setAttribute("class", "learnMore");
|
||||
link.href = Services.urlFormatter.formatURLPref("app.support.baseURL") + this.learnMoreLink;
|
||||
link.textContent = strBundle.GetStringFromName(this.learnMoreMessageId);
|
||||
description.appendChild(link);
|
||||
|
@ -135,8 +135,8 @@ this.AboutPreferences = class AboutPreferences {
|
||||
*/
|
||||
renderPreferences({document, Preferences, gHomePane}, strings, prefStructure, discoveryStreamEnabled) {
|
||||
// Helper to create a new element and append it
|
||||
const createAppend = (tag, parent) => parent.appendChild(
|
||||
document.createXULElement(tag));
|
||||
const createAppend = (tag, parent, options) => parent.appendChild(
|
||||
document.createXULElement(tag, options));
|
||||
|
||||
// Helper to get strings and format with values if necessary
|
||||
const formatString = id => {
|
||||
@ -220,9 +220,8 @@ this.AboutPreferences = class AboutPreferences {
|
||||
sponsoredHbox.appendChild(checkbox);
|
||||
checkbox.classList.add("tail-with-learn-more");
|
||||
|
||||
const link = createAppend("label", sponsoredHbox);
|
||||
const link = createAppend("label", sponsoredHbox, {is: "text-link"});
|
||||
link.classList.add("learn-sponsored");
|
||||
link.classList.add("text-link");
|
||||
link.setAttribute("href", sectionData.learnMore.link.href);
|
||||
link.textContent = formatString(sectionData.learnMore.link.id);
|
||||
}
|
||||
|
@ -10,7 +10,7 @@
|
||||
<hbox hidden="true"
|
||||
class="container-header-links"
|
||||
data-category="paneContainers">
|
||||
<label class="text-link" id="backContainersLink" data-l10n-id="containers-back-link"/>
|
||||
<label is="text-link" id="backContainersLink" data-l10n-id="containers-back-link"/>
|
||||
</hbox>
|
||||
|
||||
<hbox id="header-containers"
|
||||
|
@ -106,7 +106,7 @@
|
||||
data-l10n-id="browser-containers-enabled"
|
||||
preference="privacy.userContext.enabled"
|
||||
onsyncfrompreference="return gMainPane.readBrowserContainersCheckbox();"/>
|
||||
<label id="browserContainersLearnMore" class="learnMore text-link" data-l10n-id="browser-containers-learn-more"/>
|
||||
<label id="browserContainersLearnMore" is="text-link" class="learnMore" data-l10n-id="browser-containers-learn-more"/>
|
||||
<spacer flex="1"/>
|
||||
<!-- Please don't remove the wrapping hbox/vbox/box for these elements. It's used to properly compute the search tooltip position. -->
|
||||
<hbox>
|
||||
@ -399,7 +399,7 @@
|
||||
<hbox align="center">
|
||||
<checkbox id="playDRMContent" preference="media.eme.enabled"
|
||||
class="tail-with-learn-more" data-l10n-id="play-drm-content" />
|
||||
<label id="playDRMContentLink" class="learnMore text-link" data-l10n-id="play-drm-content-learn-more"/>
|
||||
<label id="playDRMContentLink" class="learnMore" data-l10n-id="play-drm-content-learn-more" is="text-link"/>
|
||||
</hbox>
|
||||
</groupbox>
|
||||
|
||||
@ -509,7 +509,7 @@
|
||||
<hbox id="manualUpdate" align="start">
|
||||
<image class="face-sad"/>
|
||||
<description flex="1" data-l10n-id="update-manual">
|
||||
<label id="manualLink" class="text-link" data-l10n-name="manual-link"/>
|
||||
<label id="manualLink" data-l10n-name="manual-link" is="text-link"/>
|
||||
</description>
|
||||
<spacer flex="1"/>
|
||||
<button data-l10n-id="update-checkForUpdatesButton"
|
||||
@ -517,7 +517,7 @@
|
||||
</hbox>
|
||||
<hbox id="unsupportedSystem" align="start">
|
||||
<description flex="1" data-l10n-id="update-unsupported">
|
||||
<label id="unsupportedLink" class="learnMore text-link" data-l10n-name="unsupported-link"></label>
|
||||
<label id="unsupportedLink" class="learnMore" data-l10n-name="unsupported-link" is="text-link"></label>
|
||||
</description>
|
||||
<spacer flex="1"/>
|
||||
<button data-l10n-id="update-checkForUpdatesButton"
|
||||
@ -575,7 +575,7 @@
|
||||
class="tail-with-learn-more"
|
||||
data-l10n-id="performance-use-recommended-settings-checkbox"
|
||||
preference="browser.preferences.defaultPerformanceSettings.enabled"/>
|
||||
<label id="performanceSettingsLearnMore" class="learnMore text-link" data-l10n-id="performance-settings-learn-more"/>
|
||||
<label id="performanceSettingsLearnMore" class="learnMore" data-l10n-id="performance-settings-learn-more" is="text-link"/>
|
||||
</hbox>
|
||||
<description class="indent tip-caption" data-l10n-id="performance-use-recommended-settings-desc"/>
|
||||
|
||||
@ -640,7 +640,7 @@
|
||||
class="tail-with-learn-more"
|
||||
data-l10n-id="browsing-cfr-recommendations"
|
||||
preference="browser.newtabpage.activity-stream.asrouter.userprefs.cfr"/>
|
||||
<label id="cfrLearnMore" class="learnMore text-link" data-l10n-id="browsing-cfr-recommendations-learn-more"/>
|
||||
<label id="cfrLearnMore" class="learnMore" data-l10n-id="browsing-cfr-recommendations-learn-more" is="text-link"/>
|
||||
</hbox>
|
||||
</groupbox>
|
||||
|
||||
@ -659,7 +659,7 @@
|
||||
<hbox align="center" flex="1">
|
||||
<description id="connectionSettingsDescription" control="connectionSettings"/>
|
||||
<spacer width="5"/>
|
||||
<label id="connectionSettingsLearnMore" class="learnMore text-link"
|
||||
<label id="connectionSettingsLearnMore" class="learnMore" is="text-link"
|
||||
data-l10n-id="network-proxy-connection-learn-more">
|
||||
</label>
|
||||
<separator orient="vertical"/>
|
||||
|
@ -143,7 +143,7 @@
|
||||
<spacer flex="1"/>
|
||||
|
||||
<hbox class="sidebar-footer-button" pack="center">
|
||||
<label id="addonsButton" class="text-link">
|
||||
<label id="addonsButton" is="text-link">
|
||||
<hbox align="center">
|
||||
<image class="sidebar-footer-icon addons-icon"/>
|
||||
<label class="sidebar-footer-label" flex="1" data-l10n-id="addons-button-label"></label>
|
||||
@ -152,7 +152,7 @@
|
||||
</hbox>
|
||||
|
||||
<hbox class="sidebar-footer-button help-button" pack="center">
|
||||
<label id="helpButton" class="text-link">
|
||||
<label id="helpButton" is="text-link">
|
||||
<hbox align="center">
|
||||
<image class="sidebar-footer-icon help-icon"/>
|
||||
<label class="sidebar-footer-label" flex="1" data-l10n-id="help-button-label"></label>
|
||||
|
@ -25,7 +25,7 @@
|
||||
<vbox flex="1">
|
||||
<description class="description-with-side-element">
|
||||
<html:span id="contentBlockingDescription" class="tail-with-learn-more" data-l10n-id="content-blocking-description"></html:span>
|
||||
<label id="contentBlockingLearnMore" class="learnMore text-link" data-l10n-id="content-blocking-learn-more"/>
|
||||
<label id="contentBlockingLearnMore" class="learnMore" data-l10n-id="content-blocking-learn-more" is="text-link"/>
|
||||
</description>
|
||||
</vbox>
|
||||
<vbox>
|
||||
@ -107,7 +107,7 @@
|
||||
</hbox>
|
||||
<description class="indent">
|
||||
<html:span class="tail-with-learn-more" data-l10n-id="content-blocking-warning-description"></html:span>
|
||||
<label class="text-link content-blocking-warning-learn-how" data-l10n-id="content-blocking-learn-how"/>
|
||||
<label class="content-blocking-warning-learn-how" data-l10n-id="content-blocking-learn-how" is="text-link"/>
|
||||
</description>
|
||||
</vbox>
|
||||
</vbox>
|
||||
@ -148,7 +148,7 @@
|
||||
</hbox>
|
||||
<label id="changeBlockListLink"
|
||||
data-l10n-id="content-blocking-tracking-protection-change-block-list"
|
||||
class="text-link"
|
||||
is="text-link"
|
||||
search-l10n-ids="blocklist-window.title, blocklist-description, blocklist-button-cancel.label, blocklist-button-ok.label"/>
|
||||
<hbox class="reject-trackers-ui custom-option">
|
||||
<checkbox id="contentBlockingBlockCookiesCheckbox"
|
||||
@ -197,7 +197,7 @@
|
||||
</hbox>
|
||||
<description class="indent">
|
||||
<html:span class="tail-with-learn-more" data-l10n-id="content-blocking-warning-description"></html:span>
|
||||
<label class="text-link content-blocking-warning-learn-how" data-l10n-id="content-blocking-learn-how"/>
|
||||
<label class="content-blocking-warning-learn-how" data-l10n-id="content-blocking-learn-how" is="text-link"/>
|
||||
</description>
|
||||
</vbox>
|
||||
</vbox>
|
||||
@ -208,7 +208,7 @@
|
||||
</vbox>
|
||||
<vbox id="doNotTrackLearnMoreBox">
|
||||
<label><label class="tail-with-learn-more" data-l10n-id="do-not-track-description" id="doNotTrackDesc"></label><label
|
||||
class="learnMore text-link" href="https://www.mozilla.org/dnt"
|
||||
class="learnMore" is="text-link" href="https://www.mozilla.org/dnt"
|
||||
data-l10n-id="do-not-track-learn-more"></label></label>
|
||||
<radiogroup id="doNotTrackRadioGroup" aria-labelledby="doNotTrackDesc" preference="privacy.donottrackheader.enabled">
|
||||
<radio value="true" data-l10n-id="do-not-track-option-always"/>
|
||||
@ -227,7 +227,7 @@
|
||||
<description class="description-with-side-element" flex="1">
|
||||
<html:span id="totalSiteDataSize" class="tail-with-learn-more"></html:span>
|
||||
<label id="siteDataLearnMoreLink"
|
||||
class="learnMore text-link" data-l10n-id="sitedata-learn-more"/>
|
||||
class="learnMore" is="text-link" data-l10n-id="sitedata-learn-more"/>
|
||||
</description>
|
||||
<hbox flex="1" id="deleteOnCloseNote" class="info-panel">
|
||||
<description flex="1" data-l10n-id="sitedata-delete-on-close-private-browsing" />
|
||||
@ -452,7 +452,7 @@
|
||||
preference="browser.urlbar.suggest.bookmark"/>
|
||||
<checkbox id="openpageSuggestion" data-l10n-id="addressbar-locbar-openpage-option"
|
||||
preference="browser.urlbar.suggest.openpage"/>
|
||||
<label class="text-link" id="openSearchEnginePreferences"
|
||||
<label id="openSearchEnginePreferences" is="text-link"
|
||||
data-l10n-id="addressbar-suggestions-settings"/>
|
||||
</groupbox>
|
||||
|
||||
@ -546,7 +546,8 @@
|
||||
class="tail-with-learn-more"
|
||||
data-l10n-id="permissions-notification"/>
|
||||
<label id="notificationPermissionsLearnMore"
|
||||
class="learnMore text-link"
|
||||
class="learnMore"
|
||||
is="text-link"
|
||||
data-l10n-id="permissions-notification-link"/>
|
||||
</description>
|
||||
<hbox pack="end">
|
||||
@ -641,7 +642,7 @@
|
||||
<checkbox id="a11yPrivacyCheckbox" class="tail-with-learn-more"
|
||||
data-l10n-id="permissions-a11y-privacy-checkbox"
|
||||
oncommand="return gPrivacyPane.updateA11yPrefs(this.checked)"/>
|
||||
<label id="a11yLearnMoreLink" class="learnMore text-link"
|
||||
<label id="a11yLearnMoreLink" class="learnMore" is="text-link"
|
||||
data-l10n-id="permissions-a11y-privacy-link"/>
|
||||
</hbox>
|
||||
</vbox>
|
||||
@ -663,7 +664,7 @@
|
||||
<description>
|
||||
<label class="tail-with-learn-more" data-l10n-id="collection-description"/>
|
||||
<label id="dataCollectionPrivacyNotice"
|
||||
class="learnMore text-link"
|
||||
class="learnMore" is="text-link"
|
||||
data-l10n-id="collection-privacy-notice"/>
|
||||
</description>
|
||||
<vbox data-subcategory="reports">
|
||||
@ -672,7 +673,7 @@
|
||||
data-l10n-id="collection-health-report"
|
||||
class="tail-with-learn-more"/>
|
||||
<label id="FHRLearnMore"
|
||||
class="learnMore text-link"
|
||||
class="learnMore" is="text-link"
|
||||
data-l10n-id="collection-health-report-link"/>
|
||||
<vbox class="indent">
|
||||
<hbox align="center">
|
||||
@ -682,7 +683,7 @@
|
||||
<label id="viewShieldStudies"
|
||||
href="about:studies"
|
||||
useoriginprincipal="true"
|
||||
class="learnMore text-link"
|
||||
class="learnMore" is="text-link"
|
||||
data-l10n-id="collection-studies-link"/>
|
||||
</hbox>
|
||||
|
||||
@ -691,7 +692,7 @@
|
||||
class="tail-with-learn-more"
|
||||
data-l10n-id="addon-recommendations"/>
|
||||
<label id="addonRecommendationLearnMore"
|
||||
class="learnMore text-link"
|
||||
class="learnMore" is="text-link"
|
||||
data-l10n-id="addon-recommendations-link"/>
|
||||
</hbox>
|
||||
</vbox>
|
||||
@ -710,7 +711,7 @@
|
||||
data-l10n-id="collection-backlogged-crash-reports"
|
||||
flex="1"/>
|
||||
<label id="crashReporterLearnMore"
|
||||
class="learnMore text-link" data-l10n-id="collection-backlogged-crash-reports-link"/>
|
||||
class="learnMore" is="text-link" data-l10n-id="collection-backlogged-crash-reports-link"/>
|
||||
</hbox>
|
||||
#endif
|
||||
</vbox>
|
||||
@ -732,7 +733,7 @@
|
||||
data-l10n-id="security-enable-safe-browsing"
|
||||
class="tail-with-learn-more"/>
|
||||
<label id="enableSafeBrowsingLearnMore"
|
||||
class="learnMore text-link" data-l10n-id="security-enable-safe-browsing-link"/>
|
||||
class="learnMore" is="text-link" data-l10n-id="security-enable-safe-browsing-link"/>
|
||||
</hbox>
|
||||
<vbox class="indent">
|
||||
<checkbox id="blockDownloads"
|
||||
|
@ -78,7 +78,7 @@
|
||||
/>
|
||||
</hbox>
|
||||
<hbox id="addEnginesBox" pack="start">
|
||||
<label id="addEngines" class="text-link" data-l10n-id="search-find-more-link"></label>
|
||||
<label id="addEngines" data-l10n-id="search-find-more-link" is="text-link"></label>
|
||||
</hbox>
|
||||
</groupbox>
|
||||
]]></box>
|
||||
|
@ -185,14 +185,14 @@
|
||||
</hbox>
|
||||
</groupbox>
|
||||
<vbox align="start">
|
||||
<label id="mobilePromo-singledevice"
|
||||
class="text-link fxaMobilePromo" data-l10n-id="sync-mobilepromo-single"/>
|
||||
<label id="mobilePromo-multidevice"
|
||||
class="text-link fxaMobilePromo" data-l10n-id="sync-mobilepromo-multi"/>
|
||||
<label id="mobilePromo-singledevice" is="text-link"
|
||||
class="fxaMobilePromo" data-l10n-id="sync-mobilepromo-single"/>
|
||||
<label id="mobilePromo-multidevice" is="text-link"
|
||||
class="fxaMobilePromo" data-l10n-id="sync-mobilepromo-multi"/>
|
||||
</vbox>
|
||||
<vbox id="tosPP-small" align="start">
|
||||
<label id="tosPP-small-ToS" class="text-link" data-l10n-id="sync-tos-link"/>
|
||||
<label id="tosPP-small-PP" class="text-link" data-l10n-id="sync-fxa-privacy-notice"/>
|
||||
<label id="tosPP-small-ToS" is="text-link" data-l10n-id="sync-tos-link"/>
|
||||
<label id="tosPP-small-PP" is="text-link" data-l10n-id="sync-fxa-privacy-notice"/>
|
||||
</vbox>
|
||||
</vbox>
|
||||
</deck>
|
||||
|
@ -15,7 +15,7 @@ class MozTranslationNotification extends MozElements.Notification {
|
||||
<description class="translation-welcome-headline" anonid="welcomeHeadline"/>
|
||||
<description class="translation-welcome-body" anonid="welcomeBody"/>
|
||||
<hbox align="center">
|
||||
<label anonid="learnMore" class="plain text-link" onclick="openTrustedLinkIn('https://support.mozilla.org/kb/automatic-translation', 'tab'); this.parentNode.parentNode.parentNode.hidePopup();"/>
|
||||
<label anonid="learnMore" class="plain" onclick="openTrustedLinkIn('https://support.mozilla.org/kb/automatic-translation', 'tab'); this.parentNode.parentNode.parentNode.hidePopup();" is="text-link"/>
|
||||
<spacer flex="1"/>
|
||||
<button class="translate-infobar-element" anonid="thanksButton" onclick="this.parentNode.parentNode.parentNode.hidePopup();"/>
|
||||
</hbox>
|
||||
|
@ -236,8 +236,7 @@ let FormAutofillDoorhanger = {
|
||||
*/
|
||||
_appendPrivacyPanelLink(content, message, link) {
|
||||
let chromeDoc = content.ownerDocument;
|
||||
let privacyLinkElement = chromeDoc.createXULElement("label");
|
||||
privacyLinkElement.className = "text-link";
|
||||
let privacyLinkElement = chromeDoc.createXULElement("label", {is: "text-link"});
|
||||
privacyLinkElement.setAttribute("useoriginprincipal", true);
|
||||
privacyLinkElement.setAttribute("href", link || "about:preferences#privacy-form-autofill");
|
||||
privacyLinkElement.setAttribute("value", message);
|
||||
|
@ -78,7 +78,7 @@ FormAutofillPreferences.prototype = {
|
||||
let addressAutofill = document.createXULElement("hbox");
|
||||
let addressAutofillCheckboxGroup = document.createXULElement("hbox");
|
||||
let addressAutofillCheckbox = document.createXULElement("checkbox");
|
||||
let addressAutofillLearnMore = document.createXULElement("label");
|
||||
let addressAutofillLearnMore = document.createXULElement("label", {is: "text-link"});
|
||||
let savedAddressesBtn = document.createXULElement("button");
|
||||
// Wrappers are used to properly compute the search tooltip positions
|
||||
let savedAddressesBtnWrapper = document.createXULElement("hbox");
|
||||
@ -86,7 +86,7 @@ FormAutofillPreferences.prototype = {
|
||||
|
||||
savedAddressesBtn.className = "accessory-button";
|
||||
addressAutofillCheckbox.className = "tail-with-learn-more";
|
||||
addressAutofillLearnMore.className = "learnMore text-link";
|
||||
addressAutofillLearnMore.className = "learnMore";
|
||||
|
||||
formAutofillGroup.id = "formAutofillGroup";
|
||||
addressAutofill.id = "addressAutofill";
|
||||
@ -137,11 +137,11 @@ FormAutofillPreferences.prototype = {
|
||||
let creditCardAutofill = document.createXULElement("hbox");
|
||||
let creditCardAutofillCheckboxGroup = document.createXULElement("hbox");
|
||||
let creditCardAutofillCheckbox = document.createXULElement("checkbox");
|
||||
let creditCardAutofillLearnMore = document.createXULElement("label");
|
||||
let creditCardAutofillLearnMore = document.createXULElement("label", {is: "text-link"});
|
||||
let savedCreditCardsBtn = document.createXULElement("button");
|
||||
savedCreditCardsBtn.className = "accessory-button";
|
||||
creditCardAutofillCheckbox.className = "tail-with-learn-more";
|
||||
creditCardAutofillLearnMore.className = "learnMore text-link";
|
||||
creditCardAutofillLearnMore.className = "learnMore";
|
||||
|
||||
creditCardAutofill.id = "creditCardAutofill";
|
||||
creditCardAutofillLearnMore.id = "creditCardAutofillLearnMore";
|
||||
|
@ -458,8 +458,7 @@ var ProcessHangMonitor = {
|
||||
let linkText = bundle.getString("processHang.add-on.learn-more.text");
|
||||
let linkURL = "https://support.mozilla.org/kb/warning-unresponsive-script#w_other-causes";
|
||||
|
||||
let link = doc.createXULElement("label");
|
||||
link.setAttribute("class", "text-link");
|
||||
let link = doc.createXULElement("label", {is: "text-link"});
|
||||
link.setAttribute("role", "link");
|
||||
link.setAttribute("onclick", `openTrustedLinkIn(${JSON.stringify(linkURL)}, "tab")`);
|
||||
link.setAttribute("value", linkText);
|
||||
|
@ -719,8 +719,7 @@ function prompt(aBrowser, aRequest) {
|
||||
let baseURL =
|
||||
Services.urlFormatter.formatURLPref("app.support.baseURL");
|
||||
|
||||
let learnMore = chromeWin.document.createXULElement("label");
|
||||
learnMore.className = "text-link";
|
||||
let learnMore = chromeWin.document.createXULElement("label", {is: "text-link"});
|
||||
learnMore.setAttribute("href", baseURL + "screenshare-safety");
|
||||
learnMore.textContent = learnMoreText;
|
||||
|
||||
|
@ -206,8 +206,7 @@ var Heartbeat = class {
|
||||
|
||||
// Add Learn More Link
|
||||
if (this.options.learnMoreMessage && this.options.learnMoreUrl) {
|
||||
this.learnMore = this.chromeWindow.document.createXULElement("label");
|
||||
this.learnMore.className = "text-link";
|
||||
this.learnMore = this.chromeWindow.document.createXULElement("label", {is: "text-link"});
|
||||
this.learnMore.href = this.options.learnMoreUrl.toString();
|
||||
this.learnMore.setAttribute("value", this.options.learnMoreMessage);
|
||||
this.learnMore.addEventListener("click",
|
||||
|
@ -402,6 +402,7 @@ if (!isDummyDocument) {
|
||||
["stringbundle", "chrome://global/content/elements/stringbundle.js"],
|
||||
["printpreview-toolbar", "chrome://global/content/printPreviewToolbar.js"],
|
||||
["editor", "chrome://global/content/elements/editor.js"],
|
||||
["text-link", "chrome://global/content/elements/text.js"],
|
||||
]) {
|
||||
customElements.setElementCreationCallback(tag, () => {
|
||||
Services.scriptloader.loadSubScript(script, window);
|
||||
|
@ -78,6 +78,7 @@ toolkit.jar:
|
||||
content/global/bindings/spinner.js (widgets/spinner.js)
|
||||
content/global/bindings/tabbox.xml (widgets/tabbox.xml)
|
||||
content/global/bindings/text.xml (widgets/text.xml)
|
||||
content/global/elements/text.js (widgets/text.js)
|
||||
* content/global/bindings/textbox.xml (widgets/textbox.xml)
|
||||
content/global/bindings/timekeeper.js (widgets/timekeeper.js)
|
||||
content/global/bindings/timepicker.js (widgets/timepicker.js)
|
||||
|
@ -3,10 +3,9 @@ add_task(async function() {
|
||||
let newTabURL = "http://www.example.com/";
|
||||
await ContentTask.spawn(browser, newTabURL, async function(newTabURL) {
|
||||
let doc = content.document;
|
||||
let label = doc.createXULElement("label");
|
||||
let label = doc.createXULElement("label", {is: "text-link"});
|
||||
label.href = newTabURL;
|
||||
label.id = "textlink-test";
|
||||
label.className = "text-link";
|
||||
label.textContent = "click me";
|
||||
doc.body.prepend(label);
|
||||
});
|
||||
|
@ -102,7 +102,7 @@ class MozPopupNotification extends MozXULElement {
|
||||
</vbox>
|
||||
<toolbarbutton class="messageCloseButton close-icon popup-notification-closebutton tabbable" inherits="oncommand=closebuttoncommand,hidden=closebuttonhidden" tooltiptext="&closeNotification.tooltip;"></toolbarbutton>
|
||||
</hbox>
|
||||
<label class="text-link popup-notification-learnmore-link" inherits="onclick=learnmoreclick,href=learnmoreurl">&learnMore;</label>
|
||||
<label class="popup-notification-learnmore-link" inherits="onclick=learnmoreclick,href=learnmoreurl" is="text-link">&learnMore;</label>
|
||||
<checkbox class="popup-notification-checkbox" oncommand="PopupNotifications._onCheckboxCommand(event)"></checkbox>
|
||||
<description class="popup-notification-warning" inherits="hidden=warninghidden,text=warninglabel"></description>
|
||||
</vbox>
|
||||
|
113
toolkit/content/widgets/text.js
Normal file
113
toolkit/content/widgets/text.js
Normal file
@ -0,0 +1,113 @@
|
||||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
"use strict";
|
||||
|
||||
// This is loaded into all XUL windows. Wrap in a block to prevent
|
||||
// leaking to window scope.
|
||||
{
|
||||
const {Services} = ChromeUtils.import("resource://gre/modules/Services.jsm");
|
||||
|
||||
class MozTextLink extends MozElementMixin(XULTextElement) {
|
||||
constructor() {
|
||||
super();
|
||||
|
||||
this.classList.add("text-link");
|
||||
|
||||
this.addEventListener("click", (event) => {
|
||||
if (event.button == 0 || event.button == 1) {
|
||||
this.open(event);
|
||||
}
|
||||
}, true);
|
||||
|
||||
this.addEventListener("keypress", (event) => {
|
||||
if (event.keyCode != KeyEvent.DOM_VK_RETURN) {
|
||||
return;
|
||||
}
|
||||
this.click();
|
||||
});
|
||||
}
|
||||
|
||||
set href(val) {
|
||||
this.setAttribute("href", val);
|
||||
return val;
|
||||
}
|
||||
|
||||
get href() {
|
||||
return this.getAttribute("href");
|
||||
}
|
||||
|
||||
open(aEvent) {
|
||||
var href = this.href;
|
||||
if (!href || this.disabled || aEvent.defaultPrevented)
|
||||
return;
|
||||
|
||||
var uri = null;
|
||||
try {
|
||||
const nsISSM = Ci.nsIScriptSecurityManager;
|
||||
const secMan =
|
||||
Cc["@mozilla.org/scriptsecuritymanager;1"]
|
||||
.getService(nsISSM);
|
||||
|
||||
uri = Services.io.newURI(href);
|
||||
|
||||
let principal;
|
||||
if (this.getAttribute("useoriginprincipal") == "true") {
|
||||
principal = this.nodePrincipal;
|
||||
} else {
|
||||
principal = secMan.createNullPrincipal({});
|
||||
}
|
||||
try {
|
||||
secMan.checkLoadURIWithPrincipal(principal, uri,
|
||||
nsISSM.DISALLOW_INHERIT_PRINCIPAL);
|
||||
} catch (ex) {
|
||||
var msg = "Error: Cannot open a " + uri.scheme + ": link using \
|
||||
the text-link binding.";
|
||||
Cu.reportError(msg);
|
||||
return;
|
||||
}
|
||||
|
||||
const cID = "@mozilla.org/uriloader/external-protocol-service;1";
|
||||
const nsIEPS = Ci.nsIExternalProtocolService;
|
||||
var protocolSvc = Cc[cID].getService(nsIEPS);
|
||||
|
||||
// if the scheme is not an exposed protocol, then opening this link
|
||||
// should be deferred to the system's external protocol handler
|
||||
if (!protocolSvc.isExposedProtocol(uri.scheme)) {
|
||||
protocolSvc.loadURI(uri);
|
||||
aEvent.preventDefault();
|
||||
return;
|
||||
}
|
||||
} catch (ex) {
|
||||
Cu.reportError(ex);
|
||||
}
|
||||
|
||||
aEvent.preventDefault();
|
||||
href = uri ? uri.spec : href;
|
||||
|
||||
// Try handing off the link to the host application, e.g. for
|
||||
// opening it in a tabbed browser.
|
||||
var linkHandled = Cc["@mozilla.org/supports-PRBool;1"]
|
||||
.createInstance(Ci.nsISupportsPRBool);
|
||||
linkHandled.data = false;
|
||||
let { shiftKey, ctrlKey, metaKey, altKey, button } = aEvent;
|
||||
let data = { shiftKey, ctrlKey, metaKey, altKey, button, href };
|
||||
Services.obs.notifyObservers(linkHandled,
|
||||
"handle-xul-text-link",
|
||||
JSON.stringify(data));
|
||||
if (linkHandled.data)
|
||||
return;
|
||||
|
||||
// otherwise, fall back to opening the anchor directly
|
||||
var win = window;
|
||||
if (window.isChromeWindow) {
|
||||
while (win.opener && !win.opener.closed)
|
||||
win = win.opener;
|
||||
}
|
||||
win.open(href);
|
||||
}
|
||||
}
|
||||
|
||||
customElements.define("text-link", MozTextLink, { extends: "label" });
|
||||
}
|
@ -100,8 +100,8 @@ vbox {
|
||||
/********** label **********/
|
||||
|
||||
label.text-link, label[onclick] {
|
||||
-moz-binding: url("chrome://global/content/bindings/text.xml#text-link");
|
||||
-moz-user-focus: normal;
|
||||
-moz-binding: none;
|
||||
}
|
||||
|
||||
label[control], label.radio-label, label.checkbox-label, label.toolbarbutton-multiline-text {
|
||||
|
@ -39,7 +39,7 @@
|
||||
<description id="hardBlockMessage" hidden="true" class="bold">&blocklist.hardblocked;</description>
|
||||
<description id="softBlockMessage" hidden="true" class="bold">&blocklist.softblocked;</description>
|
||||
<hbox pack="start">
|
||||
<label id="moreInfo" class="text-link" value="&blocklist.moreinfo;"/>
|
||||
<label id="moreInfo" value="&blocklist.moreinfo;" is="text-link"/>
|
||||
</hbox>
|
||||
</vbox>
|
||||
</hbox>
|
||||
|
@ -241,7 +241,7 @@
|
||||
<binding id="creator-link">
|
||||
<content>
|
||||
<xul:label anonid="label" value="&addon.createdBy.label;"/>
|
||||
<xul:label anonid="creator-link" class="creator-link text-link"/>
|
||||
<xul:label anonid="creator-link" class="creator-link" is="text-link"/>
|
||||
<xul:label anonid="creator-name" class="creator-name"/>
|
||||
</content>
|
||||
|
||||
@ -545,7 +545,7 @@
|
||||
class="warning">
|
||||
<xul:image class="warning-icon"/>
|
||||
<xul:label anonid="warning" flex="1"/>
|
||||
<xul:label anonid="warning-link" class="text-link"/>
|
||||
<xul:label anonid="warning-link" is="text-link"/>
|
||||
<xul:button anonid="warning-btn" class="button-link" hidden="true"/>
|
||||
<xul:spacer flex="5000"/> <!-- Necessary to allow the message to wrap -->
|
||||
</xul:hbox>
|
||||
@ -553,7 +553,7 @@
|
||||
class="error">
|
||||
<xul:image class="error-icon"/>
|
||||
<xul:label anonid="error" flex="1"/>
|
||||
<xul:label anonid="error-link" class="text-link" hidden="true"/>
|
||||
<xul:label anonid="error-link" hidden="true" is="text-link"/>
|
||||
<xul:spacer flex="5000"/> <!-- Necessary to allow the message to wrap -->
|
||||
</xul:hbox>
|
||||
<xul:hbox anonid="pending-container"
|
||||
@ -578,7 +578,7 @@
|
||||
<xul:hbox class="name-container">
|
||||
<xul:label anonid="name" class="name" crop="end" flex="1"
|
||||
tooltip="addonitem-tooltip" xbl:inherits="xbl:text=name"/>
|
||||
<xul:label anonid="legacy" class="legacy-warning text-link" value="&addon.legacy.label;"/>
|
||||
<xul:label anonid="legacy" class="legacy-warning" value="&addon.legacy.label;" is="text-link"/>
|
||||
<xul:label class="disabled-postfix" value="&addon.disabled.postfix;"/>
|
||||
<xul:label class="update-postfix" value="&addon.update.postfix;"/>
|
||||
<xul:spacer flex="5000"/> <!-- Necessary to make the name crop -->
|
||||
|
@ -158,7 +158,7 @@
|
||||
<spacer flex="1"/>
|
||||
|
||||
<hbox class="sidebar-footer-button" pack="center">
|
||||
<label id="preferencesButton" class="text-link">
|
||||
<label id="preferencesButton" is="text-link">
|
||||
<hbox align="center">
|
||||
<image class="sidebar-footer-icon preferences-icon"/>
|
||||
<label class="sidebar-footer-label" data-l10n-id="preferences" flex="1"/>
|
||||
@ -167,7 +167,7 @@
|
||||
</hbox>
|
||||
|
||||
<hbox class="sidebar-footer-button help-button" pack="center">
|
||||
<label id="helpButton" class="text-link">
|
||||
<label id="helpButton" is="text-link">
|
||||
<hbox align="center">
|
||||
<image class="sidebar-footer-icon help-icon"/>
|
||||
<label class="sidebar-footer-label" data-l10n-id="help-button" flex="1"/>
|
||||
@ -298,17 +298,17 @@
|
||||
<vbox id="disabled-unsigned-addons-info" class="alert-container" hidden="true">
|
||||
<label id="disabled-unsigned-addons-heading" data-l10n-id="disabled-unsigned-heading"/>
|
||||
<description data-l10n-id="disabled-unsigned-description">
|
||||
<label class="text-link plain" id="find-alternative-addons" data-l10n-name="find-addons"/>
|
||||
<label class="plain" id="find-alternative-addons" data-l10n-name="find-addons" is="text-link"/>
|
||||
</description>
|
||||
<hbox pack="start"><label class="text-link" id="signing-learn-more" data-l10n-id="disabled-unsigned-learn-more"></label></hbox>
|
||||
<hbox pack="start"><label id="signing-learn-more" data-l10n-id="disabled-unsigned-learn-more" is="text-link"></label></hbox>
|
||||
<description id="signing-dev-info" data-l10n-id="disabled-unsigned-devinfo">
|
||||
<label class="text-link plain" id="signing-dev-manual-link" data-l10n-name="learn-more"/>
|
||||
<label class="plain" id="signing-dev-manual-link" data-l10n-name="learn-more" is="text-link"/>
|
||||
</description>
|
||||
</vbox>
|
||||
<vbox id="legacy-extensions-notice" class="alert-container" hidden="true">
|
||||
<vbox class="alert">
|
||||
<description id="legacy-extensions-description">
|
||||
<label class="text-link plain" id="legacy-extensions-learnmore-link" data-l10n-id="legacy-warning-show-legacy"/>
|
||||
<label class="plain" id="legacy-extensions-learnmore-link" data-l10n-id="legacy-warning-show-legacy" is="text-link"/>
|
||||
</description>
|
||||
</vbox>
|
||||
</vbox>
|
||||
@ -317,7 +317,7 @@
|
||||
<image class="message-bar-icon"/>
|
||||
<vbox class="message-container">
|
||||
<description class="message-bar-description" data-l10n-id="private-browsing-description">
|
||||
<label class="text-link plain" id="private-browsing-learnmore-link" data-l10n-name="private-browsing-learn-more"/>
|
||||
<label class="plain" id="private-browsing-learnmore-link" data-l10n-name="private-browsing-learn-more" is="text-link"/>
|
||||
</description>
|
||||
</vbox>
|
||||
</hbox>
|
||||
@ -326,7 +326,7 @@
|
||||
<hbox class="message-bar">
|
||||
<image class="message-bar-icon"/>
|
||||
<description class="message-bar-description" data-l10n-id="plugin-deprecation-description">
|
||||
<label class="text-link plain" id="plugindeprecation-learnmore-link" data-l10n-name="learn-more"></label>
|
||||
<label class="plain" id="plugindeprecation-learnmore-link" data-l10n-name="learn-more" is="text-link"></label>
|
||||
</description>
|
||||
</hbox>
|
||||
</vbox>
|
||||
@ -383,7 +383,7 @@
|
||||
<vbox id="legacy-extensions-info">
|
||||
<label id="legacy-extensions-heading" data-l10n-id="legacy-extensions"/>
|
||||
<description data-l10n-id="legacy-extensions-description">
|
||||
<label class="text-link plain" id="legacy-learnmore" data-l10n-name="legacy-learn-more"></label>
|
||||
<label class="plain" id="legacy-learnmore" data-l10n-name="legacy-learn-more" is="text-link"></label>
|
||||
</description>
|
||||
</vbox>
|
||||
<richlistbox id="legacy-list" class="list" flex="1"/>
|
||||
@ -486,13 +486,13 @@
|
||||
<hbox id="warning-container" align="center" class="warning">
|
||||
<image class="warning-icon"/>
|
||||
<label id="detail-warning" flex="1"/>
|
||||
<label id="detail-warning-link" class="text-link"/>
|
||||
<label id="detail-warning-link" is="text-link"/>
|
||||
<spacer flex="5000"/> <!-- Necessary to allow the message to wrap -->
|
||||
</hbox>
|
||||
<hbox id="error-container" align="center" class="error">
|
||||
<image class="error-icon"/>
|
||||
<label id="detail-error" flex="1"/>
|
||||
<label id="detail-error-link" class="text-link"/>
|
||||
<label id="detail-error-link" is="text-link"/>
|
||||
<spacer flex="5000"/> <!-- Necessary to allow the message to wrap -->
|
||||
</hbox>
|
||||
<hbox id="pending-container" align="center" class="pending">
|
||||
@ -519,7 +519,7 @@
|
||||
<hbox id="detail-name-container" class="name-container"
|
||||
align="start">
|
||||
<label id="detail-name" flex="1"/>
|
||||
<label id="detail-legacy-warning" class="legacy-warning text-link" value="&addon.legacy.label;"/>
|
||||
<label id="detail-legacy-warning" class="legacy-warning" value="&addon.legacy.label;" is="text-link"/>
|
||||
<label class="disabled-postfix" value="&addon.disabled.postfix;"/>
|
||||
<label class="update-postfix" value="&addon.update.postfix;"/>
|
||||
<spacer flex="5000"/> <!-- Necessary to allow the name to wrap -->
|
||||
@ -559,7 +559,7 @@
|
||||
</row>
|
||||
<hbox class="detail-row-footer" id="detail-privateBrowsing-row-footer">
|
||||
<description class="indent preferences-description" data-l10n-id="detail-private-browsing-description">
|
||||
<label id="detail-private-browsing-learnmore-link" class="learnMore text-link" data-l10n-name="detail-private-browsing-learn-more"/>
|
||||
<label id="detail-private-browsing-learnmore-link" class="learnMore" data-l10n-name="detail-private-browsing-learn-more" is="text-link"/>
|
||||
</description>
|
||||
</hbox>
|
||||
<row class="detail-row-complex" id="detail-updates-row">
|
||||
@ -584,18 +584,18 @@
|
||||
<row class="detail-row" id="detail-dateUpdated" data-l10n-id="detail-last-updated"/>
|
||||
<row class="detail-row-complex" id="detail-homepage-row" data-l10n-id="detail-home">
|
||||
<label class="detail-row-label" data-l10n-id="detail-home-value"/>
|
||||
<label id="detail-homepage" class="detail-row-value text-link" crop="end"/>
|
||||
<label id="detail-homepage" class="detail-row-value" crop="end" is="text-link"/>
|
||||
</row>
|
||||
<row class="detail-row-complex" id="detail-repository-row" data-l10n-id="detail-repository">
|
||||
<label class="detail-row-label" data-l10n-id="detail-repository-value"/>
|
||||
<label id="detail-repository" class="detail-row-value text-link"/>
|
||||
<label id="detail-repository" class="detail-row-value" is="text-link"/>
|
||||
</row>
|
||||
<row class="detail-row-complex" id="detail-rating-row">
|
||||
<label class="detail-row-label" data-l10n-id="detail-rating"/>
|
||||
<hbox>
|
||||
<label id="detail-rating" class="meta-value meta-rating"
|
||||
showrating="average"/>
|
||||
<label id="detail-reviews" class="text-link"/>
|
||||
<label id="detail-reviews" is="text-link"/>
|
||||
</hbox>
|
||||
</row>
|
||||
</rows>
|
||||
|
@ -40,7 +40,7 @@
|
||||
<row id="pluginFlashBlocking" class="detail-row-complex">
|
||||
<vbox>
|
||||
<label>&plugin.enableBlocklists.label;</label>
|
||||
<label class="preferences-learnmore text-link"
|
||||
<label class="preferences-learnmore" is="text-link"
|
||||
href="https://support.mozilla.org/kb/flash-blocklists">&setting.learnmore;</label>
|
||||
</vbox>
|
||||
<checkbox id="pluginFlashBlockingCheckbox"/>
|
||||
@ -48,7 +48,7 @@
|
||||
<row id="pluginEnableProtectedMode" class="detail-row-complex">
|
||||
<vbox>
|
||||
<label>&plugin.flashProtectedMode.label;</label>
|
||||
<label class="preferences-learnmore text-link"
|
||||
<label class="preferences-learnmore" is="text-link"
|
||||
href="https://support.mozilla.org/kb/flash-protected-mode-settings">&setting.learnmore;</label>
|
||||
</vbox>
|
||||
<checkbox id="pluginEnableProtectedModeCheckbox"/>
|
||||
|
@ -44,8 +44,7 @@ var gUpdateHistory = {
|
||||
topLine.appendChild(nameLabel);
|
||||
|
||||
if (update.detailsURL) {
|
||||
const detailsLink = document.createXULElement("label");
|
||||
detailsLink.className = "text-link";
|
||||
const detailsLink = document.createXULElement("label", {is: "text-link"});
|
||||
detailsLink.href = update.detailsURL;
|
||||
document.l10n.setAttributes(detailsLink, "update-details");
|
||||
topLine.appendChild(detailsLink);
|
||||
|
@ -73,7 +73,7 @@
|
||||
<separator class="thin"/>
|
||||
<label>&manualUpdateGetMsg.label;</label>
|
||||
<hbox>
|
||||
<label class="text-link" id="manualUpdateLinkLabel" value=""
|
||||
<label id="manualUpdateLinkLabel" value="" is="text-link"
|
||||
onclick="openUpdateURL(event);"/>
|
||||
</hbox>
|
||||
</vbox>
|
||||
@ -85,7 +85,7 @@
|
||||
<updateheader label="&unsupported.title;"/>
|
||||
<vbox class="update-content" flex="1">
|
||||
<description flex="1">&unsupported.label;
|
||||
<label id="unsupportedLinkLabel" class="text-link inline-link" onclick="openUpdateURL(event);">
|
||||
<label id="unsupportedLinkLabel" class="inline-link" onclick="openUpdateURL(event);" is="text-link">
|
||||
&unsupportedLink.label;
|
||||
</label>
|
||||
</description>
|
||||
@ -107,7 +107,7 @@
|
||||
<separator id="upgradeEvangelismSep" flex="1"/>
|
||||
<vbox flex="1">
|
||||
<hbox id="moreInfoURL">
|
||||
<label class="text-link" id="updateMoreInfoURL"
|
||||
<label id="updateMoreInfoURL" is="text-link"
|
||||
value="&clickHere.label;" onclick="openUpdateURL(event);"/>
|
||||
</hbox>
|
||||
</vbox>
|
||||
@ -147,7 +147,7 @@
|
||||
<separator/>
|
||||
<label id="errorManual">&errorManual.label;</label>
|
||||
<hbox>
|
||||
<label class="text-link" id="errorLinkLabel" value=""
|
||||
<label id="errorLinkLabel" value="" is="text-link"
|
||||
onclick="openUpdateURL(event);"/>
|
||||
</hbox>
|
||||
</vbox>
|
||||
@ -160,7 +160,7 @@
|
||||
<vbox class="update-content" flex="1">
|
||||
<label id="bgErrorLabel">&genericBackgroundError.label;</label>
|
||||
<hbox>
|
||||
<label id="errorExtraLinkLabel" class="text-link"
|
||||
<label id="errorExtraLinkLabel" is="text-link"
|
||||
value="" onclick="openUpdateURL(event);"/>
|
||||
</hbox>
|
||||
</vbox>
|
||||
@ -195,7 +195,7 @@
|
||||
<hbox align="center">
|
||||
<label>&finishedBackground.name;</label>
|
||||
<label id="updateFinishedName" flex="1" crop="right" value=""/>
|
||||
<label id="finishedBackgroundLink" class="text-link" disabled="true"
|
||||
<label id="finishedBackgroundLink" disabled="true" is="text-link"
|
||||
value="&details.link;" onclick="openUpdateURL(event);"/>
|
||||
</hbox>
|
||||
<spacer flex="1"/>
|
||||
@ -205,7 +205,7 @@
|
||||
<label id="finishedBackgroundMoreElevatedLink"
|
||||
hidden="true">&errorManual.label;</label>
|
||||
<hbox>
|
||||
<label class="text-link" id="finishedBackgroundMoreElevatedLinkLabel"
|
||||
<label id="finishedBackgroundMoreElevatedLinkLabel" is="text-link"
|
||||
value="" onclick="openUpdateURL(event);" hidden="true"/>
|
||||
</hbox>
|
||||
</vbox>
|
||||
|
Loading…
x
Reference in New Issue
Block a user