Closed Bug 1582732 Opened 5 years ago Closed 3 years ago

The grid-inspector should update its cached list of LayoutFront instances when targets are added or removed

Categories

(DevTools :: Inspector: Layout, defect, P2)

defect

Tracking

(Fission Milestone:MVP)

RESOLVED DUPLICATE of bug 1707884
Fission Milestone MVP

People

(Reporter: pbro, Unassigned)

References

(Blocks 1 open bug)

Details

In bug 1568857 we made it so the grid inspector would first list all of the targets that exist in the debuggee (i.e. the debuggee's top level document itself + all nested frames).

However we made it do this only once, when the tool starts.
This means that if new nested frames are added, or existing frames removed, or even when we do a process switch during a page navigation, then the list of targets is going to be outdated.

We should therefore listen to the right events to update this list of targets.
The relevant code is here: https://hg.mozilla.org/mozilla-central/file/tip/devtools/client/inspector/grids/grid-inspector.js#l116

Depends on: 1471754
No longer depends on: 1471754
Depends on: 1578242

The list of grids shown in the grid-inspector is updated on reflow. So I think we should first wait for bug 1580463 to land. And then make changes to the grid-inspector so it listens for reflows in all of the targets it cares about. We should also make it use the TargetList API so it refreshes its list of targets whenever needed.

Depends on: 1580463
Whiteboard: dt-fission-reserve → dt-fission-m2-mvp

Tracking for Fission Nightly (M6)

Fission Milestone: --- → M6
Priority: P3 → P2

Tracking dt-fission-m2-mvp bugs for Fission Nightly milestone (M6c)

Fission Milestone: M6 → M6c

If we show grids from targets other than the top-level target, clicking on them wouldn’t do anything unless we have the CSS Grid Highlighter adapted for Fission.

Blocking on Bug 1572652.

Depends on: 1572652
Whiteboard: dt-fission-m2-mvp → dt-fission-m2-reserve

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

Fission Milestone: M6c → MVP
No longer depends on: 1572652
Whiteboard: dt-fission-m2-reserve → dt-fission-m3-mvp

Verified still happening on today's mozilla-central.

STRs:

  • enable fission.autostart
  • open https://root-grid-fission.glitch.me/
  • open the inspector, select the layout tab (one grid element should be listed in the Grid section)
  • click on the "Add new iframe" button

ER: A new grid element should be listed in the Grid section (this is what happens when fission is disabled)
AR: Nothing happens

To fix this, we should use the target list and update the list of layoutFronts when a new target becomes available.
Note that we will also need to update the list when a target gets destroyed (eg removing the frame from the STRs).
We could use a similar pattern as the one found in node-picker.js: targetAvailable + watchFronts("inspector"). See https://searchfox.org/mozilla-central/rev/07342ce09126c513540c1c343476e026cfa907bf/devtools/client/inspector/node-picker.js#127

Moving some dt-fission-m3-mvp bugs from Fission MVP to M7 (blocking Beta experiment).

Fission Milestone: MVP → M7

Tracking dt-fission-m3-mvp test and infrastructure bugs for Fission M8 (blocking Release experiment).

Fission Milestone: M7 → M8

Tracking DevTools Post-M8 bugs for Fission MVP milestone. They don't block the Fission Release channel experiment, but we would like them to be completed before we roll out Fission by default.

Fission Milestone: M8 → MVP

Closing as dupe of the newer bug 1707884.
I don't think the existing discussing adds much here.

Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → DUPLICATE
Whiteboard: dt-fission-m3-mvp
You need to log in before you can comment on or make changes to this bug.