Closed Bug 365809 Opened 18 years ago Closed 16 years ago

Acid2 occasionally breaks (with an extension that pokes document.documentElement during address bar's ValueChange event)

Categories

(Core :: Graphics, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 436717

People

(Reporter: dao, Unassigned)

References

()

Details

Attachments

(1 file, 1 obsolete file)

I can see a red box below the face for several weeks now: attachment 249817 [details]
The test passes when loaded in a background tab.

There is a similar looking issue with GTK (bug 365680), but apparently the cause is different (bug 365680 testcases work).

Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a2pre) Gecko/20070103 Minefield/3.0a2pre ID:2007010304 [cairo]
Attached file problematic extension source (obsolete) —
Only happens with this extension installed (and "Auto-detect locales" enabled): https://addons.mozilla.org/firefox/3414/

I'm attaching the source, because to me it looks like it doesn't modify the content. So I still think this is a Mozilla bug. Since Acid2 breaks after the DOMContentLoaded event, I think the first point to take a look at is the pageLoad() method.
Attached file test extension
I have no idea what's happening here. I narrowed it down to this:

> window.addEventListener("load", function() {
>   gURLBar.addEventListener("ValueChange", function() {
>     if (gBrowser.selectedBrowser.docShell.QueryInterface(Components.interfaces.nsIWebNavigation).document.documentElement)
>       document.documentElement.getAttribute("lang");
>   }, true);
> }, false);
Attachment #250357 - Attachment is obsolete: true
Summary: Acid2 occasionally breaks → Acid2 occasionally breaks (with an extension that pokes document.documentElement during address bar's ValueChange event)
Here's a new way to reproduce:

1. start Firefox with a new profile
2. open http://www.webstandards.org/files/acid2/test.html#top
3. open the DOM Inspector
4. expand the node tree until you're at the very last element (IMG)
5. select IMG

The image blinks and the red box appears.
This isn't necessarily a bug, because DOM Inspector actively changes the content by using scrollIntoView() or so.
Now back to comment 2. I disabled the blinking feature of DOMi so that it doesn't break things. Then I compared all the properties of that image (mentioned in comment 3):

                          | PASS   | FAIL
--------------------------|--------|-------
 Box Model/Position/y     |        |
--------------------------|        |
 JS/y                     | 156    | 0
--------------------------|        |
 JS/offsetTop             |        |
--------------------------|--------|-------
 Computed Style/font-size | 240px  | 16px

The latter looks a bit like bug 365680.
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: