Closed Bug 315562 Opened 19 years ago Closed 19 years ago

non-MOZILLA_INTERNAL_API code usage of dom/content headers

Categories

(Core :: DOM: Core & HTML, defect, P2)

defect

Tracking

()

RESOLVED FIXED
mozilla1.9alpha1

People

(Reporter: benjamin, Assigned: benjamin)

References

Details

Attachments

(1 file, 1 obsolete file)

The Mozilla activex plugin/control needs to be built without MOZILLA_INTERNAL_API, but it needs to include nsIContent.h so it can pass a content object to nsILinkHandler. The forthcoming patch is a hack that allows the necessary headers to be included without breaking the build.
Attachment #202252 - Flags: review?(jst)
Blocks: 315563
Comment on attachment 202252 [details] [diff] [review] Hack "nsStringGlue.h" and ifdefs for non-internal API use >Index: content/base/public/nsIDocument.h >+#ifndef MOZILLA_INTERNAL_API >+// XXX Hack alert! These are only here to make this file compile, you can't >+// actually use these to do anything useful with the frozen string API. >+#define nsAFlatString nsAString >+#define nsAFlatCString nsACString >+#endif nsAFlatString is a deprecated type even in the internal string API, and it actually corresponds to nsString. Why not add typedefs to nsStringAPI.h in the deprecated section for this? Or, change nsIDocument to use nsString in place of nsAFlatString.
Attachment #202252 - Flags: review?(jst)
Attachment #202252 - Attachment is obsolete: true
Attachment #202287 - Flags: review?(jst)
Status: NEW → ASSIGNED
Priority: -- → P2
Comment on attachment 202287 [details] [diff] [review] Hack "nsStringGlue.h" and ifdefs for non-internal API use r=jst
Attachment #202287 - Flags: review?(jst) → review+
Fixed on trunk.
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: