Closed Bug 1253188 Opened 10 years ago Closed 10 years ago

[TV][2.5] The context menu still shows "Add to Apps" even the marketplace content has been added

Categories

(Firefox OS Graveyard :: Gaia::TV::System, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(blocking-b2g:2.5+, b2g-v2.5 verified, b2g-master verified)

VERIFIED FIXED
blocking-b2g 2.5+
Tracking Status
b2g-v2.5 --- verified
b2g-master --- verified

People

(Reporter: lchang, Assigned: lchang)

Details

(Whiteboard: [ft:conndevices])

Attachments

(2 files)

STR: 1. launch "Web Apps" 2. focus on the "kicker" icon 3. press ENTER key to preview it 4. press OPTION key and choose "Add to Apps" 5. press BACK key to return to "Web Apps" 6. press OPTION key to trigger the context menu 7. the context menu still shows "Add to Apps" incorrectly
Comment on attachment 8726133 [details] [review] [gaia] luke-chang:1253188_tv_normalize_preview_url > mozilla-b2g:master This bug happens because the preview URL passed through "window.open" API [1] will be normalized automatically by Gecko. That is, the same URL coming from "window.open" and the label of the context menu [2] may result in different strings. So, in this patch, I used "new URL().toString()" to normalize the URL string manually when receiving it from the label. Hi Rex, could you take a look? Thanks. [1] https://github.com/mozilla-b2g/gaia/blob/master/tv_apps/smart-system/js/wrapper_factory.js#L46 [2] https://github.com/mozilla-b2g/gaia/blob/master/tv_apps/smart-system/js/browser_context_menu.js#L309
Attachment #8726133 - Flags: review?(rexboy)
Whiteboard: [ft:conndevices]
blocking-b2g: 2.5? → 2.5+
Comment on attachment 8726133 [details] [review] [gaia] luke-chang:1253188_tv_normalize_preview_url > mozilla-b2g:master Looks good. thanks!
Attachment #8726133 - Flags: review?(rexboy) → review+
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Comment on attachment 8726133 [details] [review] [gaia] luke-chang:1253188_tv_normalize_preview_url > mozilla-b2g:master [Approval Request Comment] [Bug caused by] (feature/regressing bug #): feature. [User impact] if declined: feature wouldn't be complete. [Testing completed]: yes. [Risk to taking this patch] (and alternatives if risky): low. [String changes made]: n/a
Attachment #8726133 - Flags: approval-gaia-v2.5?
Comment on attachment 8726133 [details] [review] [gaia] luke-chang:1253188_tv_normalize_preview_url > mozilla-b2g:master Approve for TV 2.5
Attachment #8726133 - Flags: approval-gaia-v2.5? → approval-gaia-v2.5+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: