Closed Bug 500309 Opened 15 years ago Closed 15 years ago

Stop button does not reliably show while pages are loaded

Categories

(Firefox for Android Graveyard :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: abillings, Assigned: vingtetun)

Details

Attachments

(1 file, 1 obsolete file)

When a web page is being loaded, the reload button to the right of the urlbar is supposed to become a stop button until the page finishes loading. This is a smoketest, in fact. Unfortunately, while I have seen the stop button show up a few times, it does not reliably do so. Generally, the button will continue to be the reload button all the way through the page's rendering process. I tested this on a simple html page (hermetic.com) and my blog at openbuddha.com and saw no differences in behavior. 

I noticed this on the n810 but have reproduced it on OS X as well.

This was seen with the beta 2 candidate build from 6/24.
Attached patch Patch v0.1 (obsolete) — Splinter Review
When we enter in TOOLBARSTATE_LOADING we change the icon to 'stop' but just after we call showToolbar, which itself switch back the icon by calling _editToolbar.

We can just invert 
 icons.setAttribute("mode", "loading");
 this.showToolbar(URLBAR_FORCE);
to have the right behavior but I suppose we don't want to mess with the toolbar editing stuff while we are in loading state
Comment on attachment 385030 [details] [diff] [review]
Patch v0.1

I'd rather invert the loading code for now. I'm not sure how this change would affect the code in other places.

Also, this patch keeps the "I" cursor in the urlbar during the page load.
Attachment #385030 - Flags: review-
http://hg.mozilla.org/mobile-browser/rev/718b075c44b4
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Verified fixed.
Status: RESOLVED → VERIFIED
Litmus test case created for testing this in the future:

https://litmus.mozilla.org/show_test.cgi?id=7083
Flags: in-litmus+
bugspam
Assignee: nobody → 21
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: