Closed Bug 909597 Opened 11 years ago Closed 11 years ago

Make jsdebugapi.h not depend on jsapi.h

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla26

People

(Reporter: n.nethercote, Assigned: n.nethercote)

References

Details

(Whiteboard: [js:t])

Attachments

(2 files)

One sub-goal of the "minimize-jsapi" work is that no exported JS headers should include jsapi.h.  jsdbgapi.h is one such header, and it's easy to remedy.
This was Luke's suggestion.  I'm not entirely convinced by it...
js/OldDebugAPI.h is still used in quite a few places, more than the "Old" part
of the name suggests.
Attachment #795776 - Flags: review?(luke)
Comment on attachment 795776 [details] [diff] [review]
(part 2) - Rename jsdbgapi.{h,cpp} as {js,vm}OldDebugAPI.{h,cpp}.

jimb, what do you think about this renaming?
Attachment #795776 - Flags: feedback?(jimb)
Blocks: 909623
Attachment #795775 - Flags: review?(luke) → review+
Attachment #795776 - Flags: review?(luke) → review+
Comment on attachment 795776 [details] [diff] [review]
(part 2) - Rename jsdbgapi.{h,cpp} as {js,vm}OldDebugAPI.{h,cpp}.

Review of attachment 795776 [details] [diff] [review]:
-----------------------------------------------------------------

::: caps/src/nsScriptSecurityManager.cpp
@@ +10,3 @@
>  #include "xpcprivate.h"
>  #include "XPCWrapper.h"
>  #include "nsScriptSecurityManager.h"

Please don't put anything new above the main header. It's not good now, but there's no need to make it worse.

::: content/xbl/src/nsXBLSerialize.cpp
@@ +7,1 @@
>  #include "nsXBLSerialize.h"

Same here
Comment on attachment 795776 [details] [diff] [review]
(part 2) - Rename jsdbgapi.{h,cpp} as {js,vm}OldDebugAPI.{h,cpp}.

FWIW, here's Luke's rationale (from a private email conversation) for the name change:

"OldDebugAPI.h was, I think, the pre-jsfriendapi.h JS_FRIEND_API dumping ground.  I think the Old prefix is good here, though: nobody should be adding new uses, we should be removing old uses, and the few stragglers that remain after jsd is 
removed will get redistributed."
Attachment #795776 - Flags: feedback?(jimb)
https://hg.mozilla.org/mozilla-central/rev/e8fed1171d6a
https://hg.mozilla.org/mozilla-central/rev/2a3ed74a0c95
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla26
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: