Closed
Bug 1333711
Opened 7 years ago
Closed 7 years ago
Rule-view is empty after page refresh if it was focused
Categories
(DevTools :: Inspector: Rules, defect, P2)
DevTools
Inspector: Rules
Tracking
(firefox51 unaffected, firefox52 unaffected, firefox53 fixed, firefox54 verified)
VERIFIED
FIXED
Firefox 54
Tracking | Status | |
---|---|---|
firefox51 | --- | unaffected |
firefox52 | --- | unaffected |
firefox53 | --- | fixed |
firefox54 | --- | verified |
People
(Reporter: pbro, Assigned: jdescottes)
References
Details
(Keywords: regression)
Attachments
(1 file)
59 bytes,
text/x-review-board-request
|
gl
:
review+
lizzard
:
approval-mozilla-aurora+
|
Details |
STR: - open the inspector on this page: http://labs.jensimmons.com/examples/grid-content-1.html - click on a value in the rule-view, so the editor appears and is focused - hit F5 (or ctrl+R) to refresh the page ==> The page refreshes, the inspector too, but the rule-view is completely empty. And the follow errors appear in the browser console: <unavailable> protocol.js:940 Protocol error (unknownError): A parameter or an operation is not supported by the underlying object utils.js:157 Protocol error (unknownError): A parameter or an operation is not supported by the underlying object rules.js:801
Updated•7 years ago
|
status-firefox52:
--- → unaffected
status-firefox53:
--- → affected
Updated•7 years ago
|
Keywords: regression,
regressionwindow-wanted
Reporter | ||
Comment 1•7 years ago
|
||
Inspector bug triage (filter on CLIMBING SHOES).
Blocks: top-inspector-bugs
Priority: -- → P2
Comment 2•7 years ago
|
||
Are we planning on fixing and uplifting? Is this being worked anywhere else?
Flags: needinfo?(pbrosset)
Reporter | ||
Comment 3•7 years ago
|
||
Yes we are. No one is working on this right now though. Julian: do you think you could add this to your list?
Flags: needinfo?(pbrosset) → needinfo?(jdescottes)
Assignee | ||
Comment 4•7 years ago
|
||
sure!
Assignee: nobody → jdescottes
Status: NEW → ASSIGNED
Flags: needinfo?(jdescottes)
Updated•7 years ago
|
status-firefox51:
--- → unaffected
status-firefox54:
--- → affected
Comment 5•7 years ago
|
||
Pushlog: https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=cbd4fb9f368e4ea3dd2efff323fc860aa407bdbe&tochange=fb4f5c7e082a4176cd1b8f3c784e5f424417e3fa
Keywords: regressionwindow-wanted
Assignee | ||
Comment 6•7 years ago
|
||
Thanks for the regression window! Based on it I could find that the issue was introduced by : https://hg.mozilla.org/integration/autoland/rev/7f137d9fa7ba (Bug 1151909). The relevant part of the changeset is that the inspector actor is now calling onFrameLoaded when receiving `window-ready` instead of `navigate`. `window-ready` is fired before `navigate` and from time to time, we will be initializing the inspector while some stylesheets are not fully loaded yet. In this case we hit Bug 625013, which is that accessing cssRules on a styleSheet will trigger a DOMException if the stylesheet is not loaded yet. A note about the STRs, focusing a value is not mandatory to reproduce the bug. When reloading the page, the rule view will randomly be blank or not.
Blocks: 1151909
Comment hidden (mozreview-request) |
Comment 8•7 years ago
|
||
mozreview-review |
Comment on attachment 8836747 [details] Bug 1333711 - guard against DOMExceptions when accessing stylesheet cssRules; https://reviewboard.mozilla.org/r/112094/#review114030 Gonna steal the review from pbro. Looks good to me!
Attachment #8836747 -
Flags: review+
Updated•7 years ago
|
Attachment #8836747 -
Flags: review?(pbrosset)
Pushed by jdescottes@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/20e11ca9a35f guard against DOMExceptions when accessing stylesheet cssRules;r=gl
Assignee | ||
Comment 10•7 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=5e1693d78b8d800940e193ebbe77b6b33266668a is green Thanks for the review Gabriel! Landing.
Comment 11•7 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/20e11ca9a35f
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 54
Comment 12•7 years ago
|
||
Please request Aurora approval on this when you get a chance.
Flags: needinfo?(jdescottes)
Assignee | ||
Comment 13•7 years ago
|
||
Comment on attachment 8836747 [details] Bug 1333711 - guard against DOMExceptions when accessing stylesheet cssRules; Approval Request Comment [Feature/Bug causing the regression]: Bug 1151909 [User impact if declined]: Devtools inspector : the rule view might be empty if a stylesheet is slow to load. [Is this code covered by automated tests?]: no [Has the fix been verified in Nightly?]: not yet [Needs manual test from QE? If yes, steps to reproduce]: - open the inspector on this page: http://labs.jensimmons.com/examples/grid-content-1.html - select the rule view in the inspector sidebar - reload the page (F5 or CTRL+R) a few times - check that the rule view is not blank after each reload [List of other uplifts needed for the feature/fix]: none [Is the change risky?]: no [Why is the change risky/not risky?]: devtools only, simply guarding against accessing a property that could throw an exception. [String changes made/needed]: no
Flags: needinfo?(jdescottes)
Attachment #8836747 -
Flags: approval-mozilla-aurora?
Comment 14•7 years ago
|
||
Hi Brindusa, could you help find someone to verify if this issue was fixed as expected on a latest Nightly build? Thanks!
Flags: needinfo?(brindusa.tot)
Comment 15•7 years ago
|
||
Hi, I tested this on Mac OS X 10.12, Ubuntu 16.04 and Windows 10 with FF Nightly 54.0a1 (2017-02-16) and I can confirm the fix.
Comment 16•7 years ago
|
||
Comment on attachment 8836747 [details] Bug 1333711 - guard against DOMExceptions when accessing stylesheet cssRules; Fix for minor regression, let's uplift to aurora.
Attachment #8836747 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Comment 17•7 years ago
|
||
bugherder uplift |
https://hg.mozilla.org/releases/mozilla-aurora/rev/a88c1bc559da
Reporter | ||
Updated•7 years ago
|
No longer blocks: top-inspector-bugs
Updated•6 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•