Exception in server-logger.js:238

RESOLVED INVALID

Status

RESOLVED INVALID
3 years ago
5 months ago

People

(Reporter: bugzilla.mozilla.org, Unassigned)

Tracking

Trunk

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

3 years ago
I'm getting the following exception when using a custom nsiChannel implementation

> Handler function threw an exception: TypeError: aChannel.loadInfo is null
> Stack: ServerLoggingListener<._matchRequest@resource://gre/modules/commonjs/toolkit/loader.js -> resource://devtools/shared/webconsole/server-logger.js:238:1
> ServerLoggingListener<.onExamineResponse<@resource://gre/modules/commonjs/toolkit/loader.js -> resource://devtools/shared/webconsole/server-logger.js:196:10
> makeInfallible/<@resource://gre/modules/commonjs/toolkit/loader.js -> resource://devtools/shared/DevToolsUtils.js:87:14
> Line: 238, column: 1

server-logger.js, lines 237ff:

>    if (!aChannel.loadInfo &&
>        aChannel.loadInfo.loadingDocument === null &&
>        aChannel.loadInfo.loadingPrincipal === Services.scriptSecurityManager.getSystemPrincipal()) {
>      return false;
>    }

the null check looks incorrect

Firefox 46.0a1 20151227030239
(Reporter)

Comment 1

3 years ago
Nevermind, I can work around this by implementing newChannel2
Status: UNCONFIRMED → RESOLVED
Last Resolved: 3 years ago
Resolution: --- → INVALID

Updated

5 months ago
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.