Closed Bug 1014605 Opened 10 years ago Closed 10 years ago

[Browser][V2.0] Cannot add a RTSP shortcut on homescreen

Categories

(Firefox OS Graveyard :: Gaia::Browser, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(blocking-b2g:2.0M+, b2g-v2.0 affected, b2g-v2.0M verified, b2g-v2.1 affected)

RESOLVED FIXED
blocking-b2g 2.0M+
Tracking Status
b2g-v2.0 --- affected
b2g-v2.0M --- verified
b2g-v2.1 --- affected

People

(Reporter: whsu, Unassigned)

References

Details

(Whiteboard: permafail)

Attachments

(4 files, 1 obsolete file)

Attached video WP_20140522_012.mp4
* Description:
  Nothing happened after trying to add a RTSP shortcut via "Add to homescreen" button
  Attach the demo video.(WP_20140522_012.mp4)

* Reproduction steps:
  1. Visit following webpage - http://goo.gl/BhJd77
  2. Tap "RTSP test page" link
  3. Tap star icon
  4. Tap "Add to home screen"

* Expected result:
  You can add a shortcut on homescreen

* Actual result:
  Nothing happened

* Reproduction build: V2.0 (Buri)
 - Gaia      40abb245b1e61df67757ba3747e2f73202e5182b
 - Gecko     https://hg.mozilla.org/mozilla-central/rev/a7d685480bf2
 - BuildID   20140521160200
 - Version   32.0a1
Assignee: nobody → ettseng
Whiteboard: [2.0-flame-test-run-1]
QA Whiteboard: [QAnalyst-Triage?]
Flags: needinfo?(ktucker)
Whiteboard: [2.0-flame-test-run-1] → [2.0-flame-test-run-1], [2.0-flame-test-run-2]
QA Whiteboard: [QAnalyst-Triage?] → [QAnalyst-Triage+]
Flags: needinfo?(ktucker)
QA Whiteboard: [QAnalyst-Triage+] → [QAnalyst-Triage+][lead-review+]
Is this a regression?
(In reply to Gregor Wagner [:gwagner] from comment #1)
> Is this a regression?

Might be. But it's a minor bug overall - most users won't add a homescreen bookmark based on a RTSP link.
QA Whiteboard: [QAnalyst-Triage+][lead-review+] → [QAnalyst-Triage?][lead-review+]
Whiteboard: [2.0-flame-test-run-1], [2.0-flame-test-run-2] → permafail
Flags: needinfo?(ktucker)
QA Whiteboard: [QAnalyst-Triage?][lead-review+] → [QAnalyst-Triage+][lead-review+]
Flags: needinfo?(ktucker)
QA Whiteboard: [QAnalyst-Triage+][lead-review+] → [QAnalyst-Triage?][lead-review+]
Flags: needinfo?(ktucker)
QA Whiteboard: [QAnalyst-Triage?][lead-review+] → [QAnalyst-Triage+][lead-review+]
Flags: needinfo?(ktucker)
Attached file pull request for v2.0 (obsolete) —
'Add to homescreen' MozActivity is handled by the bookmark app. However RTSP urls are not currently registered and handled in MozActivities. The PR adds RTSP url support in the manifest.webapp of the bookmark app.
Attachment #8491234 - Flags: review?(bfrancis)
Comment on attachment 8491234 [details] [review]
pull request for v2.0

Flagging bookmark app owner for review.
Attachment #8491234 - Flags: review?(bfrancis) → review?(crdlc)
Comment on attachment 8491234 [details] [review]
pull request for v2.0

LGTM and it makes sense but please check if UrlHelper.isNotURL('rtsp://100.100.100.100/rtsp.mp4') is false before landing.

https://github.com/mozilla-b2g/gaia/blob/master/apps/bookmark/js/bookmark_editor.js#L86

Just a question, why the patch is for 2.0? I thought that commits go to master and after that, we have to request for approval-gaia-v2.0 in this case, right?
Attachment #8491234 - Flags: review?(crdlc) → review+
Reset assignee since Yi-Fan already provided the patch.
Thanks everyone for working on this. :)
Assignee: ettseng → nobody
Attached file pull request
Thank you. :)

Checked RTSP link is valid in the UrlHelper.

Created PR for master branch. File changes are the same.
Attachment #8491234 - Attachment is obsolete: true
Attachment #8492013 - Flags: review?(crdlc)
Unit test for rtsp links added.
Comment on attachment 8492013 [details] [review]
pull request

Perfect, thanks a lot!
Attachment #8492013 - Flags: review?(crdlc) → review+
Merged into master:
https://github.com/mozilla-b2g/gaia/pull/24203

TBPL:
https://tbpl.mozilla.org/?rev=a7fc490ebb610805a3cd6a3bc502e77a06893892&tree=Gaia-Try
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
blocking-b2g: --- → 2.0M?
Hi Yi-Fan:
 Could you please help prepare 2.0m patch once 2.0m+?

