Handler function DebuggerProgressListener.prototype.onStateChange threw an exception (NS_NOINTERFACE) [nsIWebProgress.DOMWindow]

NEW
Unassigned

Status

()

Firefox
Developer Tools
P3
normal
2 years ago
a year ago

People

(Reporter: robwu, Unassigned)

Tracking

48 Branch
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

2 years ago
Tested with Firefox 48 and Nightly 51 (with e10s disabled).

STR:
1. Open a popup that closes itself at the window.onload event:
   window.open('data:text/html,<body onload=close()>');
2. Look at the global error console.

Expected:
- No messages

Actual (this only happens in non-e10s):
The console shows the following two errors. Note that this only happens when the popup is closed during the onload event. The errors do not appear when I schedule a close in a microtask or close when the window has just opened.

Handler function DebuggerProgressListener.prototype.onStateChange threw an exception: [Exception... "Component returned failure code: 0x80004002 (NS_NOINTERFACE) [nsIWebProgress.DOMWindow]"  nsresult: "0x80004002 (NS_NOINTERFACE)"  location: "JS frame :: resource://gre/modules/commonjs/toolkit/loader.js -> resource://devtools/server/actors/webbrowser.js :: _docShellsToWindows/< :: line 1378"  data: no]
Stack: _docShellsToWindows/<@resource://gre/modules/commonjs/toolkit/loader.js -> resource://devtools/server/actors/webbrowser.js:1378:11
_docShellsToWindows@resource://gre/modules/commonjs/toolkit/loader.js -> resource://devtools/server/actors/webbrowser.js:1375:12
_notifyDocShellsUpdate@resource://gre/modules/commonjs/toolkit/loader.js -> resource://devtools/server/actors/webbrowser.js:1406:19
DebuggerProgressListener.prototype.onStateChange<@resource://gre/modules/commonjs/toolkit/loader.js -> resource://devtools/server/actors/webbrowser.js:2495:7
exports.makeInfallible/<@resource://gre/modules/commonjs/toolkit/loader.js -> resource://devtools/shared/ThreadSafeDevToolsUtils.js:101:14
Line: 1378, column: 0

Handler function DebuggerProgressListener.prototype.onStateChange threw an exception: [Exception... "Component returned failure code: 0x80004002 (NS_NOINTERFACE) [nsIWebProgress.DOMWindow]"  nsresult: "0x80004002 (NS_NOINTERFACE)"  location: "JS frame :: resource://gre/modules/commonjs/toolkit/loader.js -> resource://devtools/server/actors/webbrowser.js :: DebuggerProgressListener.prototype.onStateChange< :: line 2498"  data: no]
Stack: DebuggerProgressListener.prototype.onStateChange<@resource://gre/modules/commonjs/toolkit/loader.js -> resource://devtools/server/actors/webbrowser.js:2498:9
exports.makeInfallible/<@resource://gre/modules/commonjs/toolkit/loader.js -> resource://devtools/shared/ThreadSafeDevToolsUtils.js:101:14
Line: 2498, column: 0
Priority: -- → P3
I noticed these error occurring constantly under the browser console when I was going through the latest blocklist in bug#1363513.

>> Actual (this only happens in non-e10s)

The issue is reproducible with with e10s using the STR mentioned below with the latest fx55.0a1, buildid: 20170511063838, changeset: 838652a84b76.

STR (used a clean profile every time)

* install/launch fx
* visit http://www.adobe.com/software/flash/about/
* open the browser console via the Hamburger Menu -> Developer -> Browser Console

You'll see the error messages Rob mentioned in comment#0.

Platforms:
* macOS 10.12.4 x64 - Reproduced
* Win 10 Pro x64 VM - Reproduced
* Ubuntu 16.04.2 LTS x64 VM - Reproduced
You need to log in before you can comment on or make changes to this bug.