Closed Bug 477261 Opened 17 years ago Closed 15 years ago

Progress bar reset when switching to a tab (XULBrowserWindow.onStateChange called twice)

Categories

(Firefox :: Tabbed Browser, defect)

defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: r.karthik, Unassigned)

References

Details

Attachments

(1 file, 1 obsolete file)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.6) Gecko/2009011913 Firefox/3.0.6 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.6) Gecko/2009011913 Firefox/3.0.6 I am having a slow internet connection so most pages take more time to load, when a page is loading if I switch to a different tab and return to the first tab I opened the progress bar at bottom of window resets to the beginning and starts from first. This problem is in all versions of Firefox. “Firefox is great” For better results have a very slow internet connection. Reproducible: Always Steps to Reproduce: 1.Open a big web page(That takes some time to load in your connection speed, for better result make your internet connection slow as my dialup). 2.Let the progress bar progress to some extent. 3.When the first page is loading open a new tab and switch to the new tab. 4.Then return to the first tab in which you opened a web page. 5.You can find that the progress bar has been reset to the beginning(The page should be still loading and should have not finished loading that is why I Suggested a slow connection and big web page) Actual Results: The progress bar resets to the beginning. Expected Results: The progress bar should indicate the actual progress. This occurs in the default theme. I am having a good PC with good speed but a very slow internet connection.
The issue is that XULBrowserWindow.onStateChange is called twice, once from XULBrowserWindow.onUpdateCurrentBrowser and once from gBrowser.updateCurrentBrowser directly. The progress bar is updated in between, but reset due to the (incomplete) second call.
Severity: major → normal
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Windows XP → All
Hardware: x86 → All
Summary: Progress bar resets and starts from beginning when I switch to another tab and return. → Progress bar reset when switching to a tab (XULBrowserWindow.onStateChange called twice)
Version: unspecified → 2.0 Branch
It seems that onUpdateCurrentBrowser's contract isn't all that clear. This patch assumes that it's actually supposed to handle all state related changes (state, status, progress). BTW: The lonely change at the start makes it so that progress is stated to be 100% instead of 0% when a tab is done loading (the progress bar will be hidden, anyhow).
Attachment #368069 - Flags: review?(gavin.sharp)
Depends on: 483895
Same as above with the fix for bug 483895 incorporated and with immediately hiding the progress bar when switching tabs, so that the progress bar experience is finally as expected.
Assignee: nobody → zeniko
Attachment #368069 - Attachment is obsolete: true
Status: NEW → ASSIGNED
Attachment #368077 - Flags: review?(gavin.sharp)
Attachment #368069 - Flags: review?(gavin.sharp)
Attachment #368077 - Flags: review?(gavin.sharp)
Assignee: zeniko → nobody
This is a mass change. Every comment has "assigned-to-new" in it. I didn't look through the bugs, so I'm sorry if I change a bug which shouldn't be changed. But I guess these bugs are just bugs that were once assigned and people forgot to change the Status back when unassigning.
Status: ASSIGNED → NEW
Version: 2.0 Branch → Trunk
No longer depends on: 483895
I believe this is no longer relevant now that we have no more progress bars.
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: