<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - RenderLayer::hitTestList could mutate the list of candidate layers."
   href="https://bugs.webkit.org/show_bug.cgi?id=157718#c2">Comment # 2</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - RenderLayer::hitTestList could mutate the list of candidate layers."
   href="https://bugs.webkit.org/show_bug.cgi?id=157718">bug 157718</a>
              from <span class="vcard"><a class="email" href="mailto:zalan&#64;apple.com" title="zalan &lt;zalan&#64;apple.com&gt;"> <span class="fn">zalan</span></a>
</span></b>
        <pre>Created <span class=""><a href="attachment.cgi?id=278952&amp;action=diff" name="attach_278952" title="WIP patch">attachment 278952</a> <a href="attachment.cgi?id=278952&amp;action=edit" title="WIP patch">[details]</a></span>
WIP patch

Not sure whether we should return nullptr or resultLayer. and whether the mutate check should happen at the end of the loop so that we could still return the current layer if it is the hittest candidate even if while hit testing it, the list got mutated.</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>