Open Bug 2034916 Opened 3 months ago Updated 3 months ago

Changing node view options should immediately take effect

Categories

(DevTools :: Inspector, defect, P3)

defect

Tracking

(Not tracked)

People

(Reporter: sebo, Unassigned)

References

Details

Toggling the "Truncate DOM attributes" option or the "Show comments" option (see bug 1455294) or changing the length for collapsing attributes via the pref devtools.markup.collapseAttributeLength is supposed to take effect immediately. Though that's currently not the case.

The reason for that seems to be that the called update() method doesn't update the markup view as expected.

Toggling those options should probably cause a full refresh of the markup view. It needs to be ensured, though, that the current state of the view is recreated.
The other option would be to try to be smart and only update the parts of the view that change by toggling the related option. Though that's probably also more complex than completely recreating the view.

Sebastian

Full refresh would be OK here. If we can't fix it, we should at least mention it in the label of the setting item (eg "reload the page" or "reopen devtools" depending on what applies here).

Severity: -- → S3
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.