Closed Bug 453571 Opened 16 years ago Closed 15 years ago

Replace nsAXPCNativeCallContext users with [optional] IDL arguments etc.

Categories

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

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: jst, Assigned: jst)

Details

Attachments

(3 files)

We've got a fair bit of code that uses nsAXPCNativeCallContext to deal with optional arguments and to access the current JS context or what not, all of which can be done in easier ways. In most cases we don't need to use the native call context at all, so this bug is about removing as many users of it as possible.
Attachment #336759 - Flags: superreview?(mrbkap)
Attachment #336759 - Flags: review?(mrbkap)
Attachment #336759 - Attachment is patch: true
Attachment #336759 - Attachment mime type: application/octet-stream → text/plain
Attachment #336759 - Flags: superreview?(mrbkap)
Attachment #336759 - Flags: superreview+
Attachment #336759 - Flags: review?(mrbkap)
Attachment #336759 - Flags: review+
This makes us use [optional] in the cases where it's obvious we should and easy to do so. There's one more patch coming that deals with the window.open mess, but I'll hold off until these are in to attach that...
Attachment #336947 - Flags: superreview?(bzbarsky)
Attachment #336947 - Flags: review?(jonas)
Attachment #336947 - Flags: superreview?(bzbarsky)
Attachment #336947 - Flags: superreview+
Attachment #336947 - Flags: review+
Comment on attachment 336947 [details] [diff] [review] Stage 2a, use more [optional]. r+sr=bzbarsky. Leaving the request for Jonas to review in case you still want him to look at this, but you could also just land it.
Stage one and 2a checked in. Jonas, feel free to have a look if you want to.
Boris, this makes us use [optional] for window.open* as well. Pretty straight forward, once I realized I could use the [binaryname()] IDL flag here.
Attachment #337155 - Flags: superreview?(bzbarsky)
Attachment #337155 - Flags: review?(bzbarsky)
Attachment #337155 - Flags: superreview?(bzbarsky)
Attachment #337155 - Flags: superreview+
Attachment #337155 - Flags: review?(bzbarsky)
Attachment #337155 - Flags: review+
Comment on attachment 337155 [details] [diff] [review] Stage 2b. Clean up how we deal with window.open() and its arguments. >+++ b/dom/public/idl/base/nsIDOMJSWindow.idl Fri Sep 05 16:57:05 2008 -0700 >+ * This is the scriptable versions of "version" >+++ b/dom/src/base/nsGlobalWindow.cpp Fri Sep 05 16:57:05 2008 -0700 >@@ -4962,59 +4977,7 @@ nsGlobalWindow::Open(const nsAString& aU >- nsnull, // aJSCallerContext ... >+ nsContentUtils::GetCurrentJSContext(), // aJSCallerContext Don't we want to keep passing null like we used to? r+sr=bzbarsky with those fixed. This is good stuff!
Is this RESO FIXED now?
Yup, closing out this bug, we'll open new bugs on more stuff as it comes up.
Status: NEW → RESOLVED
Closed: 15 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: