Open Bug 1491278 Opened 6 years ago Updated 2 years ago

CSS rules section of developer tools appears empty

Categories

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

63 Branch
defect

Tracking

(Not tracked)

People

(Reporter: massimo.cassandro, Unassigned)

References

Details

(Whiteboard: [dt-q])

Attachments

(2 files)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:62.0) Gecko/20100101 Firefox/62.0 Build ID: 20180830143136 Steps to reproduce: Using Firefox Developer Edition 63.0b4, in some cases the css rules frame of developer tools appears empty (see screenshot). The issue occurs only while in mobile view and after some page reloads Actual results: It's impossible to get css info of selected element Expected results: The css rules section should continue to be available
Component: Untriaged → CSS Rules Inspector
Product: Firefox → DevTools
Hi, thanks a lot for filing this. This looks really bad. However we'd need some specific steps to reproduce this issue. Does this happen on a given site? Do you need to do something special to get it?
Flags: needinfo?(massimo.cassandro)
Hi, the issue occurs with any site, but only while in mobile view. I can't give you more details since I could not find a recurring cause. I noticed it usually after some reloads Let me know if I can help you in some way Thank you
Flags: needinfo?(massimo.cassandro)
(In reply to massimo.cassandro from comment #2) Thanks for replying already! > Let me know if I can help you in some way Actually, one thing might help: when it happens to you again, can you open the browser console (ctrl+shift+J) and check if there are JavaScript errors in there. If so, please copy them here. That will be super useful to investigate.
For info, I tried reproducing this locally but no luck so far. I tested on Windows 10 though, maybe that's the difference. I open RDM and reloaded the page many times.
Attached image console.PNG
STR for me was: 1) Play in Fonts panel in 2 panel mode (saw that font scaling wasn't applied) 2) Enabled 3 pane mode, Rules view stayed empty 3) Enabled 2 pane mode again, Rules view stayed empty
(In reply to :Harald Kirschner :digitarald from comment #5) > 1) Play in Fonts panel in 2 panel mode (saw that font scaling wasn't applied) > 2) Enabled 3 pane mode, Rules view stayed empty > 3) Enabled 2 pane mode again, Rules view stayed empty Thanks Harald. I have a feeling this might be a different issue here though. One where somehow the rule-view does not initialize correctly in the background when modifying styles through the font editor.
(In reply to :Harald Kirschner :digitarald from comment #5) > Created attachment 9013356 [details] > console.PNG > > STR for me was: > > 1) Play in Fonts panel in 2 panel mode (saw that font scaling wasn't applied) > 2) Enabled 3 pane mode, Rules view stayed empty > 3) Enabled 2 pane mode again, Rules view stayed empty Patrick is right, these are different issues. The issue with the Font Editor in 2-pane was fixed a while ago but it seems to have regressed. I'm on it: Bug 1497950
Summary: CSS rules section of developer tools apperas empty → CSS rules section of developer tools appears empty
@Massimo: I am also having trouble reproducing this... are you still able to reproduce it?
Status: UNCONFIRMED → NEW
Ever confirmed: true
Flags: needinfo?(massimo.cassandro)
Priority: -- → P2
I've tried again many times, but it seems that the lastest releases of Developer Edition solves the issue. Maybe?
Flags: needinfo?(massimo.cassandro)

I have the same issue. CSS doesn't appear. Every so often if I quit the browser it will come back, but I have tried this a couple of times and it doesn't work. It seems to get worse every new generation and update of Firefox.

Whiteboard: [dt-q]

@Gary I believe this is fixed... are you still able to reproduce the issue?

Flags: needinfo?(safe)

Haven't had any issues with it lately. Seems to be working now.

Flags: needinfo?(safe)

Same for me

Looking into fixing the intermittent for bug 1498336, which is suspiciously similar to the issue described in this one, I discovered there's is a stray window "resize" event which is fired during reload with RDM open. The Rules panel reacts to that event with trying to grab the latest applicable styles (for scenarios where a media query might begin to apply), but being in a state of flux during reload, the node front for the selected element doesn't seem to have a corresponding DOM node (aka rawNode); the Rules panel swallows the error and shows an empty panel.

The issue in bug 1498336 happens intermittently. The window "resize" event is fired prematurely sometimes. This is perhaps an indication as to why the issue described in this bug has been difficult to reproduce.

Assignee: nobody → rcaliman
Status: NEW → ASSIGNED
See Also: → 1498336

Bugbug thinks this bug is a regression, but please revert this change in case of error.

Keywords: regression

This is not a regression. It's a bug that occurred intermittently over the long term.

Keywords: regression
Blocks: 1498336
Assignee: rcaliman → nobody
Status: ASSIGNED → NEW
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: