mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 955890 - Part 2: Fix some undefined property warnings in DevTools JS. r=rcampbell
This commit is contained in:
parent
c5937fbed4
commit
4780db17f8
@ -247,7 +247,7 @@ WebConsoleActor.prototype =
|
||||
* @type boolean
|
||||
*/
|
||||
get saveRequestAndResponseBodies()
|
||||
this._prefs["NetworkMonitor.saveRequestAndResponseBodies"],
|
||||
this._prefs["NetworkMonitor.saveRequestAndResponseBodies"] || null,
|
||||
|
||||
actorPrefix: "console",
|
||||
|
||||
|
@ -52,6 +52,8 @@
|
||||
* Mihai Sucan (Mozilla Corp.)
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
|
||||
const {components, Cc, Ci, Cu} = require("chrome");
|
||||
loader.lazyImporter(this, "NetUtil", "resource://gre/modules/NetUtil.jsm");
|
||||
|
||||
@ -428,7 +430,8 @@ let NetworkHelper = {
|
||||
return true;
|
||||
}
|
||||
|
||||
switch (this.mimeCategoryMap[aMimeType]) {
|
||||
let category = this.mimeCategoryMap[aMimeType] || null;
|
||||
switch (category) {
|
||||
case "txt":
|
||||
case "js":
|
||||
case "json":
|
||||
|
Loading…
Reference in New Issue
Block a user