<?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>279250</bug_id>
          
          <creation_ts>2024-09-06 01:24:47 -0700</creation_ts>
          <short_desc>Remove Quirk simulatedMouseEventTypeForTarget for maps.google.com</short_desc>
          <delta_ts>2024-09-18 11:25:57 -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>WebKit Misc.</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>http://maps.google.com/</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>198657</dependson>
    
    <dependson>199904</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Karl Dubost">karlcow</reporter>
          <assigned_to name="Karl Dubost">karlcow</assigned_to>
          <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2058141</commentid>
    <comment_count>0</comment_count>
    <who name="Karl Dubost">karlcow</who>
    <bug_when>2024-09-06 01:24:47 -0700</bug_when>
    <thetext>This is about Google Maps on iPad through Safari.

This is not a new problem it has been fixed in the past through a Quirk. 
https://github.com/WebKit/WebKit/blob/36471855c3cb59685b184d7632904cb9ad87468f/Source/WebCore/page/Quirks.cpp#L540-L558

The quirk is working by targeting 

```
   element-&gt;getAttribute(HTMLNames::classAttr) == &quot;widget-expand-button-pegman-icon&quot;_s)
```

This doesn&apos;t exist anymore. So basically the current quirk is dead code. 

It was created with 
Bug 198657
rdar://problem/51345064

and extended to more domains by
Bug 199904
rdar://53250104 

Notes:

It is possible to use the pegman giving access to streetview on iPad. The action is currently.
1. Tap once on the pegman
2. The blue lines on the map appears
3. Tap a second time on the map where you want the pegman to be released. 

But this is not possible to drag and drop it at the location of choices. 

In some ways the interaction is more similar to what Apple Maps is doing. 


We can either remove the Quirk (dead code)
or modify it to make it draggable again.
or contact Google Maps team on finding a UX solution which is working for Safari.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2058142</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2024-09-06 01:25:06 -0700</bug_when>
    <thetext>&lt;rdar://problem/135400991&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2058545</commentid>
    <comment_count>2</comment_count>
    <who name="Karl Dubost">karlcow</who>
    <bug_when>2024-09-08 22:52:04 -0700</bug_when>
    <thetext>The current code for the button.

```
&lt;div class=&quot;app-horizontal-item&quot;
     id=&quot;runway-expand-button&quot;&gt;
    &lt;div class=&quot;&quot;&gt;
        &lt;div class=&quot;WzvKIe &quot;&gt;
            &lt;button class=&quot;sHj5c a8QCmb&quot;
                    id=&quot;q2sIQ&quot;
                    jsaction=&quot;runway.pegman; mousedown:runway.pegman; mouseup:runway.pegman; mouseover:runway.pegman; mouseout:runway.pegman; touchstart:runway.pegman; touchend:runway.pegman; keydown:runway.pegman; contextmenu:runway.pegman&quot;
                    aria-label=&quot;Afficher la disponibilité de Street&amp;nbsp;View&quot;&gt;
                &lt;div class=&quot;q2sIQ&quot;
                     style=&quot;background-image: url(&amp;quot;//maps.gstatic.com/tactile/pegman_v3/default/runway-1x.png&amp;quot;);&quot;
                     tabindex=&quot;-1&quot;&gt;&lt;/div&gt;
            &lt;/button&gt;
            &lt;button class=&quot;GFgdCf&quot;
                    jsaction=&quot;runway.expand; mouseover:runway.expand; mouseout:runway.expand; ptrdown:ripple.nested; mousedown:ripple.nested; keydown:ripple.nested; ptrup:null; mouseup:null; keydown:play.onKeyDown&quot;
                    vet=&quot;6530&quot;
                    aria-label=&quot;Afficher les images&quot;&gt;
                &lt;div class=&quot;L6Bbsd&quot;&gt;&lt;label class=&quot;Bm7zId&quot;&gt;&lt;/label&gt;
                    &lt;div class=&quot;t8fEu&quot;&gt;&lt;/div&gt;
                &lt;/div&gt;
            &lt;/button&gt;&lt;/div&gt;
    &lt;/div&gt;
&lt;/div&gt;
```

When dragging the pegman, 

```
   &lt;div class=&quot;WzvKIe &quot;&gt;
```

becomes 

```
   &lt;div class=&quot;WzvKIe QAvlhe&quot;&gt;
```

and this seems to be the relevant controls.

```
                this.nb.Ra(&quot;runway&quot;, &quot;pegman&quot;, &quot;click&quot;, this.N, this.N.Bc);
                this.nb.Ra(&quot;runway&quot;, &quot;pegman&quot;, &quot;dragstart&quot;, this.N, this.N.oe);
                this.nb.Ra(&quot;runway&quot;, &quot;pegman&quot;, &quot;drag&quot;, this.N, this.N.Qc);
                this.nb.Ra(&quot;runway&quot;, &quot;pegman&quot;, &quot;dragend&quot;, this.N, this.N.Wc);
                this.nb.Ra(&quot;runway&quot;, &quot;pegman&quot;, &quot;keydown&quot;, this.N, W =&gt; {
                    _.jle(n, W)
                }, 27);
                this.nb.Ra(&quot;runway&quot;,
                &quot;pegman&quot;, &quot;scrollwheel&quot;, this.N, this.N.Tb);
                this.nb.Ra(&quot;runway&quot;, &quot;pegman&quot;, &quot;ptrin&quot;, this.view, this.view.Qc);
                this.nb.Ra(&quot;runway&quot;, &quot;pegman&quot;, &quot;ptrout&quot;, this.view, this.view.Wc);
                this.nb.Ra(&quot;runway&quot;, &quot;pegman&quot;, &quot;contextmenu&quot;, this.view, this.view.Bc);
```</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2060861</commentid>
    <comment_count>3</comment_count>
    <who name="Karl Dubost">karlcow</who>
    <bug_when>2024-09-17 14:31:25 -0700</bug_when>
    <thetext>Google fixed it after outreach. 
We can remove the Quirk in WebKit. 
And also the relevant code in Safari. 

I will rename the bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2060862</commentid>
    <comment_count>4</comment_count>
    <who name="Karl Dubost">karlcow</who>
    <bug_when>2024-09-17 14:39:59 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/33789</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2061150</commentid>
    <comment_count>5</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2024-09-18 11:25:55 -0700</bug_when>
    <thetext>Committed 283859@main (e27a1b42d29e): &lt;https://commits.webkit.org/283859@main&gt;

Reviewed commits have been landed. Closing PR #33789 and removing active labels.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>