Worker debugging wrapper rules may not be workable
Categories
(DevTools :: Debugger, defect, P3)
Tracking
(firefox69 fixed)
Tracking | Status | |
---|---|---|
firefox69 | --- | fixed |
People
(Reporter: jimb, Assigned: bhackett1024)
References
(Blocks 1 open bug)
Details
(Whiteboard: [debugger-mvp])
Attachments
(3 files)
Reporter | ||
Comment 1•8 years ago
|
||
Comment 2•7 years ago
|
||
Updated•6 years ago
|
Comment 3•6 years ago
|
||
Ping jim, is this still relevant?
Assignee | ||
Comment 5•6 years ago
|
||
In bug 1522244 I replaced this crash with a JS exception, but I think it would be good to remove this check entirely because it interferes with attempts to access the debuggee object outside the Debugger.Object methods. This prevents server inspection logic written for the main thread from working in workers, and bug 1522244 and bug 1533202 had to add workarounds for these problems. Those workarounds have their own problems too, though, see bug 1547320.
Updated•6 years ago
|
Assignee | ||
Comment 6•6 years ago
|
||
This patch changes the worker wrapping rules to allow the same logic used on the main thread to call debugger natives on debuggee values to work. When wrapping a debugger value into the debuggee, an opaque CCW is used. The only reason we do this when calling a debugger native on a debuggee value is to wrap the callee function into the debuggee before calling the native on it. This callee function isn't used at all so things work fine if it is an opaque CCW, and keeping these wrappers opaque seems like the right thing to do (the debuggee shouldn't have unfettered access to debugger objects it gets its hands on).
All the special worker logic to reimplement this stuff is removed as well, though we have to make sure to use the Debugger.Object API when accessing produced debuggee values (like iterators) as they are still opaque CCWs.
Updated•6 years ago
|
Assignee | ||
Comment 7•6 years ago
|
||
Assignee | ||
Comment 8•6 years ago
|
||
Depends on D32872
Comment 10•5 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/88266effc976
https://hg.mozilla.org/mozilla-central/rev/86f6fc53e2fd
Reporter | ||
Updated•3 years ago
|
Description
•