Closed Bug 1246455 Opened 10 years ago Closed 10 years ago

mozscreenshots: Some captured images have the browser in an incorrect state

Categories

(Testing :: mozscreenshots, defect)

defect
Not set
normal

Tracking

(firefox47 fixed)

RESOLVED FIXED
Tracking Status
firefox47 --- fixed

People

(Reporter: MattN, Assigned: MattN)

References

Details

Attachments

(4 files)

Since mozscreenshots changes UI so quickly, not necessarily waiting for the previous change (sometimes because there aren't good events), the browser can get captured and sometimes stuck in unusual states. For example, when toggling the WindowSize and TabsInTitlebar immediately after the other, the window contents can become separated from the window frame. I don't understand all of the causes but they seem like things that would be very rare in the real world with our default UI as users can't toggle these things like mozscreenshots is without returning to the event loop in between.
Opening the two tabs after leads to them animating open with overflow and causes inconsistency. Review commit: https://reviewboard.mozilla.org/r/33911/diff/#index_header See other reviews: https://reviewboard.mozilla.org/r/33911/
Attachment #8716699 - Flags: review?(kcambridge)
This should make it easier to detect when we're picking up a default black/white value by mistake. Review commit: https://reviewboard.mozilla.org/r/33915/diff/#index_header See other reviews: https://reviewboard.mozilla.org/r/33915/
Attachment #8716701 - Flags: review?(kcambridge)
Avoid conflicts when configurations try to apply at the same time. e.g WindowSize and TabsInTitlebar. Also bump requestLongerTimeout for the longer duration or this will timeout on OS X. Review commit: https://reviewboard.mozilla.org/r/33917/diff/#index_header See other reviews: https://reviewboard.mozilla.org/r/33917/
Attachment #8716702 - Flags: review?(kcambridge)
Comment on attachment 8716702 [details] MozReview Request: Bug 1246455 - mozscreenshots: Add a delay between applying configurations. r=kitcambridge https://reviewboard.mozilla.org/r/33917/#review30633 ::: browser/tools/mozscreenshots/mozscreenshots/extension/TestRunner.jsm:154 (Diff revision 1) > + // try to apply at the same time. e.g WindowSize and TabsInTitlebar This is because animations for those might still be in progress, even though `applyConfig` has returned, right?
Attachment #8716702 - Flags: review?(kcambridge) → review+
Comment on attachment 8716700 [details] MozReview Request: Bug 1246455 - mozscreenshots: Wait for the @inFullscreen change when toggling fullScreen. r=kitcambridge https://reviewboard.mozilla.org/r/33913/#review30637 ::: browser/tools/mozscreenshots/mozscreenshots/extension/configurations/WindowSize.jsm:66 (Diff revision 1) > + return wantsFS == browserWindow.document.documentElement.hasAttribute("inFullscreen"); Do we need to observe `fullscreen-painted`, too?
Attachment #8716700 - Flags: review?(kcambridge) → review+
Attachment #8716699 - Flags: review?(kcambridge) → review+
Comment on attachment 8716699 [details] MozReview Request: Bug 1246455 - mozscreenshots: Open the tabs to be pinned with the other opening tabs. r=kitcambridge https://reviewboard.mozilla.org/r/33911/#review30639
Attachment #8716701 - Flags: review?(kcambridge) → review+
Comment on attachment 8716701 [details] MozReview Request: Bug 1246455 - mozscreenshots: Change the lightweight theme colors to be a bit off from black and white. r=kitcambridge https://reviewboard.mozilla.org/r/33915/#review30657
https://reviewboard.mozilla.org/r/33917/#review30633 > This is because animations for those might still be in progress, even though `applyConfig` has returned, right? Most likely but I can't say for sure.
https://reviewboard.mozilla.org/r/33913/#review30637 > Do we need to observe `fullscreen-painted`, too? I believe that's only for DOM fullscreen, not native fullscreen.
Component: General → mozscreenshots
Product: Firefox → Testing
Target Milestone: Firefox 47 → ---
Version: Trunk → unspecified
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: