Closed Bug 462789 Opened 16 years ago Closed 16 years ago

Crash [@ inLayoutUtils::GetEventStateManagerFor] with calling getContentState in display: none iframe

Categories

(Core :: Layout, defect)

defect
Not set
critical

Tracking

()

VERIFIED FIXED
mozilla1.9.2a1

People

(Reporter: martijn.martijn, Assigned: MatsPalmgren_bugz)

References

Details

(Keywords: crash, testcase, verified1.9.1)

Crash Data

Attachments

(3 files)

See testcase, which crashes current trunk build after 100ms. The content of the iframe consists of this: <html><head></head> <body> <script> setTimeout(doe2, 100); function doe2() { netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect"); var utils = Components.classes["@mozilla.org/inspector/dom-utils;1"] .getService(Components.interfaces.inIDOMUtils); utils.getContentState(document.documentElement); } </script> </body> </html>
http://crash-stats.mozilla.com/report/index/dd08c1cc-a938-11dd-a826-001cc45a2ce4?p=1 0 xul.dll inLayoutUtils::GetEventStateManagerFor layout/inspector/src/inLayoutUtils.cpp:114 1 xul.dll inDOMUtils::GetContentState layout/inspector/src/inDOMUtils.cpp:238 2 xul.dll NS_InvokeByIndex_P xpcom/reflect/xptcall/src/md/win32/xptcinvoke.cpp:101 3 xul.dll XPCWrappedNative::CallMethod js/src/xpconnect/src/xpcwrappednative.cpp:2402
Assignee: nobody → mats.palmgren
OS: Windows XP → All
Hardware: PC → All
Attached patch Patch rev. 1Splinter Review
1. add a null check The mochitest needs Makefile.in from bug 462787 but this patch is otherwise independent.
Attachment #346095 - Flags: superreview?(dbaron)
Attachment #346095 - Flags: review?(dbaron)
Depends on: 462787
Comment on attachment 346095 [details] [diff] [review] Patch rev. 1 r+sr=dbaron (when adjusted for the comments on bug 462787)
Attachment #346095 - Flags: superreview?(dbaron)
Attachment #346095 - Flags: superreview+
Attachment #346095 - Flags: review?(dbaron)
Attachment #346095 - Flags: review+
Flags: blocking1.9.1?
Flags: blocking1.9.1? → wanted1.9.1+
Attachment #346095 - Flags: approval1.9.1?
Comment on attachment 346095 [details] [diff] [review] Patch rev. 1 a191=beltzner with dbaron's nits addressed
Attachment #346095 - Flags: approval1.9.1? → approval1.9.1+
Mats, can I land this on trunk for you? We should try to land it as soon as possible
Status: NEW → RESOLVED
Closed: 16 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Whiteboard: [needs landing]
Target Milestone: --- → mozilla1.9.2a1
Whiteboard: [needs baking and 1.9.1 landing]
Verified fixed, using: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2a1pre) Gecko/20081218 Minefield/3.2a1pre
Status: RESOLVED → VERIFIED
verified on Shiretoko: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1b4pre) Gecko/20090422 Shiretoko/3.5b4pre ID:20090422042031
Crash Signature: [@ inLayoutUtils::GetEventStateManagerFor]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: