Closed Bug 991928 Opened 11 years ago Closed 11 years ago

Add check for chrome pages to the "XUL box for %1$S element contained an inline %2$S child..." warning

Categories

(Core :: Layout, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla31

People

(Reporter: jwalker, Assigned: dbaron)

Details

Attachments

(1 file)

The call to nsContentUtils::ReportToConsole in nsCSSFrameConstructor.cpp [1] is worded in a way which has scared people who stray into developer tools by mistake [2]. It's not clear how frequently this happens, but it's probably something that's easy to fix. We should restrict this console message to chrome rather than web pages. [1]: https://mxr.mozilla.org/mozilla-central/source/layout/base/nsCSSFrameConstructor.cpp#9445 [2]: https://twitter.com/neave/status/415533230579019777/photo/1
See also the discussion in bug 991734 comment 7 and on.
Assignee: nobody → dbaron
Status: NEW → ASSIGNED
Comment on attachment 8401688 [details] [diff] [review] Make warning about wrapping XUL boxes chrome-only r=me
Attachment #8401688 - Flags: review?(bzbarsky) → review+
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla31
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: