Commit 46657c33 authored by henry's avatar henry
Browse files

fixup! TB 40701: Add security warning when downloading a file

TB 44411: Switch DownloadsTorWarning.sys.mjs to moz-src URI.
parent cd751ee0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -9,7 +9,7 @@ const { PrivateBrowsingUtils } = ChromeUtils.importESModule(
);

const { DownloadsTorWarning } = ChromeUtils.importESModule(
  "resource:///modules/DownloadsTorWarning.sys.mjs"
  "moz-src:///browser/components/downloads/DownloadsTorWarning.sys.mjs"
);

var ContentAreaDownloadsView = {
+2 −1
Original line number Diff line number Diff line
@@ -41,7 +41,8 @@ ChromeUtils.defineESModuleGetters(this, {
  NetUtil: "resource://gre/modules/NetUtil.sys.mjs",
  PlacesUtils: "resource://gre/modules/PlacesUtils.sys.mjs",
  PrivateBrowsingUtils: "resource://gre/modules/PrivateBrowsingUtils.sys.mjs",
  DownloadsTorWarning: "resource:///modules/DownloadsTorWarning.sys.mjs",
  DownloadsTorWarning:
    "moz-src:///browser/components/downloads/DownloadsTorWarning.sys.mjs",
});

const { Integration } = ChromeUtils.importESModule(
+2 −1
Original line number Diff line number Diff line
@@ -17,7 +17,8 @@ ChromeUtils.defineESModuleGetters(this, {
  PlacesBackups: "resource://gre/modules/PlacesBackups.sys.mjs",
  PrivateBrowsingUtils: "resource://gre/modules/PrivateBrowsingUtils.sys.mjs",
  DownloadUtils: "resource://gre/modules/DownloadUtils.sys.mjs",
  DownloadsTorWarning: "resource:///modules/DownloadsTorWarning.sys.mjs",
  DownloadsTorWarning:
    "moz-src:///browser/components/downloads/DownloadsTorWarning.sys.mjs",
});
XPCOMUtils.defineLazyScriptGetter(
  this,