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)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
People
(Reporter: jst, Assigned: jst)
Details
Attachments
(3 files)
6.71 KB,
patch
|
mrbkap
:
review+
mrbkap
:
superreview+
|
Details | Diff | Splinter Review |
32.36 KB,
patch
|
sicking
:
review+
bzbarsky
:
review+
bzbarsky
:
superreview+
|
Details | Diff | Splinter Review |
10.59 KB,
patch
|
bzbarsky
:
review+
bzbarsky
:
superreview+
|
Details | Diff | Splinter Review |
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.
Assignee | ||
Comment 1•16 years ago
|
||
Attachment #336759 -
Flags: superreview?(mrbkap)
Attachment #336759 -
Flags: review?(mrbkap)
Assignee | ||
Updated•16 years ago
|
Attachment #336759 -
Attachment is patch: true
Attachment #336759 -
Attachment mime type: application/octet-stream → text/plain
Updated•16 years ago
|
Attachment #336759 -
Flags: superreview?(mrbkap)
Attachment #336759 -
Flags: superreview+
Attachment #336759 -
Flags: review?(mrbkap)
Attachment #336759 -
Flags: review+
Assignee | ||
Comment 2•16 years ago
|
||
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)
![]() |
||
Updated•16 years ago
|
Attachment #336947 -
Flags: superreview?(bzbarsky)
Attachment #336947 -
Flags: superreview+
Attachment #336947 -
Flags: review+
![]() |
||
Comment 3•16 years ago
|
||
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.
Assignee | ||
Comment 4•16 years ago
|
||
Stage one and 2a checked in. Jonas, feel free to have a look if you want to.
Assignee | ||
Comment 5•16 years ago
|
||
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)
![]() |
||
Updated•16 years ago
|
Attachment #337155 -
Flags: superreview?(bzbarsky)
Attachment #337155 -
Flags: superreview+
Attachment #337155 -
Flags: review?(bzbarsky)
Attachment #337155 -
Flags: review+
![]() |
||
Comment 6•16 years ago
|
||
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!
Assignee | ||
Comment 7•16 years ago
|
||
Stage 2b landed. http://hg.mozilla.org/mozilla-central/rev/89f146305b76
Attachment #336947 -
Flags: review?(jonas) → review+
Comment 8•15 years ago
|
||
Is this RESO FIXED now?
Assignee | ||
Comment 9•15 years ago
|
||
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
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•