Closed
Bug 1213894
Opened 9 years ago
Closed 9 years ago
Progress bar doesn't appear for pinned chrome
Categories
(Firefox OS Graveyard :: Gaia::System::Browser Chrome, defect, P3)
Firefox OS Graveyard
Gaia::System::Browser Chrome
ARM
Gonk (Firefox OS)
Tracking
(blocking-b2g:2.5+)
VERIFIED
FIXED
blocking-b2g | 2.5+ |
People
(Reporter: benfrancis, Assigned: rakhavan)
References
Details
(Keywords: regression, Whiteboard: [systemsfe])
Attachments
(1 file, 1 obsolete file)
STR:
* Pin a site
* Load the site
* Click on a link to navigate to another page within the pinned site
Expected:
* Progress bar appears
Actual:
* Progress bar disappears
Note: Sometimes the progress briefly appears but then disappears before the page has finished loading.
Updated•9 years ago
|
blocking-b2g: 2.5? → 2.5+
Keywords: regression
Updated•9 years ago
|
Priority: -- → P3
Updated•9 years ago
|
QA Whiteboard: [COM=Pin the Web]
Assignee | ||
Updated•9 years ago
|
Assignee: nobody → rakhavan
Comment 2•9 years ago
|
||
Assignee | ||
Comment 3•9 years ago
|
||
Comment on attachment 8675472 [details] [review]
[gaia] jedireza:pinned-progress-bar > mozilla-b2g:master
I made a small change to a css selector and it seemed to have fixed the issue for me.
I tested by navigating regular windows, private windows and pinned sites. In all types of windows I scrolled up and down to show and hide the `.maximized` app chrome styling while the loading bar was showing and animated.
I see the last time this selector changed was just over a year ago [1]. Maybe my fix isn't the right place to correct this. Maybe something else changed with `.collapsible` `appWindow`s.
[1] https://github.com/mozilla-b2g/gaia/commit/9c07d84b6f8fd7d400d074ad97fd0bb31226a356#diff-201b9947c6f450ef0c1389fda2e6ddc8L388
Flags: needinfo?(chrislord.net)
Flags: needinfo?(bfrancis)
Assignee | ||
Comment 4•9 years ago
|
||
Comment on attachment 8675472 [details] [review]
[gaia] jedireza:pinned-progress-bar > mozilla-b2g:master
The previous solution caused an integration test to fail. I've updated the PR with an alternative solution that doesn't break the integration test locally.
Assignee | ||
Comment 5•9 years ago
|
||
Comment on attachment 8675472 [details] [review]
[gaia] jedireza:pinned-progress-bar > mozilla-b2g:master
Tests are all green. When the treeherder links work again the test results should be viewable here:
https://treeherder.mozilla.org/#/jobs?repo=gaia&revision=01c86d3f4e6fb1002b6f33332fea907d557c9ec1
Flags: needinfo?(chrislord.net)
Flags: needinfo?(bfrancis)
Attachment #8675472 -
Flags: review?(bfrancis)
Reporter | ||
Comment 6•9 years ago
|
||
Thanks Reza,
I've had a quick look at this and I'm sure it fixes the bug, but I'd like to dig into this a bit more to understand why we need a class that we didn't need before, this CSS is already plenty complicated enough. Alberto if you get to this before me tomorrow please take a look but I'd like to know where the regression came from.
Flags: needinfo?(apastor)
Comment 7•9 years ago
|
||
Did we ever show the progressbar when collapsed? I think we were expanding on every location change. Regarding the new class, probably we can achieve the same removing the :not(.collapsible) from the selector.
Flags: needinfo?(apastor)
Reporter | ||
Comment 8•9 years ago
|
||
(In reply to Alberto Pastor [:albertopq] from comment #7)
> Did we ever show the progressbar when collapsed?
Actually yes, you can collapse the browser chrome of a loading page by scrolling the page.
> the same removing the :not(.collapsible) from the selector.
Does that work Reza? It might make the progress bar appear for app windows too, though I'm not sure if that's a bad thing. If it does then let's ask UX about that.
.collapsed sounds like the same thing as not(.maximized) and I think is the wrong thing to set here. Being collapsed/expanded is orthogonal to being pinned/unpinned. Being pinned just means the chrome doesn't expand/collapse on scroll.
Reporter | ||
Updated•9 years ago
|
Attachment #8675472 -
Flags: review?(bfrancis)
Comment 9•9 years ago
|
||
Assignee | ||
Comment 10•9 years ago
|
||
(In reply to Ben Francis [:benfrancis] from comment #8)
> Does that work Reza? It might make the progress bar appear for app windows
> too, though I'm not sure if that's a bad thing. If it does then let's ask UX
> about that.
This was my original solution but it causes an integration test failure. I created an alternative PR (above) and locally this integration test fails:
```
$ TEST_FILES="apps/system/test/marionette/browser_fullscreen_navigation_chrome_test.js" make test-integration
```
I'll continue with this approach and see how I can fix the integration test.
Comment 11•9 years ago
|
||
(In reply to Reza Akhavan [:jedireza] from comment #10)
> I'll continue with this approach and see how I can fix the integration test.
That test is probably there for a reason so please make sure you don't regress the progress bar in fullscreen chrome apps (like The Guardian/Facebook).
Assignee | ||
Updated•9 years ago
|
Attachment #8675472 -
Attachment is obsolete: true
Assignee | ||
Comment 12•9 years ago
|
||
Comment on attachment 8677081 [details] [review]
[gaia] jedireza:pinned-progress-bar-alt > mozilla-b2g:master
I found another solution. I added a selector for `:not(.fullscreen-app)`. I'm seeing a progress bar where I'd expect. The PR is updated and treeherder [1] is green (although I'm not sure what's up with Gij28, it's been going for hours).
[1] https://treeherder.mozilla.org/#/jobs?repo=gaia&revision=b0188278d0ea37d9f7930e28588254ce5b4bb418
Attachment #8677081 -
Flags: review?(bfrancis)
Reporter | ||
Comment 13•9 years ago
|
||
Still not sure if this is right, did you look at wrapper.css? https://github.com/mozilla-b2g/gaia/blob/master/apps/system/style/wrapper/wrapper.css
Isn't it the visibility property we need to change, not top?
Assignee | ||
Comment 14•9 years ago
|
||
(In reply to Ben Francis [:benfrancis] from comment #13)
> Still not sure if this is right, did you look at wrapper.css?
> https://github.com/mozilla-b2g/gaia/blob/master/apps/system/style/wrapper/
> wrapper.css
>
> Isn't it the visibility property we need to change, not top?
I can double check today but at fist thought, no. The gaia-progress element is visible, but for pinned sites, it's position is off the screen, moving it down using `top` did the trick.
Assignee | ||
Comment 15•9 years ago
|
||
I also noticed that for app windows using the `.fullscreen-app` class, the chrome is completely off screen and can be pulled down (by swiping down from the top edge) to access the controls.
Using the `apps/system/test/apps/fullscreennavapp` test app, I navigate to the second page, pull the chrome down and begin hitting back and forth controls. Although we're not getting a good representation of network delay, the progress bar does blip for a second in the right place.
The unit test that was failing is verifying that the gaia-progress element is not visible for full screen apps, as it shouldn't be. It tests this based on the element's rect coordinates.
We have two proposed solutions that seem to address the symptoms mentioned. One with an explicit class name, which Ben didn't like and another that does it by using a `:not(.fullscreen-app)` selector.
Ben, can you help me understand what I may be overlooking to achieve a more ideal solution?
Reporter | ||
Comment 16•9 years ago
|
||
Comment on attachment 8677081 [details] [review]
[gaia] jedireza:pinned-progress-bar-alt > mozilla-b2g:master
Sorry Reza, it's just this area of CSS is a bit of a mess and every time we change something it causes a new regression! I think the second patch is OK I was just worried the selector might be too broad.
But I've played around with it now and I can't find any obvious regressions so let's get this landed once Treeherder is green and ask QA to double check we didn't break anything.
Sorry it took so long to get this tiny patch reviewed!
Attachment #8677081 -
Flags: review?(bfrancis) → review+
Assignee | ||
Comment 17•9 years ago
|
||
Tests are all green:
https://treeherder.mozilla.org/#/jobs?repo=gaia&revision=b0003e33fbce77f7a96cd7a1996d2f5a96b4d737
Keywords: checkin-needed
Comment 18•9 years ago
|
||
Comment 19•9 years ago
|
||
Verified on
[Flame]
Build ID 20151026030217
Gaia Revision a677ddd3aa3a81058775938bd56008d96dbc78b0
Gaia Date 2015-10-26 04:48:31
Gecko Revision https://hg.mozilla.org/mozilla-central/rev/5ca03a00d26823ce91ee0eaa2937bed605bd53c1
Gecko Version 44.0a1
Device Name flame
Firmware(Release) 4.4.2
Firmware(Incremental) eng.cltbld.20151026.070911
Firmware Date Mon Oct 26 07:09:23 EDT 2015
Bootloader L1TC000118D0
[Aries]
Build ID 20151026223015
Gaia Revision b564b21e08ffc3e4962f08850843c7482932ee7b
Gaia Date 2015-10-26 14:22:21
Gecko Revision https://hg.mozilla.org/mozilla-central/rev/6c7c983bce46a460c2766fbdd73283f6d2b03a69
Gecko Version 44.0a1
Device Name aries
Firmware(Release) 4.4.2
Firmware(Incremental) eng.worker.20151026.214940
Firmware Date Mon Oct 26 21:49:48 UTC 2015
Bootloader s1
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•