Closed Bug 51261 Opened 24 years ago Closed 5 years ago

document.addBinding is broken

Categories

(Core :: XBL, defect)

defect
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: hyatt, Unassigned)

References

(Blocks 1 open bug)

Details

(Keywords: helpwanted, testcase, Whiteboard: [xbl1.0] (unsupported?))

Attachments

(4 files, 4 obsolete files)

      No description provided.
Status: NEW → ASSIGNED
Whiteboard: [xbl1.0]
Target Milestone: --- → M18
mass-moving xbl1.0 bugs to future, adding helpwanted keyword
Keywords: helpwanted
Target Milestone: M18 → Future
This would help accessibility become an additive feature that doesn't affect
performance when it's not needed.
Keywords: access
Whiteboard: [xbl1.0] → [xbl1.0] 2weeks
No longer needed for accessibility, since we are getting events through
WindowRoot now.
Keywords: access
->moz0.9
Target Milestone: Future → mozilla0.9
->future
Target Milestone: mozilla0.9 → Future
Hyatt says this requires prototype forking.

/be
Depends on: 41428
Blocks: 57805
document.addBinding() is crash-happy.

Talkback ID TB17268969X.  Testcase included in talkback report.
Severity: normal → critical
Keywords: crash
Attached file Stack of TB 17268969
Attached file Testcase (part 1 of 3) (obsolete) —
Attached file Testcase zipped up (local files) (obsolete) —
Couldn't reproduce the crash using first two attachments of testcase downloaded
from b.m.o.  Here's the same testcase using local files, zipped up into one
package.
Attachment #114700 - Attachment is obsolete: true
Attachment #114702 - Attachment is obsolete: true
Attached file Stack of TB 17268969
Regarding the crash bug, I tested the same @ home against Mozilla 1.0.  No crash
there, but I'd appreciate independent confirmation of that.
Attached file this one from me, addBinding, crash (obsolete) —
xbl, latest mozilla, crash
No crash with Gecko/20030827 Mozilla Firebird/0.6.1+, testcase in comment 14
No crash with testcase from comment 14.

Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7b) Gecko/20040316
Keywords: crash
Hi . . . Have been setting up firefox as recommended by Kim Komando.
Moved bookmarks . . . all working beautifully UNTIL I downloaded some themes.

One of them went crazy and now I keep getting an XBL binding message and I can 
not even load Firefox.  Have uninstalled all of Firefox and reloaded a fresh 
copy twice.  Still get the message so the themes have completely crippled my 
access to Firefox.

Is there something I can do  ?

Thank you.
Hi . . . Have been setting up firefox as recommended by Kim Komando.
Moved bookmarks . . . all working beautifully UNTIL I downloaded some themes.

One of them went crazy and now I keep getting an XBL binding message and I can 
not even load Firefox.  Have uninstalled all of Firefox and reloaded a fresh 
copy twice.  Still get the message so the themes have completely crippled my 
access to Firefox.

Is there something I can do  ?

Thank you.
Attached file binding
Attached file testcase #1
It seems this is not supported at all...
Attachment #114703 - Attachment is obsolete: true
Attachment #118035 - Attachment is obsolete: true
Assignee: hyatt → general
Status: ASSIGNED → NEW
QA Contact: jrgmorrison → ian
Whiteboard: [xbl1.0] 2weeks → [xbl1.0] (unsupported?)
Keywords: testcase
OS: Windows 98 → All
Priority: P3 → --
Hardware: PC → All
Target Milestone: Future → ---
Reducing severity as document.addBinding is no longer crash-happy.
Severity: critical → normal
(In reply to comment #21)

> Reducing severity as document.addBinding is no longer crash-happy.

Negative. For me, it keeps crashing every time it is called. This on Linux x86
with cvs checkout from some hours ago.

Sorry for the bad news.
Andreas, could you please file a separate bug on the issue you're seeing (which
sounds like a regression)?  Please make sure to post a testcase that shows the
problem, and please CC me on the bug.
(In reply to comment #23)

> Andreas, could you please file a separate bug on the issue you're seeing (which
> sounds like a regression)?  Please make sure to post a testcase that shows the
> problem, and please CC me on the bug.

Done. https://bugzilla.mozilla.org/show_bug.cgi?id=296375.
Is my understanding correct that document.addBinding currently cannot be used at all? It only seems to work if document.loadBindingDocument has been called before, to the extent that the constructor executes and the anonymous nodes appear in DOM Inspector. For some reason these anonymous nodes can't be seen on the web page however. Did I miss some work-around?
Found the workaround already: set .style.display="none" on the element, insert it into the document, call document.loadBindingDocument+document.addBinding, and finally set .style.display="" in the XBL constructor. Changing the display property forces a reflow which seems to be enough for the binding to display correctly.

Sorry about the bugspam.
Assignee: xbl → nobody
QA Contact: ian → xbl

XBL is now disabled in Firefox (Bug 1583314) and is in the process of being removed from Gecko (Bug 1566221), so I'm closing bugs related to the implementation.

Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: