summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-06-17 14:20:50 +0200
committerjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-06-17 14:20:50 +0200
commit6e567403cb5d8e7732180c920e5c7d99339bc8c7 (patch)
tree3b4df72bd92f53196400b029ca69d21705b3100f
parent6dd31012f0948af8334a730681421e0efb32cdf0 (diff)
downloadUXP-6e567403cb5d8e7732180c920e5c7d99339bc8c7.tar
UXP-6e567403cb5d8e7732180c920e5c7d99339bc8c7.tar.gz
UXP-6e567403cb5d8e7732180c920e5c7d99339bc8c7.tar.lz
UXP-6e567403cb5d8e7732180c920e5c7d99339bc8c7.tar.xz
UXP-6e567403cb5d8e7732180c920e5c7d99339bc8c7.zip
Added Ci.nsIContentPolicy.TYPE_SAVEAS_DOWNLOAD to next files
-rw-r--r--devtools/client/netmonitor/request-utils.js3
-rw-r--r--extensions/permissions/nsContentBlocker.cpp1
-rw-r--r--toolkit/modules/addons/WebRequestCommon.jsm1
3 files changed, 4 insertions, 1 deletions
diff --git a/devtools/client/netmonitor/request-utils.js b/devtools/client/netmonitor/request-utils.js
index 647d71e7c..90fb0c957 100644
--- a/devtools/client/netmonitor/request-utils.js
+++ b/devtools/client/netmonitor/request-utils.js
@@ -177,7 +177,8 @@ const LOAD_CAUSE_STRINGS = {
[Ci.nsIContentPolicy.TYPE_BEACON]: "beacon",
[Ci.nsIContentPolicy.TYPE_FETCH]: "fetch",
[Ci.nsIContentPolicy.TYPE_IMAGESET]: "imageset",
- [Ci.nsIContentPolicy.TYPE_WEB_MANIFEST]: "webManifest"
+ [Ci.nsIContentPolicy.TYPE_WEB_MANIFEST]: "webManifest",
+ [Ci.nsIContentPolicy.TYPE_SAVEAS_DOWNLOAD]: "saveasDownload"
};
exports.loadCauseString = function (causeType) {
diff --git a/extensions/permissions/nsContentBlocker.cpp b/extensions/permissions/nsContentBlocker.cpp
index cc2162b70..278ec21a0 100644
--- a/extensions/permissions/nsContentBlocker.cpp
+++ b/extensions/permissions/nsContentBlocker.cpp
@@ -46,6 +46,7 @@ static const char *kTypeString[] = {
"fetch",
"image",
"manifest",
+ "saveas_download",
"", // TYPE_INTERNAL_SCRIPT
"", // TYPE_INTERNAL_WORKER
"", // TYPE_INTERNAL_SHARED_WORKER
diff --git a/toolkit/modules/addons/WebRequestCommon.jsm b/toolkit/modules/addons/WebRequestCommon.jsm
index 9359f4ff7..5dc860376 100644
--- a/toolkit/modules/addons/WebRequestCommon.jsm
+++ b/toolkit/modules/addons/WebRequestCommon.jsm
@@ -35,6 +35,7 @@ var WebRequestCommon = {
case Ci.nsIContentPolicy.TYPE_CSP_REPORT: return "csp_report";
case Ci.nsIContentPolicy.TYPE_IMAGESET: return "imageset";
case Ci.nsIContentPolicy.TYPE_WEB_MANIFEST: return "web_manifest";
+ case Ci.nsIContentPolicy.TYPE_SAVEAS_DOWNLOAD: return "saveas_download";
default: return "other";
}
},