Closed Bug 780645 Opened 13 years ago Closed 13 years ago

browser_595601-restore_hidden.js needs to wait for all tabs to be restored before continuing with the second test

Categories

(Firefox :: Session Restore, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
Firefox 17

People

(Reporter: ttaubert, Assigned: ttaubert)

References

Details

Attachments

(1 file)

Attached patch patch v1Splinter Review
browser_595601-restore_hidden.js currently doesn't wait for all tabs to be restored. It proceeds when a specific number of tabs is restoring. The two tests run in separate windows but if we start the second test before tabs from the first one finished loading, we'll sometimes not get the expected number of tabs restoring at the same time. Thus, we'll need to wait until (isRestoring == 1) because we're notified before session store. We then should only continue using executeSoon() to let session store process the progress listener notification.
Attachment #649301 - Flags: review?(felipc)
Comment on attachment 649301 [details] [diff] [review] patch v1 would it be good to add a brief comment explaining isRestoring == 1?
Attachment #649301 - Flags: review?(felipc) → review+
(In reply to :Felipe Gomes from comment #1) > would it be good to add a brief comment explaining isRestoring == 1? Of course, will do that. Thanks!
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 17
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: