Closed
Bug 1227139
Opened 9 years ago
Closed 9 years ago
Webconsole is broken for addons and browser content toolbox - this.window.performance is undefined
Categories
(DevTools :: about:debugging, defect)
DevTools
about:debugging
Tracking
(firefox44+ fixed, firefox45 fixed)
RESOLVED
FIXED
Firefox 45
People
(Reporter: ochameau, Assigned: ochameau)
References
Details
Attachments
(1 file, 1 obsolete file)
(deleted),
patch
|
ochameau
:
review+
ritu
:
approval-mozilla-aurora+
|
Details | Diff | Splinter Review |
Because of the following exception:
getCachedMessages: TypeError: this.window.performance is undefined\nStack: WCA_onGetCachedMessages@resource://gre/modules/commonjs/toolkit/loader.js -> file:///mnt/desktop/gecko/devtools//server/actors/webconsole.js:741
Assignee | ||
Comment 1•9 years ago
|
||
It seems to be also broken for the browser content toolbox.
Summary: Webconsole is broken for addons - this.window.performance is undefined → Webconsole is broken for addons and browser content toolbox - this.window.performance is undefined
Assignee | ||
Comment 2•9 years ago
|
||
Assignee | ||
Updated•9 years ago
|
Attachment #8691396 -
Flags: review?(bgrinstead)
Comment 3•9 years ago
|
||
Comment on attachment 8691396 [details] [diff] [review]
patch v1
Review of attachment 8691396 [details] [diff] [review]:
-----------------------------------------------------------------
Please update commit message to describe the fix - maybe 'Fix the webconsole for addon and browser content toolbox by handling a missing performance property on this.window'.
::: devtools/server/actors/webconsole.js
@@ +736,5 @@
> if (!this.consoleAPIListener) {
> break;
> }
>
> + let requestStartTime = this.window && this.window.performance ?
So I checked into this for Browser Content Toolbox and it seems that this.window is coming from this._consoleScope on the ChildProcessActor which is a Sandbox. I'm assuming that's the same setup when debugging addons.
Can you add a comment above this condition explaining that this.window can be a Sandbox in Addon or Browser Content Toolbox?
Attachment #8691396 -
Flags: review?(bgrinstead) → review+
Updated•9 years ago
|
Status: NEW → ASSIGNED
Comment 4•9 years ago
|
||
[Tracking Requested - why for this release]: This is a regression from Bug 1222617 and should go to aurora along with that bug if/when it gets uplifted
status-firefox45:
--- → affected
tracking-firefox44:
--- → ?
Assignee | ||
Comment 5•9 years ago
|
||
Feel free to review the comment I added.
Attachment #8691425 -
Flags: review+
Assignee | ||
Updated•9 years ago
|
Attachment #8691396 -
Attachment is obsolete: true
Assignee | ||
Comment 6•9 years ago
|
||
Assignee | ||
Comment 7•9 years ago
|
||
Assignee | ||
Comment 8•9 years ago
|
||
https://hg.mozilla.org/integration/fx-team/rev/f516533b96a46764f288d336415e5a8aa3468e21
Bug 1227139 - Fix the webconsole for addon and browser content toolbox by handling a missing performance property on this.window. r=bgrins
Comment 9•9 years ago
|
||
Comment on attachment 8691425 [details] [diff] [review]
patch v2
Approval Request Comment
[Feature/regressing bug #]: 1222617
[User impact if declined]: Browser Content Toolbox / Addon Toolbox console won't retrieve cached messages (chrome debugging only)
[Describe test coverage new/current, TreeHerder]: No new coverage.. These special toolbox processes don't have any test coverage AFAIK
[Risks and why]: Limited risk. This is only changing behavior for these special chrome debugging cases, and it's a trivial change that adds an extra check on a property before accessing it.
[String/UUID change made/needed]:
Attachment #8691425 -
Flags: approval-mozilla-aurora?
Comment 10•9 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 45
Tracked since it's a regression that occurred in FF44.
status-firefox44:
--- → affected
Comment on attachment 8691425 [details] [diff] [review]
patch v2
This patch fixes a regression and has been on nightly for a few days, seems safe to uplift to Aurora44.
Attachment #8691425 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Comment 13•9 years ago
|
||
bugherder uplift |
Comment 14•9 years ago
|
||
bugherder uplift |
status-b2g-v2.5:
--- → fixed
Updated•6 years ago
|
Product: Firefox → DevTools
status-b2g-v2.5:
fixed → ---
You need to log in
before you can comment on or make changes to this bug.
Description
•