Closed Bug 343605 Opened 18 years ago Closed 11 years ago

'Permission denied to get property XULElement.disabled' error with this testcase using Java and quickly changing tabs

Categories

(Core Graveyard :: Plug-ins, defect)

x86
Windows XP
defect
Not set
critical

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: martijn.martijn, Unassigned)

References

Details

(Keywords: testcase)

Attachments

(2 files)

See upcoming testcase.
To reproduce:
- Open a new tab
- Switch back to this page in case you switched to the new tab
- Reload the page
- While this page is busy make the java plugin work, switch to the other tab.

Result:
Sometimes, when doing this I get this (I get it usually within 5 times trying):

Error: [Exception... "'Permission denied to get property XULElement.disabled' when calling method: [nsIDOMXULControlElement::disabled]"  
nsresult: "0x8057001e (NS_ERROR_XPC_JS_THREW_STRING)"  
location: "JS frame :: file:///C:/Documents%20and%20Settings/Martijn/Bureaublad/Kopie%20van%20crash1.htm :: doe :: line 6"  data: no]
Source File: file:///C:/Documents%20and%20Settings/Martijn/Bureaublad/Kopie%20van%20crash1.htm
Line: 6

After this, I'm unable to change tabs, I get the same error again in the js console (in fact I get the error for a lot more)
Also, Firefox stays resident in memory when trying to exit.

I'm seeing this on branch, not on trunk. Mainly because the <applet> tag fails to load the Java plugin, I think. I've filed that as bug 343604.

I'm using:
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1a3) Gecko/20060623 BonEcho/2.0a3
Attached file testcase
Um.  Your testcase is just the steps to reproduce, no? ;-)
I've added the steps to reproduce in the testcase, for convenience.
The testcase also contains an empty <applet> which triggers the bug (branch only) when following the steps to reproduce.
Changing "version" to branch, then.
Version: Trunk → 1.8 Branch
Ok, this is a branch problem, after I've changed the code a bit to make the Java applet 'work' on trunk, I crash when following the steps in the testcase, I filed bug 344062 for it.
Using testcase from bug 344062 I don't see a crash - I see this bug.

I see second tab as "Applet notinited" in status bar.  And error Console gets

Error: [Exception... "'Permission denied to get property XULElement.accessKey' when calling method: [nsIDOMXULLabelElement::accessKey]"  nsresult: "0x8057001e (NS_ERROR_XPC_JS_THREW_STRING)"  location: "JS frame :: https://bugzilla.mozilla.org/attachment.cgi?id=228638 :: doe :: line 6"  data: no]
Source File: https://bugzilla.mozilla.org/attachment.cgi?id=228638
Line: 6

