Closed Bug 1659969 Opened 4 years ago Closed 4 years ago

Debugger is missing sources with fission enabled and remote frames

Categories

(DevTools :: Debugger, defect, P3)

defect

Tracking

(Fission Milestone:MVP, firefox83 fixed)

RESOLVED FIXED
83 Branch
Fission Milestone MVP
Tracking Status
firefox83 --- fixed

People

(Reporter: jdescottes, Assigned: ochameau)

References

(Blocks 1 open bug)

Details

(Whiteboard: dt-fission-m2-mvp)

Attachments

(3 files)

STRs:

ER:
Debugger should show sources from the parent page and from the remote frames

AR:
Debugger only shows sources for the remote frame

Added a mochitest that currently fails with fission because it shows one interesting thing: all sources are correctly in the state, but the source tree only shows the remote one.

I tried to bisect a bit, but I am not sure we ever supported fission frames for the debugger in the content toolbox.
In older revisions, instead of seeing only the frame sources, we see the root sources. I am not sure when this changed to show only frame sources, but it never worked perfectly it seems.

Fission Milestone: --- → M6c
Blocks: 1574350
Whiteboard: dt-fission-m2-mvp
Whiteboard: dt-fission-m2-mvp → dt-fission-m2-reserve

I can simply reproduce the issue on my machine. Thanks Julian for the test case.
I see both sources when Fission is disabled.

Honza

We should retest as soon as bug 1620280 lands. There is a chance this could be fixed.

Depends on: 1620280

Bulk move of all dt-fission-m2-reserve bugs to Fission MVP milestone.

Fission Milestone: M6c → MVP

(In reply to Jan Honza Odvarko [:Honza] (always need-info? me) from comment #5)

We should retest as soon as bug 1620280 lands. There is a chance this could be fixed.

I can still reproduce the reported issue.

(In reply to Julian Descottes [:jdescottes] from comment #3)

I tried to bisect a bit, but I am not sure we ever supported fission frames for the debugger in the content toolbox.
In older revisions, instead of seeing only the frame sources, we see the root sources. I am not sure when this changed to show only frame sources, but it never worked perfectly it seems.

+1, additional frame targets were all considered "main thread type":
https://searchfox.org/mozilla-central/source/devtools/client/debugger/src/client/firefox/create.js#101-111
and so later on in the reducer:
https://searchfox.org/mozilla-central/source/devtools/client/debugger/src/reducers/threads.js#95
returned an empty list of additional targets.

It is probably time for the debugger to use regular target object instead of wrapping it to yet another different type of objects with different attributes.

Assignee: nobody → poirot.alex
Status: NEW → ASSIGNED
Whiteboard: dt-fission-m2-reserve → dt-fission-m2-mvp
Attachment #9170918 - Attachment description: Bug 1659969 - Add Debugger test for sources from remote frames → Bug 1659969 - [devtools] Add Debugger test for sources from remote frames
Pushed by apoirot@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/d30d1bcf966c [devtools] Use isTopLevel attribute to know if a given target is the "main one". r=jdescottes https://hg.mozilla.org/integration/autoland/rev/ae2c48cf3d57 [devtools] Pass TargetMixin.targetType to debugger codebase in order to distinguish the targets. r=jdescottes https://hg.mozilla.org/integration/autoland/rev/f685f13226cd [devtools] Add Debugger test for sources from remote frames r=ochameau
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 83 Branch
Blocks: 1672327
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: