Closed Bug 513215 Opened 15 years ago Closed 15 years ago

[shared module] Modal dialog needs an initial timeout value to prevent fetching the wrong modal window

Categories

(Mozilla QA Graveyard :: Mozmill Tests, defect)

defect
Not set
major

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: whimboo, Assigned: whimboo)

References

Details

Attachments

(1 file)

Attached patch Patch v1Splinter Review
While running the Mozmill tests in a row on Windows today I have noticed that under some circumstances the modal dialog API gets the wrong modal window. That can happen if it takes a bit longer to open the dialog. At the moment we have a delay of 100ms before the observer is fired the first time. That is way to fast and we should give the users a way to set this value. This will at least prevent catching the wrong window when looking at the timing. But we cannot differentiate if we really have another window as top most window. As example: On bug 502159 we test the preferred language. Opening the language dialog inside the preferences takes a while too long because all the languages are retrieved first. When the dialog gets opened our observer has already caught the preference window itself as the new modal dialog. So the remaining tests will fail in this module. It has me taken a while until I was able to figure out what's going on.
Attachment #397248 - Flags: review?(ctalbert)
Assignee: nobody → hskupin
Status: NEW → ASSIGNED
Blocks: 512363
Comment on attachment 397248 [details] [diff] [review] Patch v1 nice catch, thanks whimboo
Attachment #397248 - Flags: review?(ctalbert) → review+
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Mass move of Mozmill Test related project bugs to newly created components. You can filter out those emails by using "Mozmill-Tests-to-MozillaQA" as criteria.
Component: Mozmill → Mozmill Tests
Product: Testing → Mozilla QA
QA Contact: mozmill → mozmill-tests
Product: Mozilla QA → Mozilla QA Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: