Firefox · Core
CVE-2024-9394
Cross Origin in Core
Overview
High
Severity
—
CVSS
No
Exploited ITW
Fixed
Fix Status
Changed Functions
| Function | Change | Notes |
|---|---|---|
asyncConvertDatadevtools/client/jsonview/converter-child.js |
modified | |
getConvertedTypedevtools/client/jsonview/converter-child.js |
modified | |
ifdevtools/client/jsonview/converter-child.js |
modified |
Files Changed
devtools/client/jsonview/converter-child.js
Patch
diff --git a/devtools/client/jsonview/converter-child.js b/devtools/client/jsonview/converter-child.js
index e249de01802..3c8c9fcc5dc 100644
--- a/devtools/client/jsonview/converter-child.js
+++ b/devtools/client/jsonview/converter-child.js
@@ -72,7 +72,13 @@ Converter.prototype = {
asyncConvertData(fromType, toType, listener) {
this.listener = listener;
},
- getConvertedType() {
+ getConvertedType(_fromType, channel) {
+ if (channel instanceof Ci.nsIMultiPartChannel) {
+ throw new Components.Exception(
+ "JSONViewer doesn't support multipart responses.",
+ Cr.NS_ERROR_FAILURE
+ );
+ }
return "text/html";
},
Loading diff…
References
On This Page