Closed
Bug 656311
Opened 13 years ago
Closed 11 years ago
Remove XML Events, or improve the implementation
Categories
(Core :: DOM: Core & HTML, defect)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla19
People
(Reporter: smaug, Assigned: smaug)
Details
(Keywords: addon-compat, dev-doc-needed)
Attachments
(2 files)
28.37 KB,
patch
|
bzbarsky
:
review+
|
Details | Diff | Splinter Review |
28.35 KB,
patch
|
Details | Diff | Splinter Review |
Since XForms hasn't really gained support, I think we could remove support for XML Events from the core. The implementation doesn't seem to handle all the dynamic changes properly (blame me) and once parentNode and ownerDocument become strong, all the XML Events code should be carefully audited to not cause leaks. One could implement XML Events in XTF. The question is that should there be XML Events extension before removing the support from core. Aaron, Surkov, any comments?
Comment 1•13 years ago
|
||
(In reply to comment #0) > The question is that should there be XML Events extension before removing > the support from core. this is really desirable I think, otherwise we make extra work for guys who still (or going to) do some xforms work. Having an extension is a friendly way.
I personally think that any technology that Mozilla supports that distinguishes itself from webkit or IE is a good thing. Especially one that costs Mozilla next to nothing in size, speed, memory or developer cycles. There are still mozilla xforms users out there, I believe, and I think they use it to do real work. I don't think that this should be pulled unless there is an extension to replace it or until the xforms users are at least notified and offered a chance to comment. Addons says that there have been 300K+ downloads of xforms, afterall (the accuracy of that is, of course, up for debate :-)
Assignee | ||
Comment 3•13 years ago
|
||
Other option is that I'll just (1) fix XML Events implementation to not leak when parentNode/ownerDocument is strong . And also (2) make it handle dynamic modifications better. (1) is pretty easy.
Assignee: nobody → Olli.Pettay
Summary: Remove XML Events → Remove XML Events, or improve the implementation
I actually think it's a bad thing when we have a feature in the tree exposed to the web that other browsers don't and don't intend to add. Differences between browsers is bad for the web. It's also not free to keep the code in the tree. Both because it needs to be maintained (such as in this case when our memory model changes slightly), and because it adds complexity to the code which makes it harder to understand and approach for beginners. I say lets deprecate the code the way we normally do it, by putting a warning message in the error console whenever it's used saying that it'll get removed soon, to give people a chance to find a replacement, and then remove it in a few releases. However I'd be fine with leaving it in a warning state a bit longer than usual to give people a chance to write a replacement.
(In reply to comment #4) > I actually think it's a bad thing when we have a feature in the tree exposed > to the web that other browsers don't and don't intend to add. Differences > between browsers is bad for the web. Ugh, you sound like a Home Owners Association! :-)
Comment 6•13 years ago
|
||
(In reply to comment #4) > I actually think it's a bad thing when we have a feature in the tree exposed > to the web that other browsers don't and don't intend to add. Differences > between browsers is bad for the web. I came here to say just that. Thanks, Jonas :)
Assignee | ||
Comment 7•11 years ago
|
||
If we do bug 749448, there isn't really any use for XML Events either. Any objections if I just remove both features. They will be still in ESR17 until the end of 2013, IIRC.
Comment 8•11 years ago
|
||
Same as in bug 749448, I don't see a future for Mozilla XForms, and if that's the only user, let's remove it.
Assignee | ||
Comment 9•11 years ago
|
||
https://tbpl.mozilla.org/?tree=Try&rev=3a180ca567c7
Attachment #681505 -
Flags: review?(bzbarsky)
![]() |
||
Comment 10•11 years ago
|
||
Comment on attachment 681505 [details] [diff] [review] patch r=me
Attachment #681505 -
Flags: review?(bzbarsky) → review+
Woot!
Assignee | ||
Comment 12•11 years ago
|
||
Assignee | ||
Comment 13•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/335830f44719
Assignee | ||
Updated•11 years ago
|
Status: NEW → RESOLVED
Closed: 11 years ago
Keywords: addon-compat,
dev-doc-needed
Resolution: --- → FIXED
Updated•5 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•