Closed
Bug 809218
Opened 12 years ago
Closed 12 years ago
Expose atob and btoa functions in xpcshell
Categories
(Core :: XPConnect, defect)
Core
XPConnect
Tracking
()
RESOLVED
FIXED
mozilla19
People
(Reporter: ferjm, Assigned: ferjm)
References
Details
Attachments
(1 file)
(deleted),
patch
|
mrbkap
:
review+
lsblakk
:
approval-mozilla-b2g18+
|
Details | Diff | Splinter Review |
Currently |atob| and |btoa| are undefined in xpcshell.
Updated•12 years ago
|
Component: XPCShell Harness → XPConnect
Product: Testing → Core
Assignee | ||
Comment 1•12 years ago
|
||
Comment 2•12 years ago
|
||
Comment on attachment 679789 [details] [diff] [review]
v1
Review of attachment 679789 [details] [diff] [review]:
-----------------------------------------------------------------
Two small comments... r+ with them addressed.
::: js/xpconnect/shell/xpcshell.cpp
@@ +797,5 @@
> +{
> + if (!argc)
> + return true;
> +
> + return xpc::Base64Decode(cx, JS_ARGV(cx, vp)[0], &JS_RVAL(cx, vp));
Given that you are using namespace xpc above, the xpc:: here is redundant. I'd prefer to nuke the "using" declaration in favor of the explicit xpc:: here (given that you're only using two names out of the namespace).
::: js/xpconnect/src/nsXPConnect.cpp
@@ +2322,5 @@
> return nsXPConnect::GetRuntimeInstance()->DeferredRelease(obj);
> }
>
> +
> +NS_EXPORT_(bool)
Uber-nit: remove the extra newline added above this.
Attachment #679789 -
Flags: review?(mrbkap) → review+
Assignee | ||
Comment 3•12 years ago
|
||
Comment 4•12 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla19
Assignee | ||
Comment 5•12 years ago
|
||
Comment on attachment 679789 [details] [diff] [review]
v1
We need this fix in order to land navigator.mozPay tests from Bug 809219
Attachment #679789 -
Flags: approval-mozilla-b2g18?
Comment 6•12 years ago
|
||
Comment on attachment 679789 [details] [diff] [review]
v1
approving, in conjunction with bug 809219 so that unittests can be enabled on mozPay
Attachment #679789 -
Flags: approval-mozilla-b2g18? → approval-mozilla-b2g18+
Comment 7•12 years ago
|
||
status-b2g18:
--- → fixed
status-b2g18-v1.0.0:
--- → wontfix
status-b2g18-v1.0.1:
--- → wontfix
status-firefox19:
--- → fixed
You need to log in
before you can comment on or make changes to this bug.
Description
•