User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.9) Gecko/20050711 Firefox/1.0.5 Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.9) Gecko/20050711 Firefox/1.0.5 Tab does not respond to clicks, so not able to switch tabs. Reproducible: Always Steps to Reproduce: 1. Set parent hidden attribute to true. 2. Append tabbox with tabs to parent element. 3. Set parent hidden attribute to false. Actual Results: tab does not respond to mouse clicks. Expected Results: Tab should respond to mouse clicks, and switch tab. If programmer not allowed to append element to a hidden element, should throw exception.
Hmm, actually this might depend on bug 307098. And possibly also from bug 266590.
Testcase2 from bug 307085 also suffers from this bug, and that testcase doesn't use any hidden=true, so I guess this could have nothing to do with bug 307098. I get a js error, by the way, when clicking on any of the tabs: Error: uncaught exception: Permission denied to create wrapper for object of class UnnamedClass
Does this start working if you clone an existing (empty?) tabbox instead of creating a new one with createElement?
Created attachment 194996 [details] testcase2 (In reply to comment #5) > Does this start working if you clone an existing (empty?) tabbox instead of > creating a new one with createElement? No.
I believe this bug to cover the same issue as bug 209701. Unlike this bug, however, bug 209701 has at least an attempt at a patch. I am therefore resolving this bug as a duplicate of bug 209701. Feel free to reopen if you disagree. *** This bug has been marked as a duplicate of 209701 ***
I see nothing here suggesting this is related to bug 209701. What made you think it is?
The error message was identical when I looked. Also, both cases involved remote XUL, which is known to have some difficulties in the XUL widget accessing some of its XBL-ized properties.
Ah, I see what the problem is. Setting selectedIndex to 0 does nothing since that node doesn't have an XBL binding (see bug 265086 and the fact that we apply bindings on frame construction). Then when you click nothing is selected, and tabbox can't deal with that. You could fix this by cloning the tabs element, I guess...
And the error message in this case comes when tabbox sees nothing is selected and tries to throw Components.results.NS_ERROR_FAILURE. Wrapping _that_ is what fails (due to bug 209701). But by that point it's way too late anyway -- we're already throwing.