Closed Bug 304684 Opened 19 years ago Closed 17 years ago

Inline XBL bindings fail if there is a script tag with an external reference

Categories

(Core :: XBL, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 371743

People

(Reporter: allan, Unassigned)

Details

Attachments

(1 file)

817 bytes, application/xhtml+xml
Details
Inline XBL bindings in a HTML document fail if there is a script tag with a src
attribute too. It does not matter if the referenced script actually exist

You'll get a warning:
WARNING: NS_ENSURE_TRUE(globalObject) failed, file nsDocument.cpp, line 4462

which is nsDocument::IsScriptEnabled():
nsIScriptGlobalObject* globalObject = GetScriptGlobalObject();
NS_ENSURE_TRUE(globalObject, PR_TRUE);
Attached file Testcase
Attachment #192722 - Attachment is patch: false
Attachment #192722 - Attachment mime type: text/plain → application/xhtml+xml
(I've filed it under trunk, but it's the same for 1.7)
Hmmm, this also means that it's not possible to use <script/> tags with an
external source in the content of XBL.
The problem is probably that the script load blocks the parser and that XBL
doesn't deal well with that because of the silly sync/async mess it has.
Flags: blocking1.9a1?
Flags: blocking1.9a1? → blocking1.9-
Status: UNCONFIRMED → NEW
Ever confirmed: true
This looks a lot like bug 371743 to me, which is a fixed bug.
So this bug is worksforme on trunk (and also with a 2007-01-11 branch build).
Indeed.
Status: NEW → 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: