Closed Bug 154814 Opened 23 years ago Closed 23 years ago

[ActiveX] clean up basic DOM functionality

Categories

(Core Graveyard :: Embedding: ActiveX Wrapper, defect)

x86
Windows XP
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: adamlock, Assigned: adamlock)

References

Details

Attachments

(1 file, 2 obsolete files)

The DOM source code is very crusty, overly complicated and needs to be updated to use Mozilla naming conventions and efficient use of Mozilla classes (e.g. not use nsString for local string variables). Ensure all basic functionality from traversal, setting/getting arributes, get_all, (& get_embeds, etc.), open, close, write, writeln are working properly. Add a basic style object implementation. Investigate if script handlers (onclick, onload etc.) can be made to work. Add tests CBrowse to exercise the DOM more thoroughly
Attached patch Work in progress (obsolete) — Splinter Review
Lot's of cleanup, not tested thoroughly yet
New patch uses DOM walker object
Depends on: 155066
Attached patch Patch (obsolete) — Splinter Review
New patch considerably cleans up implementation, and should be more efficient. Made control and performance *much* faster in debug by commenting out #define _ATL_DEBUG_INTERFACES
Attachment #89555 - Attachment is obsolete: true
Attached patch PatchSplinter Review
Patch uses the DOM2 standard TreeWalker class instead of the proprietary nsDOMWalker from webbrowserpersist (which is defunct).
Attachment #89713 - Attachment is obsolete: true
Comment on attachment 90241 [details] [diff] [review] Patch r=chak
Attachment #90241 - Flags: review+
Comment on attachment 90241 [details] [diff] [review] Patch I don't know much about OLE2W, but could you be using nsDependentString szName(OLE2W(strAttributeName)) or anything? other than that, this looks fine. sr=alecf either way.
Attachment #90241 - Flags: superreview+
OLE2W and the other FOO2BAR macros can potentially use temporary variables so I don't want to risk it. Fix is checked in
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
to ashish for verification
QA Contact: mdunn → ashishbhatt
marking as verified
Status: RESOLVED → VERIFIED
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: