<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - New force-related DOM events should fire in WK1 views"
   href="https://bugs.webkit.org/show_bug.cgi?id=144663#c7">Comment # 7</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - New force-related DOM events should fire in WK1 views"
   href="https://bugs.webkit.org/show_bug.cgi?id=144663">bug 144663</a>
              from <span class="vcard"><a class="email" href="mailto:thorton&#64;apple.com" title="Tim Horton &lt;thorton&#64;apple.com&gt;"> <span class="fn">Tim Horton</span></a>
</span></b>
        <pre>(In reply to <a href="show_bug.cgi?id=144663#c6">comment #6</a>)
<span class="quote">&gt; (In reply to <a href="show_bug.cgi?id=144663#c5">comment #5</a>)
&gt; &gt; Comment on <span class=""><a href="attachment.cgi?id=252527&amp;action=diff" name="attach_252527" title="Patch">attachment 252527</a> <a href="attachment.cgi?id=252527&amp;action=edit" title="Patch">[details]</a></span>
&gt; &gt; Patch
&gt; &gt; 
&gt; &gt; View in context:
&gt; &gt; <a href="https://bugs.webkit.org/attachment.cgi?id=252527&amp;action=review">https://bugs.webkit.org/attachment.cgi?id=252527&amp;action=review</a>
&gt; &gt; 
&gt; &gt; &gt; Source/WebCore/page/mac/EventHandlerMac.mm:86
&gt; &gt; &gt; +    static NeverDestroyed&lt;RetainPtr&lt;NSEvent&gt;&gt; event;
&gt; &gt; 
&gt; &gt; Is it really right for this to be stored between views? That seems weird.
&gt; &gt; 
&gt; 
&gt; Hmm, maybe not. I was copying what's done for currentNSEventSlot(). I think
&gt; it makes as much sense in this new case as it did in the old, but I'm a
&gt; little unsure here.</span >

It's OK to keep a &quot;current&quot; event globally, because the relevant parts of WebKit are single-threaded, and a &quot;current&quot; event will get cleared when it's done (I assume). But keeping a &quot;last&quot; event, that lives beyond its own handling, seems wrong in the multi-view case.</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>