Closed Bug 872149 Opened 11 years ago Closed 11 years ago

Make payments UI use PromptService asynchronously

Categories

(Firefox for Android Graveyard :: General, defect)

ARM
Android
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Firefox 24

People

(Reporter: jchen, Assigned: wesj)

References

Details

Attachments

(1 file)

Blocks: 877911
No longer blocks: 877911
Attached patch PatchSplinter Review
Sorry to send these all to you, but they're simple.

I really wanted to start attaching a window to these so that we might someday try to do tab-modal prompts. The Payments stuff doesn't seem to give us one though. b2g does something that seems wrong: http://mxr.mozilla.org/mozilla-central/source/b2g/components/PaymentGlue.js#43

I'll file a bug that it would be nice to have a way to get the window.
Attachment #756764 - Flags: review?(mark.finkle)
(In reply to Wesley Johnston (:wesj) from comment #1)

> I really wanted to start attaching a window to these so that we might
> someday try to do tab-modal prompts. The Payments stuff doesn't seem to give
> us one though. b2g does something that seems wrong:
> http://mxr.mozilla.org/mozilla-central/source/b2g/components/PaymentGlue.
> js#43

I don't know if that is strictly 'wrong', but it is a bit fragile and makes some assumptions about the selected tab.
Comment on attachment 756764 [details] [diff] [review]
Patch

># HG changeset patch
># Parent 191f8e78f44144748a4d4ab1c7af32e6d88bbcf5
>
>diff --git a/mobile/android/components/PaymentsUI.js b/mobile/android/components/PaymentsUI.js
>--- a/mobile/android/components/PaymentsUI.js
>+++ b/mobile/android/components/PaymentsUI.js
>@@ -86,29 +86,26 @@
>         label: requestText,
>         isGroup: false,
>         inGroup: false,
>         disabled: false,
>         id: i

Can't you drop some of these too?

r+, but make those removals too
Attachment #756764 - Flags: review?(mark.finkle) → review+
https://hg.mozilla.org/mozilla-central/rev/994a455c1a99
Assignee: nobody → wjohnston
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 24
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: