<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Move cursor to corner and fix safari window size before running benchmark"
   href="https://bugs.webkit.org/show_bug.cgi?id=145858#c5">Comment # 5</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Move cursor to corner and fix safari window size before running benchmark"
   href="https://bugs.webkit.org/show_bug.cgi?id=145858">bug 145858</a>
              from <span class="vcard"><a class="email" href="mailto:cdumez&#64;apple.com" title="Chris Dumez &lt;cdumez&#64;apple.com&gt;"> <span class="fn">Chris Dumez</span></a>
</span></b>
        <pre>Comment on <span class=""><a href="attachment.cgi?id=254681&amp;action=diff" name="attach_254681" title="Patch">attachment 254681</a> <a href="attachment.cgi?id=254681&amp;action=edit" title="Patch">[details]</a></span>
Patch

View in context: <a href="https://bugs.webkit.org/attachment.cgi?id=254681&amp;action=review">https://bugs.webkit.org/attachment.cgi?id=254681&amp;action=review</a>

<span class="quote">&gt; Tools/ChangeLog:6
&gt; +        Reviewed by Ryosuke Niwa</span >

Was this really reviewed already? r? flag is set. Also, you are missing the period at the end of the sentence.

<span class="quote">&gt; Tools/ChangeLog:7
&gt; +</span >

Maybe a changelog to explain why this is needed and what you mean by fixing the Safari Window size?

<span class="quote">&gt; Tools/Scripts/webkitpy/benchmark_runner/browser_driver/osx_browser_driver.py:53
&gt; +    def moveCursorToCorner(cls):</span >

Which corner? I could use something like &quot;moveCursorToTopLeftCorner&quot;. Or a more generic &quot;moveCursor(x, y)&quot; that takes coordinates in parameters.

<span class="quote">&gt; Tools/Scripts/webkitpy/benchmark_runner/browser_driver/osx_safari_driver.py:25
&gt; +        try:</span >

We may want to move this code to a function with a clear that so that it is clearer what it does.

<span class="quote">&gt; Tools/Scripts/webkitpy/benchmark_runner/browser_driver/osx_safari_driver.py:26
&gt; +            resolution = re.split('\s+', subprocess.check_output(['/usr/bin/defaults', 'read', 'com.apple.Safari', 'NSWindow Frame BrowserWindowFrame']).strip())[4:]</span >

Do we really need to call subprocesses for this. I believe there are pythonic ways of doing this (NSUserDefaults.standardUserDefaults()). Maybe this is useful:
<a href="http://www.macdevcenter.com/pub/a/mac/2003/01/31/pyobjc_one.html">http://www.macdevcenter.com/pub/a/mac/2003/01/31/pyobjc_one.html</a></pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>