Thanks!!
Shawn Ku
Flags: needinfo?(yliao)
Code changes are slightly different from master branch in url_helper_test.js.

[Approval Request Comment]
[Bug caused by] (feature/regressing bug #): 1014605
[User impact] if declined: RSTP links are not able to be added to homescreen
[Testing completed]: 
for v2.0: https://tbpl.mozilla.org/?rev=8bf89eecd3031a23f4274cc316f45bb425fa409c&tree=Gaia-Try
for v2.1: https://tbpl.mozilla.org/?rev=32f5753171da197cd25dea75d541c59fe7abb54e&tree=Gaia-Try
[Risk to taking this patch] (and alternatives if risky): No
[String changes made]: No
Attachment #8493485 - Flags: review?(crdlc)
Attachment #8493485 - Flags: approval-gaia-v2.1?(bbajaj)
Attachment #8493485 - Flags: approval-gaia-v2.0?(bbajaj)
blocking-b2g: 2.0M? → 2.0M+
Comment on attachment 8493485 [details] [review]
pull request for v2.0, v2.0m, v2.1

Yes, attachment 8493485 [details] [review] is also for v2.0m.
Attachment #8493485 - Attachment description: pull request for v2.0 && v2.1 → pull request for v2.0, v2.0m, v2.1
Flags: needinfo?(yliao)
Hi Seinlin:
 Please uplift the patch to 2.0m.

Thanks!!
Shawn
Flags: needinfo?(kli)
Comment on attachment 8493485 [details] [review]
pull request for v2.0, v2.0m, v2.1

The code is the same and looks good too :), I guess that once received the approval+ your patch with r+ will be uplifted. you don't need more patches here. Please ask for approval for your patch which is already landed on master. Thanks a lot for your help.
Attachment #8493485 - Flags: review?(crdlc)
Attachment #8493485 - Flags: approval-gaia-v2.1?(bbajaj)
Attachment #8493485 - Flags: approval-gaia-v2.0?(bbajaj)
Flags: needinfo?(yliao)
If the code changes, you have to resolve conflicts uplifting, I mean, during the cherry-pick. Thanks Yi-Fan

(In reply to Yi-Fan Liao [:yifan][:yliao] from comment #15)
> Created attachment 8493485 [details] [review]
> pull request for v2.0, v2.0m, v2.1
> 
> Code changes are slightly different from master branch in url_helper_test.js.
> 
> [Approval Request Comment]
> [Bug caused by] (feature/regressing bug #): 1014605
> [User impact] if declined: RSTP links are not able to be added to homescreen
> [Testing completed]: 
> for v2.0:
> https://tbpl.mozilla.org/
> ?rev=8bf89eecd3031a23f4274cc316f45bb425fa409c&tree=Gaia-Try
> for v2.1:
> https://tbpl.mozilla.org/
> ?rev=32f5753171da197cd25dea75d541c59fe7abb54e&tree=Gaia-Try
> [Risk to taking this patch] (and alternatives if risky): No
> [String changes made]: No
Thank you! 

Previously I noticed that there are some slight differences of url_helper.js. Testing 'http:' and 'rtsp:' fails in url_helper_test.js before and including v2.1. So the test code for v2.1 and before is different. I tried cherry-pick with v2.0, v2.0m and v2.1 with no conflicts and test failure. Will request uplift with the 2nd pull request.
Flags: needinfo?(yliao)
Yifan, I am not sure if 2.0 will get approval to land or not. But 2.0m need this patch. Can you send PR to v2.0m? Thanks!
Flags: needinfo?(kli)
'pull request for v2.0, v2.0m, v2.1' is the one for you. It could be cherry-picked into v2.0m with no conflicts. I'll leave v2.0 and v2.1 unchanged.
This issue has been verified successfully on Woodduck 2.0. We use bug 1059929 website  instead of  "http://goo.gl/BhJd77" to verify this bug.
See attachment: 1601.MP4
Reproducing rate: 0/5

Step:
1.Launch Browser.
2.Go to the "rtsp://184.72.239.149/vod/mp4:BigBuckBunny_175k.mov".
3.Tap play icon to play the video.
4.Tap "^" -> star icon.
5.Tap "Add to home screen" -> "Add to Home Screen".
6.Back to Home.
**The shortcut have been added to home.

Woodduck version:
Gaia-Rev        87b23fa81c3b59f2ba24b84f7d686f4160d4e7cb
Gecko-Rev       d049d4ef127844121c9cf14d2e8ca91fd9045fcb
Build-ID        20141125050313
Version         32.0
Device-Name     jrdhz72_w_ff
FW-Release      4.4.2
FW-Incremental  1416863158
FW-Date         Tue Nov 25 05:06:35 CST 2014
Attached video 1601.MP4
Blocks: Woodduck
Test case has been added in moztrap:
https://moztrap.mozilla.org/manage/case/11041/
Flags: in-moztrap+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: