Closed Bug 1011663 Opened 10 years ago Closed 8 years ago

[e10s] Make CPOWs inspectable

Categories

(DevTools :: Debugger, defect)

defect
Not set
normal

Tracking

(e10s+)

RESOLVED WONTFIX
Tracking Status
e10s + ---

People

(Reporter: ally, Unassigned)

References

(Blocks 1 open bug)

Details

In multiprocess firefox, Cross Process Object Wrappers (CPOWs) are used in a number of places. I have noticed that some cpows properties are opaque to the browser toolbox.

- It would be awesome to see what those objects contain
- It would be awesome if background color or something changed to visually indicate that this object is a CPOW 
- It would be awesome if I could also attach a debugger to the child/content process. Currently it only attaches to the chrome/parent process

We'll be pushing addon developers to update their code for multiprocess firefox and I'd love for our tools to make it easier to puzzle out what's going on
I totally agree, making developers aware that they are using CPOWs is a good idea.
>- It would be awesome if I could also attach a debugger to the child/content process. Currently it only > attaches to the chrome/parent process
I opened bug 1011677 for that, because it's a bit different from the rest.
What kind of properties are opaque? How can I tell from chrome JS that a debuggee object is a CPOW without running debuggee code? I read that CPOWs for DOM objects have a remote="true" attribute, but what about plain JS objects?
We don't have a way to distinguish CPOWs from normal objects right now, but it sounds like we definitely need something for that. (CPOWs for DOM objects don't have a remote="true" attribute. That's only true for the <xul:browser> element, which is not a CPOW.)

I don't know why properties don't show up though.
tracking-e10s: --- → ?
OS: Mac OS X → All
Hardware: x86 → All
Bug 1014993 should make this easier. It exposes Cu.isCrossProcessWrapper to test if something is a CPOW.
Depends on: 1014993
Summary: debug, detect & color code CPOWs when debugging e10s code. → Make CPOWs inspectable
Depends on: dbg-inspect
Blocks: dbg-inspect
No longer depends on: dbg-inspect
These DevTools bugs should probably block e10s from riding to Aurora.
harthur says these DevTools bugs are not Aurora blockers for e10s.
Whiteboard: [e10s-m7]
Whiteboard: [e10s-m7] → [e10s-m6]
Whiteboard: [e10s-m6] → [e10s-m7]
Summary: Make CPOWs inspectable → [e10s] Make CPOWs inspectable
This is a new feature, it shouldn't block e10s.
Removing [e10s-m7] flag. We're agreed that this shouldn't block e10s
Whiteboard: [e10s-m7]
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → WONTFIX
I'm curious why this was resolved as wontfix? Is it no longer necessary to inspect CPOWS?
Flags: needinfo?(blassey.bugs)
(In reply to Eddy Bruel [:ejpbruel] from comment #9)
> I'm curious why this was resolved as wontfix? Is it no longer necessary to
> inspect CPOWS?

CPOWs are disallowed in browser code and eventually will be in add-on code, so implementing inspection of them doesn't seem to be worth the effort. However, if someone wants to work on this we can reopen it and prioritize it very low.
Flags: needinfo?(blassey.bugs)
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.