<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [Cocoa] Assertion failure in contentZoomScale(WKWebView *) (scale == [webView-&gt;_scrollView zoomScale]) in iOS Mail"
   href="https://bugs.webkit.org/show_bug.cgi?id=167649#c2">Comment # 2</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [Cocoa] Assertion failure in contentZoomScale(WKWebView *) (scale == [webView-&gt;_scrollView zoomScale]) in iOS Mail"
   href="https://bugs.webkit.org/show_bug.cgi?id=167649">bug 167649</a>
              from <span class="vcard"><a class="email" href="mailto:mitz&#64;webkit.org" title="mitz&#64;webkit.org &lt;mitz&#64;webkit.org&gt;"> <span class="fn">mitz&#64;webkit.org</span></a>
</span></b>
        <pre>More information from Simon:

(lldb) po [self recursiveDescription]
&lt;: 0x7f91b3728f10; frame = (0 0; 363 276); gestureRecognizers = &lt;NSArray: 0x620000052240&gt;; layer = &lt;CALayer: 0x6180002226c0&gt;&gt;
   | &lt;UIView: 0x7f91b3730a80; frame = (0 0; 0 0); layer = &lt;CALayer: 0x6180002237c0&gt;&gt;
   | &lt;WKWebView: 0x7f91b481fc00; frame = (0 0; 363 276); autoresize = W+H; layer = &lt;CALayer: 0x6180002219c0&gt;&gt;
   |    | &lt;WKScrollView: 0x7f91b683e800; baseClass = UIScrollView; frame = (0 0; 363 276); clipsToBounds = YES; gestureRecognizers = &lt;NSArray: 0x600000056650&gt;; layer = &lt;CALayer: 0x600000221420&gt;; contentOffset: {0, 0}; contentSize: {0, 0}&gt;
   |    |    | &lt;WKContentView: 0x7f91b6813800; frame = (0 0; 0 0); transform = [0.25, 0, 0, 0.25, 0, 0]; gestureRecognizers = &lt;NSArray: 0x64000004b040&gt;; layer = &lt;CALayer: 0x6000002213e0&gt;&gt;
   |    |    |    | &lt;UIView: 0x7f91b5c0f8f0; frame = (0 0; 0 0); clipsToBounds = YES; layer = &lt;CALayer: 0x64000003b060&gt;&gt;
   |    |    |    |    | &lt;UIView: 0x7f91b5c0f750; frame = (0 0; 0 0); autoresize = W+H; layer = &lt;CALayer: 0x64000003aea0&gt;&gt;
   |    |    |    |    |    | &lt;WKCompositingView: 0x7f91b5b250e0; frame = (0 0; 0 0); layer = &lt;CALayer: 0x62800023e540&gt;&gt; layerID = 1 &quot;&lt;WKCompositingView: 0x7f91b5b250e0&gt;&quot;
   |    |    | &lt;UIView: 0x7f91b5c0fa90; frame = (0 0; 0 0); opaque = NO; layer = &lt;CALayer: 0x64000003b020&gt;&gt;
   |    |    |    | &lt;UITextSelectionView: 0x7f91b5b253f0; frame = (0 0; 0 0); userInteractionEnabled = NO; layer = &lt;CALayer: 0x62800023e560&gt;&gt;
   |    |    | &lt;: 0x7f91b37428a0; frame = (0 0; 0 0); userInteractionEnabled = NO; layer = &lt;CALayer: 0x618000222b00&gt;&gt;
   | &lt;: 0x7f91b3741a10; baseClass = UIStackView; frame = (0 0; 0 0); layer = &lt;CATransformLayer: 0x618000222a40&gt;&gt;


The layer transform is being set via -[UIScrollView setZoomScale:] being called from:
    frame #13: WebKit`::-[WKWebView _didCommitLayerTree:](self=0x00007fb8b00aea00, _cmd=&quot;_didCommitLayerTree:&quot;, layerTreeTransaction=0x00007fff55f11a00) at WKWebView.mm:1271
    frame #14: WebKit`::-[WKContentView _didCommitLayerTree:](self=0x00007fb8b00b5400, _cmd=&quot;_didCommitLayerTree:&quot;, layerTreeTransaction=0x00007fff55f11a00) at WKContentView.mm:562
    frame #15: WebKit`WebKit::PageClientImpl::didCommitLayerTree(this=0x0000600000422dc0, layerTreeTransaction=0x00007fff55f11a00) at PageClientImplIOS.mm:506
    frame #16: WebKit`WebKit::WebPageProxy::didCommitLayerTree(this=0x00007fb8b000c018, layerTreeTransaction=0x00007fff55f11a00) at WebPageProxyIOS.mm:407
    frame #17: WebKit`WebKit::RemoteLayerTreeDrawingAreaProxy::commitLayerTree(this=0x00007fb8b41020d0, layerTreeTransaction=0x00007fff55f11a00, scrollingTreeTransaction=0x00007fff55f11b08) at RemoteLayerTreeDrawingAreaProxy.mm:200

but this seems to happen for an offscreen WKWebView (I see this before viewing any message on iPhone). Then the assertion hits when the WKWebView is being resized.

My guess is that the 0.25x scale is some WKWebView content autosizing minimum scale, and the assertion hits when the WKWebView is being prepared for display.</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>