Closed Bug 319808 Opened 19 years ago Closed 17 years ago

Broken TABBOX when manipulated with Javascript

Categories

(Firefox :: Tabbed Browser, defect)

x86
Linux
defect
Not set
major

Tracking

()

RESOLVED DUPLICATE of bug 272646

People

(Reporter: bugzilla.mozilla.org, Unassigned)

Details

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8) Gecko/20051111 Firefox/1.5
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8) Gecko/20051111 Firefox/1.5

I cannot add new tabs with javascript.

Added tabs are right-aligned and invisible in the DOM inspector. When clicking on the dynamicly created tabs I get 
Error: uncaught exception: [Exception... "Security error"  code: "1000" nsresult: "0x805303e8 (NS_ERROR_DOM_SECURITY_ERR)"  location: "chrome://global/content/bindings/tabbox.xml Line: 344"]

In my remote XUL CMS where I use this method of adding tabs in bindings (inside other bindings) it looks OK except the fact that newly added tab gains automaticly focus and fires onselect event which breaks important (for remote applications) lazy initialization of WYSIWYG editors embeded in the tabs.

Reproducible: Always

Steps to Reproduce:
1. Open the attachement
2. Click on the numbered tabs

Actual Results:  
1. DOM inspector does not show dynamicly added tabs
2. New dynamicly added tabs are right-aligned.
3. When clicking on the dynamicly added tabs SECURITY exception is thrown.
4. Newly created tabs gain focus and prevent lazy initializations on "select" event. (which is reproducible in my remote app where I use bindings inside bindis- unable to provide you with URL because whole app is broken because of the newest FF changes)

Expected Results:  
Hm. Working and consistent tabs?

I have the remote XUL application that has bindings inside bindings. In this application the look of the tabs is OK but I'm experiencing the problem when adding new tabs with JS. Every new tab gains focus and fires onselect event. Since this is remote XUL application it breaks the lazy initialization of the WYSIWYG editors embeded in the dynamicly added tabs.

When I tried to extract problematic piece of code from the complex remote XUL CMS app I found that the tabs behave very strange. The result is attached within this bug.
Duplicate of/related to Toolkit bug 315434?
Status: UNCONFIRMED → RESOLVED
Closed: 17 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: