Closed
Bug 1258316
Opened 9 years ago
Closed 9 years ago
maximize() should maximize the window correctly so its original size and location can be restored
Categories
(Remote Protocol :: Marionette, defect)
Tracking
(firefox48 fixed, firefox49 fixed)
RESOLVED
FIXED
mozilla49
People
(Reporter: whimboo, Unassigned)
References
Details
(Keywords: pi-marionette-server)
Attachments
(1 file)
As raised on bug 1257035 comment 2:
I also feel that the API is wrong. As of now we move the window to (0,0) and resize it to the screen width and height.
https://dxr.mozilla.org/mozilla-central/source/testing/marionette/driver.js#2680
Instead `window.maximize()` should be called so that a following `window.restore()` can restore the previous window constraints. By first moving and than resizing the window we will loose those.
| Reporter | ||
Updated•9 years ago
|
Keywords: ateam-marionette-server
Comment 1•9 years ago
|
||
Comment 2•9 years ago
|
||
This allows use to be able restore the window size if we wanted to.
Review commit: https://reviewboard.mozilla.org/r/50957/diff/#index_header
See other reviews: https://reviewboard.mozilla.org/r/50957/
Attachment #8749450 -
Flags: review?(ato)
Comment 3•9 years ago
|
||
Comment 4•9 years ago
|
||
Comment on attachment 8749450 [details]
MozReview Request: Bug 1258316 - Have marionette call maximize() on window instead of resize r?ato
Review request updated; see interdiff: https://reviewboard.mozilla.org/r/50957/diff/1-2/
Comment 5•9 years ago
|
||
Comment on attachment 8749450 [details]
MozReview Request: Bug 1258316 - Have marionette call maximize() on window instead of resize r?ato
https://reviewboard.mozilla.org/r/50957/#review47713
LGTM, but there are Windows failures.
Attachment #8749450 -
Flags: review?(ato) → review+
Comment 6•9 years ago
|
||
Comment 7•9 years ago
|
||
Comment on attachment 8749450 [details]
MozReview Request: Bug 1258316 - Have marionette call maximize() on window instead of resize r?ato
Review request updated; see interdiff: https://reviewboard.mozilla.org/r/50957/diff/2-3/
Comment 9•9 years ago
|
||
| bugherder | ||
Status: NEW → RESOLVED
Closed: 9 years ago
status-firefox49:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla49
Comment 11•9 years ago
|
||
| bugherder uplift | ||
status-firefox48:
--- → fixed
Comment 12•9 years ago
|
||
| bugherder uplift | ||
Updated•2 years ago
|
Product: Testing → Remote Protocol
You need to log in
before you can comment on or make changes to this bug.
Description
•