Open Bug 719014 Opened 12 years ago Updated 2 years ago

DeCOMtaminate nsParser instantiation

Categories

(Core :: DOM: HTML Parser, enhancement, P5)

enhancement

Tracking

()

People

(Reporter: hsivonen, Unassigned)

References

(Blocks 2 open bugs)

Details

Attachments

(1 file)

Instead of do_createInstance, nsParser should be instantiated with a static factory method (to avoid exporting nsParser.h).
Whiteboard: [good first bug]
Blocks: 719023
Assignee: nobody → Ms2ger
Summary: DeCOMtaminate nsParser instantiatiation → DeCOMtaminate nsParser instantiation
Attached patch Patch v1Splinter Review
Attachment #589857 - Flags: review?(hsivonen)
Comment on attachment 589857 [details] [diff] [review]
Patch v1

Bah, this doesn't work. nsParser::Init() isn't called in time. I'll try to figure something out over the weekend.
Attachment #589857 - Flags: review?(hsivonen) → review-
Regarding my earlier IRC comment: I now see that there's no such things as nsParserModule.h, so I guess putting a static ::Create() on nsIParser itself is the least trouble.

It would probably be polite to comm-central to split the part that removed the ability to instantiate nsParser the old way into a separate patch so that the patch that adds nsIParser::Create() can land first, then comm-central can migrate to using it and only then the do_CreateInstance support goes away.
Blocks: 719753
(In reply to Ms2ger from comment #2)
> Bah, this doesn't work. nsParser::Init() isn't called in time.

You could add explicit InitializeStatics()/ReleaseStatics() calls to nsLayoutStatics instead of relying on the old parser module doing stuff.

(In reply to Henri Sivonen (:hsivonen) from comment #3)
> It would probably be polite to comm-central

The comm-central dependencies have gone away.
Assignee: Ms2ger → nobody
Whiteboard: [good first bug]

Bulk-downgrade of unassigned, 4 years untouched DOM/Storage bugs' priority.

If you have reason to believe this is wrong (especially for the severity), please write a comment and ni :jstutte.

Severity: normal → S4
Priority: -- → P5
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: