Bug 1449294 - Capture thumbnails with tracking protection always enabled. r?adw draft
authorEd Lee <edilee@mozilla.com>
Tue, 27 Mar 2018 12:19:44 -0700
changeset 773276 260726eca3fbfdad14695f05ca5bdfe5e709463d
parent 773144 b906009d875d1f5d29b0d1252cdb43a9b1a5889c
push id104199
push userbmo:edilee@mozilla.com
push dateTue, 27 Mar 2018 19:22:58 +0000
reviewersadw
bugs1449294
milestone61.0a1
Bug 1449294 - Capture thumbnails with tracking protection always enabled. r?adw MozReview-Commit-ID: Lt389lmJASW
toolkit/components/thumbnails/content/backgroundPageThumbsContent.js
--- a/toolkit/components/thumbnails/content/backgroundPageThumbsContent.js
+++ b/toolkit/components/thumbnails/content/backgroundPageThumbsContent.js
@@ -41,16 +41,17 @@ const backgroundPageThumbsContent = {
     docShell.allowPlugins = false;
     docShell.allowContentRetargeting = false;
     let defaultFlags = Ci.nsIRequest.LOAD_ANONYMOUS |
                        Ci.nsIRequest.LOAD_BYPASS_CACHE |
                        Ci.nsIRequest.INHIBIT_CACHING |
                        Ci.nsIWebNavigation.LOAD_FLAGS_BYPASS_HISTORY;
     docShell.defaultLoadFlags = defaultFlags;
     docShell.sandboxFlags |= SANDBOXED_AUXILIARY_NAVIGATION;
+    docShell.useTrackingProtection = true;
 
     addMessageListener("BackgroundPageThumbs:capture",
                        this._onCapture.bind(this));
     docShell.
       QueryInterface(Ci.nsIInterfaceRequestor).
       getInterface(Ci.nsIWebProgress).
       addProgressListener(this, Ci.nsIWebProgress.NOTIFY_STATE_WINDOW);
   },