Closed Bug 1280101 Opened 8 years ago Closed 8 years ago

Set Window Size should not error on window size larger than screen

Categories

(Remote Protocol :: Marionette, defect)

Version 3
defect
Not set
normal

Tracking

(firefox48 fixed, firefox49 fixed, firefox50 fixed)

RESOLVED FIXED
mozilla50
Tracking Status
firefox48 --- fixed
firefox49 --- fixed
firefox50 --- fixed

People

(Reporter: ato, Assigned: ato)

References

(Blocks 1 open bug)

Details

Attachments

(2 files, 1 obsolete file)

According to the WebDriver specification, when a requested window size is larger than the screen we should set the window containing the top-level browsing context to a size that is “as close as possible” to the requested size.

This is more in line with the current Selenium behaviour.

http://w3c.github.io/webdriver/webdriver-spec.html#dfn-set-window-size

See also https://github.com/mozilla/geckodriver/issues/56#issuecomment-225713923 for more information.
Blocks: webdriver
The specification says nothing about coercing to integer.

Review commit: https://reviewboard.mozilla.org/r/59234/diff/#index_header
See other reviews: https://reviewboard.mozilla.org/r/59234/
Attachment #8762735 - Flags: review?(dburns)
Attachment #8762736 - Flags: review?(dburns)
Attachment #8762737 - Flags: review?(dburns)
Assignee: nobody → ato
Status: NEW → ASSIGNED
Attachment #8762735 - Flags: review?(dburns) → review+
Comment on attachment 8762736 [details]
Bug 1280101 - Remove check for window sizes larger than screen;

https://reviewboard.mozilla.org/r/59236/#review56804
Attachment #8762736 - Flags: review?(dburns) → review+
Comment on attachment 8762737 [details]
Bug 1280101 - Point out that test will only pass under X in a WM;

https://reviewboard.mozilla.org/r/59238/#review56806

Manipulating windows implies that we will need a window manager of sorts so don't think this comment is necessary
Attachment #8762737 - Flags: review?(dburns) → review-
(In reply to David Burns :automatedtester from comment #6)
> Comment on attachment 8762737 [details]
> Bug 1280101 - Point out that test will only pass under X in a WM;
> 
> https://reviewboard.mozilla.org/r/59238/#review56806
> 
> Manipulating windows implies that we will need a window manager of sorts so
> don't think this comment is necessary

Well okay, but multiple people have been confused by this in the past.  Including me.
Comment on attachment 8762735 [details]
Bug 1280101 - Do not coerce window dimensions to integer;

Review request updated; see interdiff: https://reviewboard.mozilla.org/r/59234/diff/1-2/
Comment on attachment 8762736 [details]
Bug 1280101 - Remove check for window sizes larger than screen;

Review request updated; see interdiff: https://reviewboard.mozilla.org/r/59236/diff/1-2/
Attachment #8762737 - Attachment is obsolete: true
Pushed by atolfsen@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/eca2ce2b6dd2
Do not coerce window dimensions to integer; r=automatedtester
https://hg.mozilla.org/integration/mozilla-inbound/rev/333518a265a2
Remove check for window sizes larger than screen; r=automatedtester
https://hg.mozilla.org/mozilla-central/rev/eca2ce2b6dd2
https://hg.mozilla.org/mozilla-central/rev/333518a265a2
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla50
I don’t know if I care enough to spend time figuring out why it breaks Windows on Beta.  I guess we can let the patch ride the train to Beta in a natural way.
Flags: needinfo?(ato)
Can you please confirm whether the fix for the window size error is done or rolled back. I am currently using FF 48+ and Selenium(2.53.1, 3.0.0-beta(123)) all give me the same exception unless i set the window size to 1024X768. This is breaking my tests because the elements are out of the window scope.
Can you please confirm whether the fix for the window size error is done or rolled back. I am currently using FF 48+ and Selenium(2.53.1, 3.0.0-beta(123)) all give me the same exception unless i set the window size to 1024X768. This is breaking my tests because the elements are out of the window scope.
(In reply to soumyamulu from comment #16)
> Can you please confirm whether the fix for the window size error is done or
> rolled back. I am currently using FF 48+ and Selenium(2.53.1,
> 3.0.0-beta(123)) all give me the same exception unless i set the window size
> to 1024X768. This is breaking my tests because the elements are out of the
> window scope.

This is done and will be available in Firefox 50.
Product: Testing → Remote Protocol
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: