Console SPAM from window.open, stack trace included

UNCONFIRMED
Unassigned

Status

()

Firefox
General
UNCONFIRMED
3 years ago
3 years ago

People

(Reporter: Duncan Loveday, Unassigned)

Tracking

Trunk
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

3 years ago
User Agent: Mozilla/5.0 (Windows NT 6.1; rv:38.0) Gecko/20100101 Firefox/38.0
Build ID: 20150525141253

Steps to reproduce:

Run an app that executes window.open()


Actual results:

The following appears on the console from which firefox is run

WARNING: content window passed to PrivateBrowsingUtils.isWindowPrivate. Use isContentWindowPrivate instead (but only for frame scripts).
pbu_isWindowPrivate@resource://gre/modules/PrivateBrowsingUtils.jsm:25:14
nsBrowserAccess.prototype.openURI@chrome://browser/content/browser.js:15258:21
openComfortWindowGuts@file:///H:/hudson/workspace/bptm_presentation_tool_cit_01/BPTM/trunk/PVTools/test/javascript/coverage/BPTMUtils.js:5022:23
writeComfortGuts@file:///H:/hudson/workspace/bptm_presentation_tool_cit_01/BPTM/trunk/PVTools/test/javascript/coverage/BPTMUtils.js:5212:9
writeComfort@file:///H:/hudson/workspace/bptm_presentation_tool_cit_01/BPTM/trunk/PVTools/test/javascript/coverage/BPTMUtils.js:5191:10
Diagram.prototype.draw@file:///H:/hudson/workspace/bptm_presentation_tool_cit_01/BPTM/trunk/PVTools/test/javascript/coverage/BPTMDiagram.js:9929:9
Thread.prototype._run@file:///H:/hudson/workspace/bptm_presentation_tool_cit_01/BPTM/trunk/PVTools/test/javascript/coverage/Thread.js:262:1
Thread.prototype.resume@file:///H:/hudson/workspace/bptm_presentation_tool_cit_01/BPTM/trunk/PVTools/test/javascript/coverage/Thread.js:139:3
Thread.prototype.start@file:///H:/hudson/workspace/bptm_presentation_tool_cit_01/BPTM/trunk/PVTools/test/javascript/coverage/Thread.js:134:3
spawn@file:///H:/hudson/workspace/bptm_presentation_tool_cit_01/BPTM/trunk/PVTools/test/javascript/coverage/Thread.js:297:10
loadSVGBody@file:///H:/hudson/workspace/bptm_presentation_tool_cit_01/BPTM/trunk/PVTools/test/javascript/coverage/BPTMDiagram.js:7846:3
onload@file:///H:/hudson/workspace/bptm_presentation_tool_cit_01/BPTM/trunk/PVTools/test/javascript/coverage/BPTMDiagram.html:1:1
openModalWindow@resource://gre/components/nsPrompter.js:370:5
ModalPrompter.prototype.openPrompt@resource://gre/components/nsPrompter.js:553:9
ModalPrompter.prototype.confirmEx@resource://gre/components/nsPrompter.js:697:9
Prompter.prototype.confirmEx@resource://gre/components/nsPrompter.js:79:16
DefaultBrowserCheck.prompt@jar:file:///C:/Program%20Files%20(x86)/Mozilla%20Firefox/browser/omni.ja!/components/nsBrowserGlue.js:2502:16
BG__onWindowsRestored/<@jar:file:///C:/Program%20Files%20(x86)/Mozilla%20Firefox/browser/omni.ja!/components/nsBrowserGlue.js:925:11

The last line of my own code is

/bptm_presentation_tool_cit_01/BPTM/trunk/PVTools/test/javascript/coverage/BPTMUtils.js:5022:23

which is

    UTComfortWindow = w.open("about:blank", "BPTMComfort" + new Date().getTime(), attribs);

Have seems some other bugs about this message but those are FIXED, I still have this on 38.0.5


Expected results:

Nothing should be written
(Reporter)

Comment 1

3 years ago
https://bugzilla.mozilla.org/show_bug.cgi?id=1079805 may be relevant, however this is a duplicate of a bug marked as FIXED in 38.0 so possibly this is something different.

Updated

3 years ago
Component: Untriaged → Developer Tools: Console
Product: Core → Firefox
The code that should be modified according to the warning is not in devtools, but in browser.js.
Component: Developer Tools: Console → General
You need to log in before you can comment on or make changes to this bug.