Bug 1490015: Allow tab previews to direct load data uris. r=Gijs a=pascalc
authorDave Townsend <dtownsend@oxymoronical.com>
Wed, 26 Sep 2018 21:09:49 +0000
changeset 490098 a26549487b5880ca571da70ac2280d149ee74d96
parent 490097 0ea62e993c85c3988c2f8c6f2a2019c01c16cfa4
child 490099 6b249c4d451ec409bcc794120d5b1612b634289e
push id9907
push userapavel@mozilla.com
push dateFri, 28 Sep 2018 14:47:40 +0000
treeherdermozilla-beta@98b0d7c2955d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersGijs, pascalc
bugs1490015
milestone63.0
Bug 1490015: Allow tab previews to direct load data uris. r=Gijs a=pascalc Differential Revision: https://phabricator.services.mozilla.com/D6996
browser/modules/WindowsPreviewPerTab.jsm
--- a/browser/modules/WindowsPreviewPerTab.jsm
+++ b/browser/modules/WindowsPreviewPerTab.jsm
@@ -577,17 +577,17 @@ TabWindow.prototype = {
   onStateChange(aBrowser, aWebProgress, aRequest, aStateFlags, aStatus) {
     if (aStateFlags & Ci.nsIWebProgressListener.STATE_STOP &&
         aStateFlags & Ci.nsIWebProgressListener.STATE_IS_NETWORK) {
       this.invalidateTabPreview(aBrowser);
     }
   },
 
   directRequestProtocols: new Set([
-    "file", "chrome", "resource", "about",
+    "file", "chrome", "resource", "about", "data",
   ]),
   onLinkIconAvailable(aBrowser, aIconURL) {
     let tab = this.win.gBrowser.getTabForBrowser(aBrowser);
     this.updateFavicon(tab, aIconURL);
   },
   updateFavicon(aTab, aIconURL) {
     let requestURL = null;
     if (aIconURL) {