Closed Bug 636367 Opened 15 years ago Closed 12 years ago

"Warning: XUL box for _moz_generated_content_after element contained an inline #text child, forcing all its children to be wrapped in a block."

Categories

(Firefox :: General, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: sgautherie, Unassigned)

References

Details

Just start Firefox. Noticed while working on mochitests. [Mozilla/5.0 (Windows NT 5.0; rv:2.0b12pre) Gecko/20110222 Firefox/4.0b12pre] (mozilla-central-win32/1298400137) { Warning: XUL box for _moz_generated_content_after element contained an inline #text child, forcing all its children to be wrapped in a block. Source File: chrome://browser/content/browser.xul Line: 0 } NB: Iirc, this was already there on Jan 31th. PS: I wonder whether this could be related to bug 632408 in any way... (SeaMonkey doesn't report this warning.)
Same message for me with Firefox 4.0.1 - Windows XP SP3 [Mozilla/5.0 (Windows NT 5.1; rv:2.0.1) Gecko/20100101 Firefox/4.0.1] This warning appeared when I have upgraded form FF 3.6.17 to FF 4.0.1. Reproduced also on an new empty profile, without any extra add-ons.
Last good nightly: 2011-01-24 First bad nightly: 2011-01-25 Pushlog: http://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=80266029824b&tochange=6a097e294828
Confirmed with FF 6.0 - Windows XP Pro SP3, with an existing or a new empty profile. Confirmed with FF 6.0 - Windows XP Home Edition and Ubuntu 10.04, with existing profiles. [Mozilla/5.0 (Windows NT 5.1; rv:6.0) Gecko/20100101 Firefox/6.0] [Mozilla/5.0 (X11; Linux i686; rv:6.0) Gecko/20100101 Firefox/6.0]
I can also confirm this with: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:8.0) Gecko/20100101 Firefox/8.0 Firefox/8.0
[Mozilla/5.0 (Windows NT 5.0; rv:11.0a1) Gecko/20111117 Firefox/11.0a1] (nightly, 2011-11-01-mozilla-central-debug) Warning still there.
(In reply to Serge Gautherie (:sgautherie) from comment #6) > [Mozilla/5.0 (Windows NT 5.0; rv:11.0a1) Gecko/20111117 Firefox/11.0a1] > (nightly, 2011-11-01-mozilla-central-debug) Nit: [Mozilla/5.0 (Windows NT 5.0; rv:11.0a1) Gecko/20111117 Firefox/11.0a1] (nightly, 2011-11-17-03-09-39-mozilla-central)
I think this changeset introduced the warning: http://hg.mozilla.org/mozilla-central/rev/cd10b3f59da4
Depends on: 627324
No longer blocks: 632408
In safe mode, with start page set to -blank-, and restarting Fox 14.0.1, I get this error, still: Timestamp: 8/15/2012 8:03:49 AM Warning: XUL box for _moz_generated_content_after element contained an inline #text child, forcing all its children to be wrapped in a block. Source File: chrome://browser/content/browser.xul Line: 0
On 14.0.1 , this error is displayed if I open a new tab [displaying my local home page], not in safe mode: Timestamp: 8/15/2012 6:26:05 AM Warning: XUL box for _moz_generated_content_before element contained an inline #text child, forcing all its children to be wrapped in a block. Source File: chrome://browser/content/browser.xul Line: 0 i.e., If I -merely- move back and forth between the "Reload" button and the home button [without clicking on anything]. I also notice that -that- error appears on the console, regardless of which tab is actually present ie, I can delete the tab of my local home page, and continue to generate that error.
I recently writing an extension that have a toolbar button, I also got this warning on Firefox for Windows, but not on Firefox for Linux. And I found out this cause by mouse over on a "menu-button" type toolbar button. If create the button like this code var button = document.createElementNS(NS_XUL, 'toolbarbutton'); button.setAttribute('type', 'menu-button'); If I use DOM Inspector to the attribute `type` to "menu", I won't get this warning. A "menu-button" type mean the whole button has two independent click-able part, the icon part and dropdown menu part. And "menu" type just one part. Their appearance look same on Linux(at least in my current theme), but look different in Windows, separate by a '|' character. And I look up popular extensions, Firebug's and Greasemonkey's buttons are "menu-button", also cause this warning, but Adblock Plus's and Stylish's ones are "menu", so won't cause this warning.
I think this is no longer present.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.