Closed Bug 1592871 Opened 6 years ago Closed 6 years ago

The ruleview will be broken if inspects visited link which has style attribute

Categories

(DevTools :: Inspector: Rules, defect, P1)

defect

Tracking

(firefox71 fixed, firefox72 fixed)

RESOLVED FIXED
Firefox 72
Tracking Status
firefox71 --- fixed
firefox72 --- fixed

People

(Reporter: daisuke, Assigned: daisuke)

Details

Attachments

(3 files)

I got a report for a bug that breaks the ruleview from Brian.

STRs:

  1. Open the attachment
  2. Inspect a link in the document
    ER: Can inspect correctly
    AR: Will be blank

I have investigated a bit.
Since it seems that the reason is the style which is defined by style attribute does not handle as CSSStyleRule, InspectorUtils.getSelectorCount() throw an exception.
This makes the ruleview to be a blank.

Pushed by dakatsuka.birchill@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/6583ceda5259 Avoid passing not CSSStyleRule object into InspectorUtils.getSelectorCount(). r=gl https://hg.mozilla.org/integration/autoland/rev/e71a201cbda0 Add test whether the ruleview will not be broken. r=gl
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 72

Comment on attachment 9105459 [details]
Bug 1592871: Avoid passing not CSSStyleRule object into InspectorUtils.getSelectorCount(). r?pbro

Beta/Release Uplift Approval Request

  • User impact if declined: The ruleview of the inspector will be broken if user inspects a link which has :visited state and style attribute.
  • Is this code covered by automated tests?: Yes
  • Has the fix been verified in Nightly?: Yes
  • Needs manual test from QE?: No
  • If yes, steps to reproduce:
  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): This change is one line and affects only the ruleview.
  • String changes made/needed:
Attachment #9105459 - Flags: approval-mozilla-beta?
Attachment #9105460 - Flags: approval-mozilla-beta?

Comment on attachment 9105459 [details]
Bug 1592871: Avoid passing not CSSStyleRule object into InspectorUtils.getSelectorCount(). r?pbro

P1, minimal patch, impacts devtool users only, uplift approved for 71 beta 7, thanks.

Attachment #9105459 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
Attachment #9105460 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: