Cached CSS warnings are displayed as JavaScript warnings on Web Console open

RESOLVED FIXED in Firefox 16

Status

()

Firefox
Developer Tools: Console
RESOLVED FIXED
5 years ago
5 years ago

People

(Reporter: paul, Assigned: msucan)

Tracking

Trunk
Firefox 16
x86
All
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [fixed-in-fx-team])

Attachments

(3 attachments)

(Reporter)

Description

5 years ago
Created attachment 636324 [details]
test
(Reporter)

Comment 1

5 years ago
Created attachment 636325 [details]
screenshot
(Assignee)

Comment 2

5 years ago
How do you reproduce the bug?

I tried this and I only see one CSS warning in the Web Console and in the Error Console.
(Reporter)

Comment 3

5 years ago
STR:
- open test.html in a new tab
- switch to the tab
- wait until the page is loaded
- open the web console

Actual Result:
- JS warning "unknown property"
(Assignee)

Comment 4

5 years ago
Ah, so I have to open the Web Console after the error happens.

Thanks for the STR. I was able to reproduce now. I have a hunch what's causing this. Will look into fixing it ASAP.
(Assignee)

Updated

5 years ago
Summary: CSS warnings are displayed as JavaScript warnings → Cached CSS warnings are displayed as JavaScript warnings on Web Console open
(Assignee)

Comment 5

5 years ago
Created attachment 636374 [details] [diff] [review]
[in-fx-team] proposed patch

This fixes the problem for me. It is an embarrassingly simple fix: I passed the wrong argument to the function that determines the cached message category.

Thanks for your report!
Assignee: nobody → mihai.sucan
Status: NEW → ASSIGNED
Attachment #636374 - Flags: review?(paul)
(Reporter)

Updated

5 years ago
Attachment #636374 - Flags: review?(paul) → review+
(Assignee)

Comment 6

5 years ago
Thanks for the r+!
Whiteboard: [land-in-fx-team]
(Assignee)

Comment 7

5 years ago
Comment on attachment 636374 [details] [diff] [review]
[in-fx-team] proposed patch

https://hg.mozilla.org/integration/fx-team/rev/e42cc35e45cc
Attachment #636374 - Attachment description: proposed patch → [in-fx-team] proposed patch
(Assignee)

Updated

5 years ago
Whiteboard: [land-in-fx-team] → [fixed-in-fx-team]
https://hg.mozilla.org/mozilla-central/rev/e42cc35e45cc
Status: ASSIGNED → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 16
You need to log in before you can comment on or make changes to this bug.