Closed
Bug 713550
Opened 13 years ago
Closed 13 years ago
Move Base64 code in XPConnect away from nsXPConnect
Categories
(Core :: XPConnect, defect)
Core
XPConnect
Tracking
()
RESOLVED
FIXED
mozilla12
People
(Reporter: Ms2ger, Assigned: Ms2ger)
Details
Attachments
(1 file, 2 obsolete files)
20.63 KB,
patch
|
khuey
:
review+
bholley
:
review+
|
Details | Diff | Splinter Review |
This code is rather self-contained, and I don't see how static methods on nsXPConnect is a good place for them.
Attachment #584339 -
Flags: review?(bobbyholley+bmo)
Comment 1•13 years ago
|
||
It seems to me that the only thing that should really live in XPConnect is the jsval translation stuff, and everything else should live in xpcom/string, or maybe some other general utility drawer.
Kyle, what do you think?
Comment on attachment 584339 [details] [diff] [review]
Patch v1
Lets put this stuff in xpcom/io/Base64.[cpp|h]?
Attachment #584339 -
Flags: review?(bobbyholley+bmo) → review-
Assignee | ||
Comment 3•13 years ago
|
||
Mmk.
Attachment #584339 -
Attachment is obsolete: true
Attachment #584462 -
Flags: review?(khuey)
Attachment #584462 -
Flags: review?(bobbyholley+bmo)
Comment 4•13 years ago
|
||
Comment on attachment 584462 [details] [diff] [review]
Patch v2
As mentioned on IRC, please put the public declarations of the XPConnect-y versions in xpcpublic, and leave the implementations in nsXPConnect.
Attachment #584462 -
Flags: review?(bobbyholley+bmo) → review-
Assignee | ||
Comment 5•13 years ago
|
||
Attachment #584462 -
Attachment is obsolete: true
Attachment #584462 -
Flags: review?(khuey)
Attachment #584483 -
Flags: review?(khuey)
Attachment #584483 -
Flags: review?(bobbyholley+bmo)
Comment on attachment 584483 [details] [diff] [review]
Patch v3
Review of attachment 584483 [details] [diff] [review]:
-----------------------------------------------------------------
I assumed you just copied and pasted the code and didn't look too closely.
::: js/xpconnect/src/nsXPConnect.cpp
@@ +2807,5 @@
> {
> + MOZ_ASSERT(cx);
> + MOZ_ASSERT(out);
> +
> + JS::Value root = val;
Is this necessary? val is already on the stack ...
@@ +2833,5 @@
> {
> + MOZ_ASSERT(cx);
> + MOZ_ASSERT(out);
> +
> + JS::Value root = val;
Same question.
Attachment #584483 -
Flags: review?(khuey) → review+
Comment 7•13 years ago
|
||
Comment on attachment 584483 [details] [diff] [review]
Patch v3
r=bholley on the xpconnect bits.
Attachment #584483 -
Flags: review?(bobbyholley+bmo) → review+
Assignee | ||
Comment 8•13 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla12
You need to log in
before you can comment on or make changes to this bug.
Description
•