<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>200466</bug_id>
          
          <creation_ts>2019-08-06 03:33:59 -0700</creation_ts>
          <short_desc>REGRESSION: Cannot tap on any buttons on m.naver.com home screen on iPad</short_desc>
          <delta_ts>2019-08-06 14:46:00 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>DOM</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Antti Koivisto">koivisto</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bfulgham</cc>
    
    <cc>commit-queue</cc>
    
    <cc>ggaren</cc>
    
    <cc>zalan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1558753</commentid>
    <comment_count>0</comment_count>
    <who name="Antti Koivisto">koivisto</who>
    <bug_when>2019-08-06 03:33:59 -0700</bug_when>
    <thetext>The page calls preventDefault() for a mouse event generated by site specific quirk.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1558754</commentid>
    <comment_count>1</comment_count>
    <who name="Antti Koivisto">koivisto</who>
    <bug_when>2019-08-06 03:42:06 -0700</bug_when>
    <thetext>&lt;rdar://problem/52571754&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1558755</commentid>
    <comment_count>2</comment_count>
      <attachid>375616</attachid>
    <who name="Antti Koivisto">koivisto</who>
    <bug_when>2019-08-06 03:43:41 -0700</bug_when>
    <thetext>Created attachment 375616
patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1558776</commentid>
    <comment_count>3</comment_count>
      <attachid>375616</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2019-08-06 08:37:34 -0700</bug_when>
    <thetext>Comment on attachment 375616
patch

Clearing flags on attachment: 375616

Committed r248295: &lt;https://trac.webkit.org/changeset/248295&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1558777</commentid>
    <comment_count>4</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2019-08-06 08:37:36 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1558838</commentid>
    <comment_count>5</comment_count>
      <attachid>375616</attachid>
    <who name="alan">zalan</who>
    <bug_when>2019-08-06 11:07:33 -0700</bug_when>
    <thetext>Comment on attachment 375616
patch

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

&gt; Source/WebCore/page/Quirks.cpp:303
&gt; +        // FIXME: Maybe this quirk should be disabled for &quot;m.&quot; subdomains on all sites? These are generally mobile sites that don&apos;t need mouse events.

SimulatedMouseEventsDispatchPolicy should definitely be Deny on mobile pages for example when the user explicitly asks for the mobile version.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1558839</commentid>
    <comment_count>6</comment_count>
      <attachid>375616</attachid>
    <who name="Geoffrey Garen">ggaren</who>
    <bug_when>2019-08-06 11:13:16 -0700</bug_when>
    <thetext>Comment on attachment 375616
patch

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

&gt;&gt; Source/WebCore/page/Quirks.cpp:303
&gt;&gt; +        // FIXME: Maybe this quirk should be disabled for &quot;m.&quot; subdomains on all sites? These are generally mobile sites that don&apos;t need mouse events.
&gt; 
&gt; SimulatedMouseEventsDispatchPolicy should definitely be Deny on mobile pages for example when the user explicitly asks for the mobile version.

My understanding is that we only set WebsiteSimulatedMouseEventsDispatchPolicy::Allow when in desktop mode. (See WebPageProxy::effectiveContentModeAfterAdjustingPolicies.) I wonder how we ended up in desktop mode at all on an m. site.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1558892</commentid>
    <comment_count>7</comment_count>
    <who name="Antti Koivisto">koivisto</who>
    <bug_when>2019-08-06 13:04:02 -0700</bug_when>
    <thetext>If you go to m.naver.com (or any URL) on iPad it will be loaded by default in desktop mode. Or do we have heuristics somewhere that should figure out it is a mobile site?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1558894</commentid>
    <comment_count>8</comment_count>
    <who name="Antti Koivisto">koivisto</who>
    <bug_when>2019-08-06 13:13:11 -0700</bug_when>
    <thetext>If you go to the top naver.com you get redirected to the m. subdomain only in mobile mode. However there is no automatic redirect back to the main site in desktop mode. If you for example have an existing bookmark it will probably point to the m. site.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1558931</commentid>
    <comment_count>9</comment_count>
    <who name="Geoffrey Garen">ggaren</who>
    <bug_when>2019-08-06 14:45:40 -0700</bug_when>
    <thetext>(In reply to Antti Koivisto from comment #7)
&gt; If you go to m.naver.com (or any URL) on iPad it will be loaded by default
&gt; in desktop mode. Or do we have heuristics somewhere that should figure out
&gt; it is a mobile site?

Always desktop mode, modulo a short list of exceptions.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1558933</commentid>
    <comment_count>10</comment_count>
    <who name="Geoffrey Garen">ggaren</who>
    <bug_when>2019-08-06 14:46:00 -0700</bug_when>
    <thetext>(In reply to Antti Koivisto from comment #8)
&gt; If you go to the top naver.com you get redirected to the m. subdomain only
&gt; in mobile mode. However there is no automatic redirect back to the main site
&gt; in desktop mode. If you for example have an existing bookmark it will
&gt; probably point to the m. site.

Makes sense.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>375616</attachid>
            <date>2019-08-06 03:43:41 -0700</date>
            <delta_ts>2019-08-06 08:37:34 -0700</delta_ts>
            <desc>patch</desc>
            <filename>mobile-quirk-disable-naver.patch</filename>
            <type>text/plain</type>
            <size>2034</size>
            <attacher name="Antti Koivisto">koivisto</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9XZWJDb3JlL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBTb3VyY2UvV2Vi
Q29yZS9DaGFuZ2VMb2cJKHJldmlzaW9uIDI0ODI5MSkKKysrIFNvdXJjZS9XZWJDb3JlL0NoYW5n
ZUxvZwkod29ya2luZyBjb3B5KQpAQCAtMSwzICsxLDE3IEBACisyMDE5LTA4LTA2ICBBbnR0aSBL
b2l2aXN0byAgPGFudHRpQGFwcGxlLmNvbT4KKworICAgICAgICBSRUdSRVNTSU9OOiBDYW5ub3Qg
dGFwIG9uIGFueSBidXR0b25zIG9uIG0ubmF2ZXIuY29tIGhvbWUgc2NyZWVuIG9uIGlQYWQKKyAg
ICAgICAgaHR0cHM6Ly9idWdzLndlYmtpdC5vcmcvc2hvd19idWcuY2dpP2lkPTIwMDQ2NgorCisg
ICAgICAgIFJldmlld2VkIGJ5IE5PQk9EWSAoT09QUyEpLgorCisgICAgICAgIFRoZSBwYWdlIGNh
bGxzIHByZXZlbnREZWZhdWx0KCkgZm9yIGEgbW91c2UgZXZlbnQgZ2VuZXJhdGVkIGJ5IGEgc2l0
ZSBzcGVjaWZpYyBxdWlyay4KKworICAgICAgICAqIHBhZ2UvUXVpcmtzLmNwcDoKKyAgICAgICAg
KFdlYkNvcmU6OlF1aXJrczo6c2hvdWxkRGlzcGF0Y2hTaW11bGF0ZWRNb3VzZUV2ZW50cyBjb25z
dCk6CisKKyAgICAgICAg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