Safe mode Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20060706 Minefield/3.0a1
Attached file testcase2
With this testcase, you can also see the bug on trunk, because I added code="" now. As soon as bug 343604 is fixed, that isn't necessary anymore.
With this testcase, I see it even more easier.
Also, Firefox tends to hang/crash sometimes, talkback ID: TB21032968W (this happened when closing the tab)
Severity: major → critical
Version: 1.8 Branch → Trunk
Incident ID: 21032968
Stack Signature	nsContainerFrame::Destroy b0e10350
Product ID	Firefox15
Build ID	2006070616
Trigger Time	2006-07-17 04:22:30.0
Platform	Win32
Operating System	Windows NT 5.1 build 2600
Module	firefox.exe + (002079f0)
URL visited	
User Comments	
Since Last Crash	669 sec
Total Uptime	11642 sec
Trigger Reason	Access violation
Source File, Line No.	c:/builds/tinderbox/Fx-Mozilla1.8.0-Release/WINNT_5.2_Depend/mozilla/layout/generic/nsContainerFrame.cpp, line 147
Stack Trace 	
nsContainerFrame::Destroy  [c:/builds/tinderbox/Fx-Mozilla1.8.0-Release/WINNT_5.2_Depend/mozilla/layout/generic/nsContainerFrame.cpp, line 147]
nsObjectFrame::Destroy  [c:/builds/tinderbox/Fx-Mozilla1.8.0-Release/WINNT_5.2_Depend/mozilla/layout/generic/nsObjectFrame.cpp, line 775]
nsLineBox::DeleteLineList  [c:/builds/tinderbox/Fx-Mozilla1.8.0-Release/WINNT_5.2_Depend/mozilla/layout/generic/nsLineBox.cpp, line 325]
nsBlockFrame::DoRemoveFrame  [c:/builds/tinderbox/Fx-Mozilla1.8.0-Release/WINNT_5.2_Depend/mozilla/layout/generic/nsBlockFrame.cpp, line 5709]
nsBlockFrame::RemoveFrame  [c:/builds/tinderbox/Fx-Mozilla1.8.0-Release/WINNT_5.2_Depend/mozilla/layout/generic/nsBlockFrame.cpp, line 5501]
nsFrameManager::RemoveFrame  [c:/builds/tinderbox/Fx-Mozilla1.8.0-Release/WINNT_5.2_Depend/mozilla/layout/base/nsFrameManager.cpp, line 705]
nsCSSFrameConstructor::ContentRemoved  [c:/builds/tinderbox/Fx-Mozilla1.8.0-Release/WINNT_5.2_Depend/mozilla/layout/base/nsCSSFrameConstructor.cpp, line 10083]
PresShell::ContentRemoved  [c:/builds/tinderbox/Fx-Mozilla1.8.0-Release/WINNT_5.2_Depend/mozilla/layout/base/nsPresShell.cpp, line 5526]
nsDocument::ContentRemoved  [c:/builds/tinderbox/Fx-Mozilla1.8.0-Release/WINNT_5.2_Depend/mozilla/content/base/src/nsDocument.cpp, line 2422]
nsHTMLDocument::ContentRemoved  [c:/builds/tinderbox/Fx-Mozilla1.8.0-Release/WINNT_5.2_Depend/mozilla/content/html/document/src/nsHTMLDocument.cpp, line 1176]
nsGenericElement::RemoveChildAt  [c:/builds/tinderbox/Fx-Mozilla1.8.0-Release/WINNT_5.2_Depend/mozilla/content/base/src/nsGenericElement.cpp, line 2865]
nsContentOrDocument::RemoveChildAt  [c:/builds/tinderbox/Fx-Mozilla1.8.0-Release/WINNT_5.2_Depend/mozilla/content/base/src/nsGenericElement.cpp, line 2919]
nsGenericElement::doReplaceOrInsertBefore  [c:/builds/tinderbox/Fx-Mozilla1.8.0-Release/WINNT_5.2_Depend/mozilla/content/base/src/nsGenericElement.cpp, line 3544]
nsGenericElement::InsertBefore  [c:/builds/tinderbox/Fx-Mozilla1.8.0-Release/WINNT_5.2_Depend/mozilla/content/base/src/nsGenericElement.cpp, line 3024]
XPCWrappedNative::CallMethod  [c:/builds/tinderbox/Fx-Mozilla1.8.0-Release/WINNT_5.2_Depend/mozilla/js/src/xpconnect/src/xpcwrappednative.cpp, line 2155]
XPC_WN_CallMethod  [c:/builds/tinderbox/Fx-Mozilla1.8.0-Release/WINNT_5.2_Depend/mozilla/js/src/xpconnect/src/xpcwrappednativejsops.cpp, line 1445]
js_Invoke  [c:/builds/tinderbox/Fx-Mozilla1.8.0-Release/WINNT_5.2_Depend/mozilla/js/src/jsinterp.c, line 1188]
js_Interpret  [c:/builds/tinderbox/Fx-Mozilla1.8.0-Release/WINNT_5.2_Depend/mozilla/js/src/jsinterp.c, line 3584]
js_Invoke  [c:/builds/tinderbox/Fx-Mozilla1.8.0-Release/WINNT_5.2_Depend/mozilla/js/src/jsinterp.c, line 1208]
js_InternalInvoke  [c:/builds/tinderbox/Fx-Mozilla1.8.0-Release/WINNT_5.2_Depend/mozilla/js/src/jsinterp.c, line 1285]
JS_CallFunctionValue  [c:/builds/tinderbox/Fx-Mozilla1.8.0-Release/WINNT_5.2_Depend/mozilla/js/src/jsapi.c, line 4177]
nsJSContext::CallEventHandler  [c:/builds/tinderbox/Fx-Mozilla1.8.0-Release/WINNT_5.2_Depend/mozilla/dom/src/base/nsJSEnvironment.cpp, line 1411]
nsGlobalWindow::RunTimeout  [c:/builds/tinderbox/Fx-Mozilla1.8.0-Release/WINNT_5.2_Depend/mozilla/dom/src/base/nsGlobalWindow.cpp, line 6392]
nsGlobalWindow::TimerCallback  [c:/builds/tinderbox/Fx-Mozilla1.8.0-Release/WINNT_5.2_Depend/mozilla/dom/src/base/nsGlobalWindow.cpp, line 6755]
nsAppStartup::Run  [c:/builds/tinderbox/Fx-Mozilla1.8.0-Release/WINNT_5.2_Depend/mozilla/toolkit/components/startup/src/nsAppStartup.cpp, line 151]
main  [c:/builds/tinderbox/Fx-Mozilla1.8.0-Release/WINNT_5.2_Depend/mozilla/browser/app/nsBrowserApp.cpp, line 61]
kernel32.dll + 0x16d4f (0x7c816d4f)
Blocks: 353557
No longer blocks: 353557
Depends on: 434522
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → INCOMPLETE
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: