Open
Bug 1277930
Opened 8 years ago
Updated 2 years ago
TypeError: win is null exception in PresentationControlService Promise is being thrown on shutdown
Categories
(Core :: DOM: Device Interfaces, defect, P5)
Core
DOM: Device Interfaces
Tracking
()
NEW
People
(Reporter: mconley, Unassigned)
Details
(Whiteboard: btpp-followup-2016-07-05)
I'm seeing this a lot in my terminal after running a single mochitest: -*- PresentationControlService.js: PresentationControlService - close ************************* A coding exception was thrown in a Promise resolution callback. See https://developer.mozilla.org/Mozilla/JavaScript_code_modules/Promise.jsm/Promise Full message: TypeError: win is null Full stack: onSuccess@file:///Users/mikeconley/Projects/mozilla-central/obj-x86_64-apple-darwin14.5.0/dist/Nightly.app/Contents/Resources/browser/components/nsBrowserGlue.js:845:17 Handler.prototype.process@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:937:23 this.PromiseWalker.walkerLoop@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:816:7 Promise*this.PromiseWalker.scheduleWalkerLoop@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:747:11 this.PromiseWalker.schedulePromise@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:779:7 this.PromiseWalker.completePromise@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:714:7 get _worker/worker.onmessage@resource://gre/modules/PromiseWorker.jsm:231:9 Spinner.prototype.observe@resource://gre/modules/AsyncShutdown.jsm:551:9 *************************
Comment 2•8 years ago
|
||
I'm out of office this week. Could you help with this, SC?
Flags: needinfo?(juhsu) → needinfo?(schien)
Comment 3•8 years ago
|
||
This log is just happens to be there during shutdown but probably doesn't have relation to this error. You can try comment out this line [1] to prevent PresentationControlService to be loaded, and see if this error still happened. [1] https://dxr.mozilla.org/mozilla-central/source/dom/presentation/provider/PresentationDeviceProviderModule.cpp#44
Flags: needinfo?(schien)
Comment 4•8 years ago
|
||
BTW, the error log is in browser/components/nsBrowserGlue.js:845 while trying to get the most recent window. I think there should be no window at shutdown phase.
Updated•7 years ago
|
Component: DOM → DOM: Device Interfaces
Priority: -- → P5
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•