Closed
Bug 1027734
Opened 10 years ago
Closed 9 years ago
Convert mozPay to WebIDL
Categories
(Core :: DOM: Device Interfaces, defect)
Core
DOM: Device Interfaces
Tracking
()
RESOLVED
FIXED
mozilla47
Tracking | Status | |
---|---|---|
firefox47 | --- | fixed |
People
(Reporter: khuey, Assigned: peterv)
References
(Depends on 1 open bug)
Details
Attachments
(1 file, 2 obsolete files)
(deleted),
patch
|
bzbarsky
:
review+
|
Details | Diff | Splinter Review |
We should move mozPay to use WebIDL rather than the Javascript-navigator-property stuff and JS implemented class info.
ferjm, could you take this?
Flags: needinfo?(ferjmoreno)
Comment 1•10 years ago
|
||
Note that because navigator.mozPay is a function, we either need to find a solution for bug 986455 or implement at least part of it in C++.
Depends on: 986455
Comment 2•10 years ago
|
||
I'm afraid that I won't be able to take this at least until the 2.0 peak is gone. Leaving the ni? anyway so I don't forget about this.
Updated•10 years ago
|
Flags: needinfo?(ferjmoreno)
Comment 3•10 years ago
|
||
How about now?
The current mechanism that this API is using is going away soonish.
Flags: needinfo?(ferjmoreno)
Updated•10 years ago
|
Assignee: nobody → ferjmoreno
Flags: needinfo?(ferjmoreno)
Comment 4•10 years ago
|
||
Assignee | ||
Updated•9 years ago
|
Assignee: ferjmoreno → peterv
Status: NEW → ASSIGNED
Assignee | ||
Comment 5•9 years ago
|
||
Need to figure out why the tests don't work yet.
Attachment #8474215 -
Attachment is obsolete: true
Assignee | ||
Comment 6•9 years ago
|
||
Attachment #8711843 -
Attachment is obsolete: true
Attachment #8713728 -
Flags: review?(bzbarsky)
Comment 7•9 years ago
|
||
Comment on attachment 8713728 [details] [diff] [review]
v2
>+++ b/dom/webidl/Navigator.webidl
>+ // The 'jwts' parameter can be either a single DOMString or an array of
>+ // DOMStrings.
Sure would be nice to make it a (DOMString or sequence<DOMString>) or something, but then talking to the back end would be a tad more annoying. On the other hand, it wouldn't involve chrome poking at content arrays...
r=me as-is, but this might be worth a followup.
Attachment #8713728 -
Flags: review?(bzbarsky) → review+
Assignee | ||
Comment 8•9 years ago
|
||
(In reply to Boris Zbarsky [:bz] from comment #7)
> Sure would be nice to make it a (DOMString or sequence<DOMString>) or
> something, but then talking to the back end would be a tad more annoying.
> On the other hand, it wouldn't involve chrome poking at content arrays...
I thought about that, but would that do what we want if someone passes in a string? I thought it would end up being converted to a sequence because String has an @@iterator and conversion to sequence is an earlier step than conversion to string in http://heycam.github.io/webidl/#es-union.
Flags: needinfo?(bzbarsky)
Assignee | ||
Comment 9•9 years ago
|
||
I guess I should have said "... passes in a String object". Maybe we don't care about that case.
Comment 10•9 years ago
|
||
I suspect we don't care about the String object case. But as I said, this should be a followup if we do it at all. We should certainly not hold up landing this over the DOMString union issue.
Flags: needinfo?(bzbarsky)
Comment 11•9 years ago
|
||
Comment 12•9 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
status-firefox47:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla47
You need to log in
before you can comment on or make changes to this bug.
Description
•