[Webkit-unassigned] [Bug 145858] Move cursor to corner and fix safari window size before running benchmark

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jun 10 19:09:01 PDT 2015


https://bugs.webkit.org/show_bug.cgi?id=145858

--- Comment #3 from Ryosuke Niwa <rniwa at webkit.org> ---
Comment on attachment 254681
  --> https://bugs.webkit.org/attachment.cgi?id=254681
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=254681&action=review

> Tools/Scripts/webkitpy/benchmark_runner/browser_driver/osx_safari_driver.py:29
> +        try:
> +            resolution = re.split('\s+', subprocess.check_output(['/usr/bin/defaults', 'read', 'com.apple.Safari', 'NSWindow Frame BrowserWindowFrame']).strip())[4:]
> +            subprocess.check_call(['/usr/bin/defaults', 'write', 'com.apple.Safari', 'NSWindow Frame BrowserWindowFrame', ' '.join(resolution * 2)])
> +        except Exception as error:
> +            _log.error('Reset safari window size failed - Error: {}'.format(error))

What size are we setting the window to be?
I think the window size needs to be configurable.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20150611/1fde2158/attachment.html>


More information about the webkit-unassigned mailing list