Closed Bug 1602797 Opened 4 years ago Closed 4 years ago

Remove PageStyle reference from inspector client

Categories

(DevTools :: Inspector, task, P3)

task

Tracking

(firefox73 fixed)

RESOLVED FIXED
Firefox 73
Tracking Status
firefox73 --- fixed

People

(Reporter: rcaliman, Assigned: rcaliman)

Details

Attachments

(1 file)

Follow-up from https://phabricator.services.mozilla.com/D55945#inline-340862

The PageStyle is requested as part of InspectorFront.initialize(). The Inspector client can retrieve it directly from that front.

With the Fission changes in place, the pageStyle is referenced contextually from the inspectorFront wherever it is needed.
This bug is to remove any leftover references to the pageStyle from the inspector client.

Summary: Get PageStyle in inspector client from InspectorFront → Remove PageStyle referece from inspector client
Summary: Remove PageStyle referece from inspector client → Remove PageStyle reference from inspector client

Fission changes made it so the PageStyle is referenced contextually from the InspectorFront of the NodeFront wherever needed. Most references in the code no longer use the static reference to PageStyle from the Inspector client (which only points to the top-level document anyway).

This patch removes that reference from the Inspector client and updates any leftover bits to use the contextual PageStyle from the abandoned /new Rules view and some tests.

The Shapes Highlighter tests will be refactored separately in Bug 1603066. This patch just corrects the references without attempting to cleanup the tests themselves.

Pushed by rcaliman@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/ac5b3b9c8366
Remove PageStyle references from Inspector client; r=jdescottes
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 73
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: