Closed Bug 809218 Opened 12 years ago Closed 12 years ago

Expose atob and btoa functions in xpcshell

Categories

(Core :: XPConnect, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla19
Tracking Status
firefox19 --- fixed
b2g18 --- fixed
b2g18-v1.0.0 --- wontfix
b2g18-v1.0.1 --- wontfix

People

(Reporter: ferjm, Assigned: ferjm)

References

Details

Attachments

(1 file)

Currently |atob| and |btoa| are undefined in xpcshell.
Blocks: 809219
Component: XPCShell Harness → XPConnect
Product: Testing → Core
Attached patch v1 (deleted) — Splinter Review
Assignee: nobody → ferjmoreno
Status: NEW → ASSIGNED
Attachment #679789 - Flags: review?(mrbkap)
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+
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla19
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 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+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: