Closed Bug 359693 Opened 20 years ago Closed 17 years ago

Crash if I keep a reference of the 'accessible' property of a displayed object and then hide/show objects in document [@ nsAutoCompleteController::AttachRollupListener]

Categories

(Toolkit :: Autocomplete, defect)

1.8 Branch
x86
Windows XP
defect
Not set
critical

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: xavier, Unassigned)

References

()

Details

(Keywords: access)

Attachments

(1 obsolete file)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr-FR; rv:1.8.1) Gecko/20061010 Firefox/2.0 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr-FR; rv:1.8.1) Gecko/20061010 Firefox/2.0 In an overlay extension I initialize a var to the 'accessible' property of a toolbar object, for instance. Then, in a HTML page I set and reset the .style.display property of elements to hide/show them. Then Firefox crashes... Reproducible: Always Steps to Reproduce: 1. Install the overlay extension below (can be installed from http://www.c-est-simple.com/bugzilla/crash/crash.xpi) <?xml version="1.0" encoding="utf-8"?> <overlay id="myOverlay" xmlns=" http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> <script type="application/x-javascript"> var tb = document.getElementById('nav-bar'); var accessible = tb.accessible ; </script> </overlay> 2. Load this HTML page in the browser (available at http://www.c-est-simple.com/bugzilla/crash/crash.html) <head> <script language="JavaScript"> function fold() { document.getElementById('expand_21').style.display=""; document.getElementById('fold_21').style.display="none"; } function expand() { document.getElementById('expand_21').style.display="none"; document.getElementById('fold_21').style.display=""; } </script> </head> <html> <body> <span id="expand_21"> <a href="javascript:expand(21);">Click to Open</a>hopla </span> <span id="fold_21" style="display:none"> <a href="javascript:fold(21);">Click to Fold</a>Lucian Cighir </span> </body> </html> 3. Click a 3 times to show/hide some spans. Actual Results: Firefox crashes. Expected Results: Firefox does not crash, it shows and hides spans. If you uninstall the extension, all is working fine. I've reduced all code to the minimum, this is not a *real* extension :-) I have no idea if than can be qualified as a security problem, I won't check the checkbox...
This bug can also be triggered by a much more useful page than the one in the testcase: The french train company online booking service: http://www.voyages-sncf.com/leisure/fr/launch/home/ If you try using the calendar on this page after installing the testcase extension, Firefox crashes. Sorry, the page is in french, the problem does not occur on the english equivalent (that looks rather different).
Attached file Feedback agent detail file (obsolete) —
Comment on attachment 244819 [details] Feedback agent detail file You need to actually submit the report to the Talkback server for the data to be useful. See http://kb.mozillazine.org/Talkback for more info.
Attachment #244819 - Attachment is obsolete: true
did it a couple of times: TB25068153K, TB25068131Z, TB25020953K
Incident ID: 25068153 Stack Signature nsAutoCompleteController::AttachRollupListener dd8424bb Product ID Firefox2 Build ID 2006101023 Trigger Time 2006-10-26 06:42:09.0 Platform Win32 Operating System Windows NT 5.1 build 2600 Module firefox.exe + (00451e52) URL visited http://www.voyages-sncf.com/leisure/fr/launch/home/ User Comments Since Last Crash 28 sec Total Uptime 67234 sec Trigger Reason Access violation Source File, Line No. c:/builds/tinderbox/Fx-Mozilla1.8-release/WINNT_5.2_Depend/mozilla/toolkit/components/autocomplete/src/nsAutoCompleteController.cpp, line 620 Stack Trace nsAutoCompleteController::AttachRollupListener [mozilla/toolkit/components/autocomplete/src/nsAutoCompleteController.cpp, line 620] XPTC_InvokeByIndex [mozilla/xpcom/reflect/xptcall/src/md/win32/xptcinvoke.cpp, line 102] XPCWrappedNative::CallMethod [mozilla/js/src/xpconnect/src/xpcwrappednative.cpp, line 2169] XPC_WN_CallMethod [mozilla/js/src/xpconnect/src/xpcwrappednativejsops.cpp, line 1455] js_Invoke [mozilla/js/src/jsinterp.c, line 1377] js_Interpret [mozilla/js/src/jsinterp.c, line 4121] js_Invoke [mozilla/js/src/jsinterp.c, line 1396] js_InternalInvoke [mozilla/js/src/jsinterp.c, line 1471] js_InternalGetOrSet [mozilla/js/src/jsinterp.c, line 1531] js_SetProperty [mozilla/js/src/jsobj.c, line 3552] JS_SetProperty [mozilla/js/src/jsapi.c, line 2964] nsXPCWrappedJSClass::CallMethod [mozilla/js/src/xpconnect/src/xpcwrappedjsclass.cpp, line 1397] nsXPCWrappedJS::CallMethod [mozilla/js/src/xpconnect/src/xpcwrappedjs.cpp, line 468] SharedStub [mozilla/xpcom/reflect/xptcall/src/md/win32/xptcstubs.cpp, line 147] nsAutoCompleteController::OpenPopup [mozilla/toolkit/components/autocomplete/src/nsAutoCompleteController.cpp, line 941] nsAutoCompleteController::ProcessResult [mozilla/toolkit/components/autocomplete/src/nsAutoCompleteController.cpp, line 1193] nsAutoCompleteController::OnSearchResult [mozilla/toolkit/components/autocomplete/src/nsAutoCompleteController.cpp, line 649] nsFormFillController::StartSearch [mozilla/toolkit/components/satchel/src/nsFormFillController.cpp, line 555] nsAutoCompleteController::StartSearch [mozilla/toolkit/components/autocomplete/src/nsAutoCompleteController.cpp, line 994] nsAutoCompleteController::Notify [mozilla/toolkit/components/autocomplete/src/nsAutoCompleteController.cpp, line 688] nsAppStartup::Run [mozilla/toolkit/components/startup/src/nsAppStartup.cpp, line 152] main [mozilla/browser/app/nsBrowserApp.cpp, line 61] kernel32.dll + 0x16fd7 (0x7c816fd7) Incident ID: 25020953 Stack Signature 0x00000000 3aede2d8 Product ID Firefox2 Build ID 2006101023 Trigger Time 2006-10-25 07:56:18.0 Platform Win32 Operating System Windows NT 5.1 build 2600 Module URL visited http://www.voyages-sncf.com/leisure/fr/launch/home/ User Comments This web site is the French train reservation center, millions of visitors every month. Using the calendar on the left side. After I chose a date in the drop down calendar, FF closed. Thanks ! Since Last Crash 397 sec Total Uptime 31713 sec Trigger Reason Access violation Source File, Line No. N/A Stack Trace 0x00000000 nsDocAccessibleWrap::FireToolkitEvent [mozilla/accessible/src/msaa/nsDocAccessibleWrap.cpp, line 260] nsDocAccessible::FlushPendingEvents [mozilla/accessible/src/base/nsDocAccessible.cpp, line 979] nsDocAccessible::FlushEventsCallback [mozilla/accessible/src/base/nsDocAccessible.cpp, line 989] nsAppStartup::Run [mozilla/toolkit/components/startup/src/nsAppStartup.cpp, line 152] main [mozilla/browser/app/nsBrowserApp.cpp, line 61] kernel32.dll + 0x16fd7 (0x7c816fd7)
Component: General → Location Bar and Autocomplete
QA Contact: general → location.bar
Summary: Crash if I keep a reference of the 'accessible' property of a displayed object and then hide/show objects in document → Crash if I keep a reference of the 'accessible' property of a displayed object and then hide/show objects in document [@ nsAutoCompleteController::AttachRollupListener]
I typically crash at the 3rd time, when I click on the link of your page (after I have installed the extension). This seems fixed on trunk between 2006-07-24 and 2006-07-25: http://bonsai.mozilla.org/cvsquery.cgi?treeid=default&module=all&branch=HEAD&branchtype=match&dir=&file=&filetype=match&who=&whotype=match&sortby=Date&hours=2&date=explicit&mindate=2006-07-24+04&maxdate=2006-07-25+05&cvsroot=%2Fcvsroot A bunch of accessibility fixes went in at that time. Not sure what fixed it. I can't reproduce it on my 1.8.1 debug build, and I think that's more evidence that it's some accessibility related crash, since I have accessibility disabled in my debug build. Aaron, what do you think?
I think it's accessibility related. What do you mean it's fixed on trunk between those dates? Do you mean a patch that went in then caused this bug?
Keywords: access
(In reply to comment #7) > What do you mean it's fixed on trunk between those dates? Do you mean a patch > that went in then caused this bug? I mean that it seems that some patch has fixed it on trunk. I'm not sure which patch.
So if it's fixed, why isn't this marked RESOLVED FIXED? I must be missing something.
Well, it's still a problem on the 1.8 branch. But I guess you're right and this can be marked worksforme.
Version: unspecified → 2.0 Branch
It's okay. I was just confused that the Version field was not specified.
I don't know which of those checkins could have fixed this.
The new RealPlayer v11 has a Firefox plugin which crashes Firefox. It seems to be because of this bug because the same URL crashes it. I reported it to Real: http://real.lithium.com/real/board/message?board.id=realplayer&message.id=15748 But this looks to be a Firefox bug.
Component: Location Bar and Autocomplete → Autocomplete
Product: Firefox → Toolkit
QA Contact: location.bar → autocomplete
Version: 2.0 Branch → 1.8 Branch
Based on comment 9 and comment 10, this was WFM on 2007-era trunk. Since the 1.8 branch is no longer supported, this bug is just WFM.
Status: UNCONFIRMED → RESOLVED
Closed: 17 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: