mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-14 20:22:00 +00:00
Bug 1918874 - Don't display json in the json viewer coming from a multipart response. r=devtools-reviewers,ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D222616
This commit is contained in:
parent
155c74eb98
commit
192fd83525
@ -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…
x
Reference in New Issue
Block a user