The ruleview will be broken if inspects visited link which has style attribute
Categories
(DevTools :: Inspector: Rules, defect, P1)
Tracking
(firefox71 fixed, firefox72 fixed)
People
(Reporter: daisuke, Assigned: daisuke)
Details
Attachments
(3 files)
|
75 bytes,
text/html
|
Details | |
|
47 bytes,
text/x-phabricator-request
|
pascalc
:
approval-mozilla-beta+
|
Details | Review |
|
47 bytes,
text/x-phabricator-request
|
pascalc
:
approval-mozilla-beta+
|
Details | Review |
I got a report for a bug that breaks the ruleview from Brian.
STRs:
- Open the attachment
- 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.
| Assignee | ||
Comment 1•6 years ago
|
||
| Assignee | ||
Comment 2•6 years ago
|
||
Depends on D51219
Comment 4•6 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/6583ceda5259ab31ed77d8605f82f6fcb8c1d779
https://hg.mozilla.org/mozilla-central/rev/e71a201cbda0d753c7a2aa749dc46111b3c79e07
For some reason this bug didn't get marked as fixed.
Updated•6 years ago
|
| Assignee | ||
Comment 5•6 years ago
|
||
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:
| Assignee | ||
Updated•6 years ago
|
Comment 6•6 years ago
|
||
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.
Updated•6 years ago
|
Comment 7•6 years ago
|
||
| bugherder uplift | ||
https://hg.mozilla.org/releases/mozilla-beta/rev/b7587e88be5a
https://hg.mozilla.org/releases/mozilla-beta/rev/61390fc77873
Description
•