Closed Bug 705188 Opened 14 years ago Closed 14 years ago

Use IDL for mozIJSSubScriptLoader::LoadSubScript, {xpcIJSModuleLoader,nsIXPCComponents_Utils}::Import

Categories

(Core :: XPConnect, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla11

People

(Reporter: Ms2ger, Assigned: Ms2ger)

References

Details

Attachments

(1 file, 1 obsolete file)

Attached patch Patch v1 (obsolete) — Splinter Review
It's some nice cleanup, but I'm not sure if JS_GetGlobalObject(aCx) is correct (or even what behaviour these methods want, and how that correlates with JSAPI).
Attachment #576821 - Flags: review?(bzbarsky)
Blocks: 705324
JS_GetGlobalObject is almost certainly different from what we used to do if the code that's running doesn't have the same global as the context it's running on (think cross-window call). I'm not exactly comfortable with this review; who touched this code last?
sayrer, rginda@netscape.com, jst, and, well, you. How about I leave the global-getting code alone and just clean up the arguments-converting code?
Summary: Use IDL for {mozIJSSubScriptLoader,xpcIJSModuleLoader,nsIXPCComponents_Utils}::Import → Use IDL for mozIJSSubScriptLoader::LoadSubScript, {xpcIJSModuleLoader,nsIXPCComponents_Utils}::Import
Gah. Are you serious? Can I still disclaim responsibility somehow? Leaving the global stuff alone and cleaning up the argument mess sounds great.
Attached patch Patch v2Splinter Review
Let's try this...
Attachment #576821 - Attachment is obsolete: true
Attachment #576821 - Flags: review?(bzbarsky)
Attachment #578859 - Flags: review?(bzbarsky)
Comment on attachment 578859 [details] [diff] [review] Patch v2 r=me
Attachment #578859 - Flags: review?(bzbarsky) → review+
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla11
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: