[tbb-commits] [Git][tpo/applications/tor-browser][base-browser-115.3.0esr-13.0-1] Bug 1853731 - Use html:img for message-bar-icon....

richard (@richard) git at gitlab.torproject.org
Wed Sep 20 19:41:25 UTC 2023



richard pushed to branch base-browser-115.3.0esr-13.0-1 at The Tor Project / Applications / Tor Browser


Commits:
15dc8e7e by Emilio Cobos Álvarez at 2023-09-20T19:41:14+00:00
Bug 1853731 - Use html:img for message-bar-icon. r=Gijs,dao,settings-reviewers,desktop-theme-reviewers,sfoster

Differential Revision: https://phabricator.services.mozilla.com/D188521
- - - - -


3 changed files:

- browser/components/places/metadataViewer/interactionsViewer.html
- browser/components/preferences/dialogs/browserLanguages.xhtml
- toolkit/themes/shared/in-content/common-shared.css


Changes:

=====================================
browser/components/places/metadataViewer/interactionsViewer.html
=====================================
@@ -26,10 +26,7 @@
   </head>
   <body>
     <div id="enabledWarning" class="message-bar message-bar-warning" hidden>
-      <img
-        class="message-bar-icon"
-        src="chrome://global/skin/icons/warning.svg"
-      />
+      <img class="message-bar-icon" />
       <descripton class="message-bar-description">
         You need to have <code>browser.places.interactions.enabled</code>
         set to true (and restart) for metadata recording to be enabled.


=====================================
browser/components/preferences/dialogs/browserLanguages.xhtml
=====================================
@@ -81,7 +81,7 @@
       class="message-bar message-bar-warning"
       hidden="true"
     >
-      <image class="message-bar-icon" />
+      <html:img class="message-bar-icon" />
       <description
         class="message-bar-description"
         data-l10n-id="browser-languages-error"


=====================================
toolkit/themes/shared/in-content/common-shared.css
=====================================
@@ -1292,7 +1292,7 @@ xul|treechildren::-moz-tree-image(selected) {
 }
 
 .message-bar-icon {
-  list-style-image: url("chrome://global/skin/icons/info.svg");
+  content: url("chrome://global/skin/icons/info.svg");
   width: 24px;
   height: 24px;
   padding: 4px;
@@ -1308,7 +1308,7 @@ xul|treechildren::-moz-tree-image(selected) {
 }
 
 .message-bar-warning > .message-bar-icon {
-  list-style-image: url("chrome://global/skin/icons/warning.svg");
+  content: url("chrome://global/skin/icons/warning.svg");
 }
 
 input[type="text"][warning]:enabled:not(:focus) {



View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/15dc8e7e68fcd94f7188194f7a433126490abb01

-- 
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/15dc8e7e68fcd94f7188194f7a433126490abb01
You're receiving this email because of your account on gitlab.torproject.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.torproject.org/pipermail/tbb-commits/attachments/20230920/858bf21c/attachment-0001.htm>


More information about the tbb-commits mailing list