Bug 1103280 - remove references to undefined REFERRER_POLICY_DEFAULT symbol. r=billm
authorSid Stamm <sstamm@mozilla.com>
Sat, 22 Nov 2014 05:14:00 +0100
changeset 241373 0e1bd8c6328460f0b459a7d36c09dac5337cbf5d
parent 241372 60943ff53aebaa01d0186a5baab60a3dd7eba669
child 241374 528869f666ffb47d53ae59f8fd6936e9a59362e0
push id4311
push userraliiev@mozilla.com
push dateMon, 12 Jan 2015 19:37:41 +0000
treeherdermozilla-beta@150c9fed433b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbillm
bugs1103280
milestone36.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1103280 - remove references to undefined REFERRER_POLICY_DEFAULT symbol. r=billm
toolkit/content/contentAreaUtils.js
toolkit/mozapps/extensions/LightweightThemeManager.jsm
--- a/toolkit/content/contentAreaUtils.js
+++ b/toolkit/content/contentAreaUtils.js
@@ -418,17 +418,18 @@ function internalPersist(persistArgs)
     persist.saveDocument(persistArgs.sourceDocument, targetFileURL, filesFolder,
                          persistArgs.targetContentType, encodingFlags, kWrapColumn);
   } else {
     let privacyContext = persistArgs.initiatingWindow
                                     .QueryInterface(Components.interfaces.nsIInterfaceRequestor)
                                     .getInterface(Components.interfaces.nsIWebNavigation)
                                     .QueryInterface(Components.interfaces.nsILoadContext);
     persist.saveURI(persistArgs.sourceURI,
-                    persistArgs.sourceCacheKey, persistArgs.sourceReferrer, Ci.nsIHttpChannel.REFERRER_POLICY_DEFAULT,
+                    persistArgs.sourceCacheKey, persistArgs.sourceReferrer,
+                    Ci.nsIHttpChannel.REFERRER_POLICY_NO_REFERRER_WHEN_DOWNGRADE,
                     persistArgs.sourcePostData, null, targetFileURL, privacyContext);
   }
 }
 
 /**
  * Structure for holding info about automatically supplied parameters for
  * internalSave(...). This allows parameters to be supplied so the user does not
  * need to be prompted for file info.
--- a/toolkit/mozapps/extensions/LightweightThemeManager.jsm
+++ b/toolkit/mozapps/extensions/LightweightThemeManager.jsm
@@ -767,17 +767,17 @@ function _persistImage(sourceURL, localF
     Ci.nsIWebBrowserPersist.PERSIST_FLAGS_AUTODETECT_APPLY_CONVERSION |
     (PERSIST_BYPASS_CACHE ?
        Ci.nsIWebBrowserPersist.PERSIST_FLAGS_BYPASS_CACHE :
        Ci.nsIWebBrowserPersist.PERSIST_FLAGS_FROM_CACHE);
 
   persist.progressListener = new _persistProgressListener(successCallback);
 
   persist.saveURI(sourceURI, null,
-                  null, Ci.nsIHttpChannel.REFERRER_POLICY_DEFAULT,
+                  null, Ci.nsIHttpChannel.REFERRER_POLICY_NO_REFERRER_WHEN_DOWNGRADE,
                   null, null, targetURI, null);
 }
 
 function _persistProgressListener(successCallback) {
   this.onLocationChange = function persistProgressListener_onLocationChange() {};
   this.onProgressChange = function persistProgressListener_onProgressChange() {};
   this.onStatusChange   = function persistProgressListener_onStatusChange() {};
   this.onSecurityChange = function persistProgressListener_onSecurityChange() {};