Closed Bug 647273 Opened 13 years ago Closed 13 years ago

Remove nsIContentUtils

Categories

(Core :: DOM: Navigation, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: justin.lebar+bug, Assigned: justin.lebar+bug)

References

(Blocks 1 open bug)

Details

(Whiteboard: [cleanup])

Attachments

(1 file, 2 obsolete files)

Now that non-libxul builds are unsupported, my understanding is that nsIContentUtils doesn't serve a useful purpose and can be removed.
And nsIContentUtils2, and maybe nsIContentUtils3 if we managed to grow that ...

But yes, as long as the interface was only to allow it to be used cross-module (and there are no script consumers) you can scrap it.
Attached patch Patch v1 (obsolete) — Splinter Review
How does this look to you, Jonas?
Attachment #525222 - Flags: review?(jonas)
Assignee: nobody → justin.lebar+bug
Attached patch Patch v2 (obsolete) — Splinter Review
Unbitrotting after removal of a MOZILLA_2_0 interface.
Attachment #525593 - Flags: review?(jonas)
Attachment #525222 - Attachment is obsolete: true
Attachment #525222 - Flags: review?(jonas)
Attached patch Patch v3Splinter Review
Removing nsLayoutModule entries, which I initially missed.
Attachment #525614 - Flags: review?(jonas)
Attachment #525593 - Attachment is obsolete: true
Attachment #525593 - Flags: review?(jonas)
So the problem is TestChromeMargin.cpp, a Windows only cpp test.  It tests a function in ns{I}ContentUtils.

If you include nsContentUtils.h directly, you end up including enough of the world that you need to be in the internal API world.  But I can't figure out how to get this unit test into that world.  Apparently you can't just #define MOZILLA_INTERNAL_API and expect things to work.  :)

jimm or someone else: Any ideas on how to fix this?  I'd really hate to hold this bug up on a test technicality.
On IRC, jimm gave me r+ to disable widget/tests/TestChromeMargin.cpp.  I'll file a followup bug to fix and re-enable the test.
Blocks: 652123
Pushed with misbehaving test disabled: http://hg.mozilla.org/mozilla-central/rev/863db843fde4
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: