[prev in list] [next in list] [prev in thread] [next in thread] 

List:       webkit-unassigned
Subject:    [Webkit-unassigned] [Bug 183230] New: Web Automation: script evaluations via WebDriver should have a
From:       bugzilla-daemon () webkit ! org
Date:       2018-02-28 23:57:15
Message-ID: bug-183230-2851 () https ! bugs ! webkit ! org/
[Download RAW message or body]

--Boundary_(ID_pw18dGXhEYccXEhSkXp0tA)
Date: Wed, 28 Feb 2018 15:57:19 -0800
Auto-submitted: auto-generated
MIME-version: 1.0
Content-type: text/plain; CHARSET=US-ASCII
Content-transfer-encoding: 7BIT
X-Bugzilla-URL: https://bugs.webkit.org/

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

            Bug ID: 183230
           Summary: Web Automation: script evaluations via WebDriver
                    should have a user gesture indicator
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebDriver
          Assignee: webkit-unassigned@lists.webkit.org
          Reporter: bburg@apple.com
                CC: aestes@apple.com, bburg@apple.com, cgarcia@igalia.com,
                    thorton@apple.com

Some JS/DOM APIs only work require a user gesture indicator. Since there is no real \
user input when running via WebDriver, these APIs can only be tested if WebDriver \
code has a synthetic user gesture indicator, or explicit checks for a user gesture \
indicator should also allow usage iff page->isControlledByAutomation().

It would be nice to do the first approach since only one source location is needed. \
However, it's possible via WebDriver to evaluate "async" JavaScript which calls a \
completion handler some arbitrary amount of time later. The naive approach to set a \
user gesture indicator would only allow gesture-requiring API calls that happen \
synchronously.

So, we need to either set a user gesture indicator using non-RAII code, or audit \
every single check and add || page->isControlledByAutomation() to the condition.

-- 
You are receiving this mail because:
You are the assignee for the bug.

--Boundary_(ID_pw18dGXhEYccXEhSkXp0tA)
Date: Wed, 28 Feb 2018 15:57:19 -0800
Auto-submitted: auto-generated
MIME-version: 1.0
Content-type: text/html; CHARSET=US-ASCII
Content-transfer-encoding: 7BIT
X-Bugzilla-URL: https://bugs.webkit.org/

<html>
    <head>
      <base href="https://bugs.webkit.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Web Automation: script evaluations via WebDriver should have a user \
gesture indicator"  href="https://bugs.webkit.org/show_bug.cgi?id=183230">183230</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Web Automation: script evaluations via WebDriver should have a user \
gesture indicator  </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>WebKit
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>WebKit Nightly Build
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Unspecified
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Unspecified
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>Normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P2
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>WebDriver
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>webkit-unassigned&#64;lists.webkit.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>bburg&#64;apple.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>aestes&#64;apple.com, bburg&#64;apple.com, cgarcia&#64;igalia.com, \
thorton&#64;apple.com  </td>
        </tr></table>
      <p>
        <div>
        <pre>Some JS/DOM APIs only work require a user gesture indicator. Since there \
is no real user input when running via WebDriver, these APIs can only be tested if \
WebDriver code has a synthetic user gesture indicator, or explicit checks for a user \
gesture indicator should also allow usage iff page-&gt;isControlledByAutomation().

It would be nice to do the first approach since only one source location is needed. \
However, it's possible via WebDriver to evaluate &quot;async&quot; JavaScript which \
calls a completion handler some arbitrary amount of time later. The naive approach to \
set a user gesture indicator would only allow gesture-requiring API calls that happen \
synchronously.

So, we need to either set a user gesture indicator using non-RAII code, or audit \
every single check and add || page-&gt;isControlledByAutomation() to the \
condition.</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>

--Boundary_(ID_pw18dGXhEYccXEhSkXp0tA)--



_______________________________________________
webkit-unassigned mailing list
webkit-unassigned@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-unassigned


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic