Logpoints do not work for workers
Categories
(DevTools :: Debugger, defect, P1)
Tracking
(firefox74 fixed)
Tracking | Status | |
---|---|---|
firefox74 | --- | fixed |
People
(Reporter: jlast, Assigned: jlast)
References
(Blocks 2 open bugs)
Details
Attachments
(1 file)
What were you doing?
STR:
- go to http://dbg-workers.glitch.me/
- add a logpoint on worker.js:22 in onMessage
- click the button
ER: see the log in the console
AR: see the error threadActor._parent._consoleActor is undefined
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Comment 1•4 years ago
|
||
I tried this in an earlier nightly (september 2019) and it did not work. I don't think it ever worked.
Assignee | ||
Comment 2•4 years ago
|
||
diff --git a/devtools/server/startup/worker.js b/devtools/server/startup/worker.js
index b53736d7a1734..055f1d8c100de 100644
--- a/devtools/server/startup/worker.js
+++ b/devtools/server/startup/worker.js
@@ -116,6 +116,7 @@ this.addEventListener("message", function(event) {
const consoleActor = new WebConsoleActor(connection, parent);
pool.addActor(consoleActor);
+ parent._consoleActor = consoleActor;
This fixes the first half. The second part is an error with messages.arguments
not having a map
function. I'm not sure what to do with that.
Assignee | ||
Comment 3•4 years ago
|
||
Updated•4 years ago
|
Pushed by jlaster@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/0e538f767312 Logpoints do not work for workers. r=bhackett,nchevobbe
Comment 5•4 years ago
|
||
Backed out changeset 0e538f767312 (bug 1607923) for XPCShell in devtools/server/tests/unit/test_logpoint-01.js. CLOSED TREE
Log:
https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=285137558&repo=autoland&lineNumber=821
Push with failures:
https://treeherder.mozilla.org/#/jobs?repo=autoland&group_state=expanded&revision=0e538f767312b0fff2dfed404e998cf06bbcf755
Backout:
https://hg.mozilla.org/integration/autoland/rev/e69960479b2ad9c896146229645a62da5bf3586f
Pushed by jlaster@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/6e34bbd02f6d Logpoints do not work for workers. r=bhackett,nchevobbe
Comment 7•4 years ago
|
||
bugherder |
Updated•2 years ago
|
Description
•