Closed
Bug 1169010
Opened 10 years ago
Closed 9 years ago
[User Story] Launch Pinned Site
Categories
(Firefox OS Graveyard :: Gaia::Homescreen, defect)
Tracking
(feature-b2g:2.5+)
RESOLVED
FIXED
feature-b2g | 2.5+ |
People
(Reporter: benfrancis, Assigned: apastor)
References
Details
(Keywords: feature, Whiteboard: [systemsfe])
User Story
As a user I want to launch a site from its pin badge so I can use it again.
Attachments
(2 files)
As a user I want to launch a site from its pin badge so I can use it again.
Comment 1•10 years ago
|
||
A Pivotal Tracker story has been created for this Bug: https://www.pivotaltracker.com/story/show/95569424
Updated•9 years ago
|
feature-b2g: --- → 2.5+
Comment 2•9 years ago
|
||
Assuming this is talking about the homescreen. Ben, similar to bug 1169006, is this already done?
Assignee: nobody → chrislord.net
Status: NEW → ASSIGNED
Flags: needinfo?(bfrancis)
Reporter | ||
Comment 3•9 years ago
|
||
Flags: needinfo?(bfrancis)
Reporter | ||
Comment 4•9 years ago
|
||
I don't think this one is quite done yet, we need to implement the behaviour which will open the most recently used existing window at a URL within the scope of the site, rather than always creating a new one. We also need to change the behaviour of the browser icon which may also fall under this bug.
Assignee | ||
Updated•9 years ago
|
Assignee: chrislord.net → apastor
Comment 5•9 years ago
|
||
Assignee | ||
Updated•9 years ago
|
Attachment #8649941 -
Flags: review?(bfrancis)
Reporter | ||
Comment 6•9 years ago
|
||
Comment on attachment 8649941 [details] [review]
[gaia] albertopq:1169010-launch-pinned-site > mozilla-b2g:master
This is looking good, I've left some comments on GitHub to discuss further.
From Foxfooding and UX comments I think this is the behaviour that people want. My one concern is that two pinned sites which share the same hostname may display some odd behaviour - e.g. If you've bookmarked both google.com/calendar and google.com/maps but neither specifies a scope then tapping the icon for one will reuse a window of the other if already open. It does also make it harder to get back to the start URL of a site, but I think people are saying they prefer that windows are re-used.
I think most of this is going to be safe to land, although the bit which sets the pinned state on a window when launching a bookmark might be a bit confusing outside of the context of the rest of the Pin the Web features.
Attachment #8649941 -
Flags: review?(bfrancis)
Assignee | ||
Comment 7•9 years ago
|
||
Comment on attachment 8649941 [details] [review]
[gaia] albertopq:1169010-launch-pinned-site > mozilla-b2g:master
It makes sense to leave the changes to the chrome to bug 1168962. I undid all the changes related to that and manually pinned the sites in the UI tests for testing the browser functionality for now. Thanks!
Attachment #8649941 -
Flags: review?(bfrancis)
Reporter | ||
Comment 8•9 years ago
|
||
Comment on attachment 8649941 [details] [review]
[gaia] albertopq:1169010-launch-pinned-site > mozilla-b2g:master
Thanks Alberto, r+ with a couple of nits on GitHub to address first.
This is going to introduce some slightly weird behaviour until bug 1168962 lands. If you launch a bookmark and then navigate it away from its initial URL, then both the bookmark icon and the browser icon will re-open the window. This is because bug 1168962 will complete the logic to know when a page is part of a pinned site or not and properly transform a pinned window between pinned/unpinned state.
Hopefully this won't be too noticeable.
Attachment #8649941 -
Flags: review?(bfrancis) → review+
Assignee | ||
Comment 9•9 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Comment 11•9 years ago
|
||
If I understand correctly, when I do this:
- Tap on Browser app on homescreen
- Open a url/type in a url and press enter, e.g: http://nu.nl
- Tap on the home button to get back to the homescreen
- Tap on Browser app on homescreen again
Old result:
- New browser window with a new tab would be opened.
New result:
- Exiting browser window is opened, with the url http://nu.nl
That is what this pull request has changed in here, right? It has changed this behavior, right?
Comment 12•9 years ago
|
||
Another question:
window.wrappedJSObject.Service.query('getTopMostWindow').manifestURL returns 'app://search.gaiamobile.org/manifest.webapp' on a new tab page, but it gets null after browsing to some random url. However, the .origin property stays app://search.gaiamobile.org in both cases.
Is that expected behavior?
Why does the .manifestURL property suddently get null after browsing to some url?
Assignee | ||
Comment 13•9 years ago
|
||
Hi Martijn,
Yes, that's almost correct. Tapping on the browser will reopen the last unpinned page. That means that if you open a URL, and then pin it, opening the browser will result on the old behavior (opening a new window). You can find the specification attached to this bug (https://bug1169010.bmoattachments.org/attachment.cgi?id=8644345).
(In reply to Martijn Wargers [:mwargers] (QA) from comment #11)
> If I understand correctly, when I do this:
> - Tap on Browser app on homescreen
> - Open a url/type in a url and press enter, e.g: http://nu.nl
> - Tap on the home button to get back to the homescreen
> - Tap on Browser app on homescreen again
>
> Old result:
> - New browser window with a new tab would be opened.
>
> New result:
> - Exiting browser window is opened, with the url http://nu.nl
>
> That is what this pull request has changed in here, right? It has changed
> this behavior, right?
Assignee | ||
Comment 14•9 years ago
|
||
(In reply to Martijn Wargers [:mwargers] (QA) from comment #12)
> Another question:
> window.wrappedJSObject.Service.query('getTopMostWindow').manifestURL returns
> 'app://search.gaiamobile.org/manifest.webapp' on a new tab page, but it gets
> null after browsing to some random url. However, the .origin property stays
> app://search.gaiamobile.org in both cases.
> Is that expected behavior?
> Why does the .manifestURL property suddently get null after browsing to some
> url?
I'm not sure about the expected behavior here. Ben is probably the right person to answer this.
Flags: needinfo?(bfrancis)
Comment 15•9 years ago
|
||
Alberto, another thing I noticed:
- Open a browser window, go to some url, e.g.: "http://nu.nl"
- Open a new window, you get a the newtab page with "Top Sites" and "New private window" button
- Touch the home button
- Tap on the Browser icon
Now you get back to the browser window with the "http://nu.nl" page instead of the newtab page.
Is that expected behavior?
Flags: needinfo?(apastor)
Assignee | ||
Comment 16•9 years ago
|
||
I guess we should go back to the last unpinned page (which is the new browser window). Could you please file a bug? Thanks!
Flags: needinfo?(apastor)
Comment 17•9 years ago
|
||
(In reply to Alberto Pastor [:albertopq] from comment #16)
> I guess we should go back to the last unpinned page (which is the new
> browser window). Could you please file a bug? Thanks!
I filed bug 1208263 for this now.
Reporter | ||
Updated•9 years ago
|
Flags: needinfo?(bfrancis)
You need to log in
before you can comment on or make changes to this bug.
Description
•