Closed
Bug 941035
Opened 12 years ago
Closed 11 years ago
[User Story] Browser Chrome: Load URL
Categories
(Firefox OS Graveyard :: Gaia::System::Browser Chrome, defect)
Tracking
(feature-b2g:2.1, tracking-b2g:backlog, b2g-v2.0 verified, b2g-v2.1 verified)
VERIFIED
FIXED
2.0 S2 (23may)
People
(Reporter: pdol, Assigned: kgrandon)
References
Details
(Whiteboard: [ucid:System120, 1.4:P2, ft:systemsfe], system-browser)
Attachments
(1 file, 1 obsolete file)
|
4.23 MB,
video/3gpp
|
Details |
User Story:
As a user I want to navigate to a web page by typing its URL so that I can navigate to specific addresses.
Acceptance Criteria:
Functionality should match existing Browser functionality unless described otherwise in UX spec.
| Reporter | ||
Updated•12 years ago
|
Blocks: browser-chrome-mvp
Updated•12 years ago
|
Component: Gaia::System → Gaia::System::Browser
Updated•12 years ago
|
No longer blocks: browser-chrome-mvp
| Reporter | ||
Updated•12 years ago
|
Blocks: browser-chrome-mvp
| Assignee | ||
Comment 1•12 years ago
|
||
I feel like the work in bug 948302 solves the description of this bug.
If it doesn't, please re-open with more information. Marking as fixed for now.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Comment 2•12 years ago
|
||
Francis, the spec says that if you're currently in a browser window and click on a hyperlink or a Rocketbar history result, that URL should load in the current window rather than opening a new one. Does this also apply when you enter a URL?
The current behaviour in master is to always open a new browser window when you enter a URL, which seems wrong.
Kevin, I don't think we should be relying on the search app for a function as basic as navigating to a URL. Currently we send an inter-app 'submit' message to the search app and the search app opens a new window. Wouldn't it be better if the Rocketbar itself recognised that the content of the URL bar was a URL and set the src of the iframe or opened a new browser window (depending on whether you're already in a browser window)?
Flags: needinfo?(fdjabri)
Updated•12 years ago
|
Flags: in-moztrap?(nhirata.bugzilla)
Updated•12 years ago
|
Blocks: 1.4-systems-fe
Updated•12 years ago
|
No longer blocks: 1.4-systems-fe
Comment 3•12 years ago
|
||
According to the latest spec (https://mozilla.box.com/s/3s7zbdga8opcgbw2iaam), entering in a URL should open a new browser page, except if the user is already in a browser window, in which case it should load within the current window.
Flags: needinfo?(fdjabri)
Comment 4•12 years ago
|
||
Let's keep this user story open until this feature is implemented to spec.
I'd also like to re-visit the way this feature is implemented because I don't think something as simple as navigating to a URL should be dependent on the search app to work.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Comment 5•12 years ago
|
||
Note that this bug should also cover the "go" button and loading a URL in the current window by typing it (not a new window), as per the UX spec.
Updated•12 years ago
|
Assignee: nobody → dale
Comment 6•12 years ago
|
||
Theres a WIP patch for this @ https://github.com/daleharvey/gaia/commit/9a2b87e3252b7c537ac4b0544d26a68496000296, It works and does what its supposed to
Some things I want to improve though, our state tracking of onhomescreen and adding currentApp is fairly error prone, we generally want to know 1. are we currently on the homescreen, 2. the state of the current app (is it a wrapper window, is it fullscreen), Should we track this via events or just |AppWindowManager.getActiveApp|, I think the latter
And |this._currentApp.iframe.src = url;| to navigate the current app (we only do this for wrapper windows), is probably wrong, what would be the cleaner way to implement this?
Flags: needinfo?(alive)
Comment 7•12 years ago
|
||
(In reply to Dale Harvey (:daleharvey) from comment #6)
> Theres a WIP patch for this @
> https://github.com/daleharvey/gaia/commit/
> 9a2b87e3252b7c537ac4b0544d26a68496000296, It works and does what its
> supposed to
>
> Some things I want to improve though, our state tracking of onhomescreen and
> adding currentApp is fairly error prone, we generally want to know 1. are we
> currently on the homescreen, 2. the state of the current app (is it a
> wrapper window, is it fullscreen), Should we track this via events or just
> |AppWindowManager.getActiveApp|, I think the latter
My opinion: if we could avoid direct access from other modules, we should avoid and use events.
>
> And |this._currentApp.iframe.src = url;| to navigate the current app (we
> only do this for wrapper windows), is probably wrong, what would be the
> cleaner way to implement this?
I cannot figure out better solution too. change src makes sense.
I will suggest:
Implement
AppWindow.prototype.isBrowser (without manifestURL)
and
AppWindow.prototype.navigate(url) (change src if our isBrowser=true)
Flags: needinfo?(alive)
Comment 8•12 years ago
|
||
Attachment #8421088 -
Flags: review?(kgrandon)
Attachment #8421088 -
Flags: review?(alive)
Comment 9•12 years ago
|
||
So a 3rd approach to this, we couldnt implement this in the rocketbar as it meant the behaviour wouldnt be shared between links opened within the search application and urls entered in the rocketbar.
We now fire a mozActivity for all links except e.me.
| Assignee | ||
Comment 10•12 years ago
|
||
Comment on attachment 8421088 [details] [review]
https://github.com/mozilla-b2g/gaia/pull/19168
Search app part looks good, thanks!
Attachment #8421088 -
Flags: review?(kgrandon) → review+
Comment 11•12 years ago
|
||
(In reply to Dale Harvey (:daleharvey) from comment #9)
> So a 3rd approach to this, we couldnt implement this in the rocketbar as it
> meant the behaviour wouldnt be shared between links opened within the search
> application and urls entered in the rocketbar.
Why do you think that matters? Can't we do the URL detection in the Rocketbar and fire a web activity in both places?
| Assignee | ||
Comment 12•12 years ago
|
||
Perhaps we should look at handling the activity in the system in a follow-up, or another bug? I don't have an opinion either way. It could be a bit awkward if third party search apps have to satisfy the use case to open a browser window, but I also think the current approach might be less code?
Comment 13•12 years ago
|
||
> Why do you think that matters? Can't we do the URL detection in the Rocketbar and fire a web activity in both places?
We can, but the duplication of logic is messy especially as we are still deciding / changing on how new windows are opened in the window app (the context menu patch might need to change this further), the logic needs to happen in the search app so it happening in the system app is just duplicated code for now
Comment 14•12 years ago
|
||
* in the system app
Comment 15•12 years ago
|
||
Comment on attachment 8421088 [details] [review]
https://github.com/mozilla-b2g/gaia/pull/19168
I have some concern, lemme know if you have trouble addressing the comments.
Attachment #8421088 -
Flags: review?(alive)
Comment 16•12 years ago
|
||
Comment on attachment 8421088 [details] [review]
https://github.com/mozilla-b2g/gaia/pull/19168
Addressed review comments
Attachment #8421088 -
Flags: review+ → review?(alive)
Comment 17•12 years ago
|
||
Comment on attachment 8421088 [details] [review]
https://github.com/mozilla-b2g/gaia/pull/19168
Thanks !
Attachment #8421088 -
Flags: review?(alive) → review+
Comment 18•12 years ago
|
||
Thanks Alive / Kevin
https://github.com/mozilla-b2g/gaia/commit/c123449a625878bf69aa2b8a0d611db4484d4d5f
Status: REOPENED → RESOLVED
Closed: 12 years ago → 12 years ago
Resolution: --- → FIXED
Updated•12 years ago
|
Whiteboard: [ucid:System120, 1.4:P2, ft:systems-fe], system-browser → [ucid:System120, 1.4:P2, ft:systemsfe], system-browser
Target Milestone: --- → 2.0 S2 (23may)
| Assignee | ||
Comment 19•11 years ago
|
||
Mass modify - set status-b2g-v2.0 fixed for fixed bugs under vertical homescreen dependency tree.
status-b2g-v2.0:
--- → fixed
| Reporter | ||
Updated•11 years ago
|
| Assignee | ||
Comment 20•11 years ago
|
||
Why change 2.0 to disabled? Can we leave it as fixed so I don't catch it in my uplift queries?
status-b2g-v2.1:
--- → fixed
Comment 21•11 years ago
|
||
Re-opening as not implemented to spec, as noted in comment 2
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Updated•11 years ago
|
Flags: in-moztrap?(nhirata.bugzilla) → in-moztrap?(mozillamarcia.knous)
Updated•11 years ago
|
Assignee: nobody → kgrandon
Updated•11 years ago
|
feature-b2g: 2.0 → 2.1
| Assignee | ||
Updated•11 years ago
|
Attachment #8421088 -
Attachment is obsolete: true
| Assignee | ||
Comment 23•11 years ago
|
||
Dependencies closed, this should be ready for review.
Status: REOPENED → RESOLVED
Closed: 12 years ago → 11 years ago
Resolution: --- → FIXED
Comment 24•11 years ago
|
||
This issue has been successfully verified on Flame 2.1,2.0
See attachment: Verify_video.3gp
Reproducing rate: 0/5
Comment 25•11 years ago
|
||
FLame 2.0 new build:
Gaia-Rev f9d6e3d83c3922e9399a6c27f5ce4cdd27bdfd05
Gecko-Rev https://hg.mozilla.org/releases/mozilla-b2g32_v2_0/rev/45112935086f
Build-ID 20141126000203
Version 32.0
Flame 2.1 new build:
Gaia-Rev db2e84860f5a7cc334464618c6ea9e92ff82e9dd
Gecko-Rev https://hg.mozilla.org/releases/mozilla-b2g34_v2_1/rev/211eae88f119
Build-ID 20141126001202
Version 34.0
Updated•11 years ago
|
blocking-b2g: backlog → ---
tracking-b2g:
--- → backlog
You need to log in
before you can comment on or make changes to this bug.
Description
•