<?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>249827</bug_id>
          
          <creation_ts>2022-12-22 16:30:17 -0800</creation_ts>
          <short_desc>In UIWebView, IntersectionObserver causes assertions because visualViewportEnabled is false</short_desc>
          <delta_ts>2022-12-29 16:31:15 -0800</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>NEW</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=231767</see_also>
          <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="Simon Fraser (smfr)">simon.fraser</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>cdumez</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1921551</commentid>
    <comment_count>0</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2022-12-22 16:30:17 -0800</bug_when>
    <thetext>Seems like visualViewportEnabled is not enabled in iOS UIWebView (aka WebKitLegacy).

ASSERTION FAILED: m_frame-&gt;settings().visualViewportEnabled()
page/FrameView.cpp(5481) : WebCore::FloatRect WebCore::FrameView::absoluteToLayoutViewportRect(WebCore::FloatRect) const
1   0x12d5f6499 WTFCrash
2   0x1553e297b WTFCrashWithInfo(int, char const*, char const*, int)
3   0x159a3adac WebCore::FrameView::absoluteToLayoutViewportRect(WebCore::FloatRect) const
4   0x158c16462 WebCore::Document::updateIntersectionObservations()
5   0x159af0ed9 WebCore::Page::updateRendering()::$_30::operator()(WebCore::Document&amp;) const
6   0x159af0e71 WTF::Detail::CallableWrapper&lt;WebCore::Page::updateRendering()::$_30, void, WebCore::Document&amp;&gt;::call(WebCore::Document&amp;)
7   0x158dfc6e7 WTF::Function&lt;void (WebCore::Document&amp;)&gt;::operator()(WebCore::Document&amp;) const
8   0x159ab744e WebCore::Page::forEachDocumentFromMainFrame(WebCore::Frame const&amp;, WTF::Function&lt;void (WebCore::Document&amp;)&gt; const&amp;)
9   0x159aa6d15 WebCore::Page::forEachDocument(WTF::Function&lt;void (WebCore::Document&amp;)&gt; const&amp;) const
10  0x159aaeea3 WebCore::Page::updateRendering()::$_20::operator()(WebCore::RenderingUpdateStep, WTF::Function&lt;void (WebCore::Document&amp;)&gt; const&amp;) const
11  0x159aaeb3d WebCore::Page::updateRendering()
12  0x119731d87 -[WebView(WebViewInternal) _updateRendering]
13  0x1197342c4 WebViewRenderingUpdateScheduler::updateRendering()
14  0x1197341bf WebViewRenderingUpdateScheduler::renderingUpdateRunLoopObserverCallback()
15  0x11973f748 WebViewRenderingUpdateScheduler::WebViewRenderingUpdateScheduler(WebView*)::$_6::operator()() const
16  0x11973f6e9 WTF::Detail::CallableWrapper&lt;WebViewRenderingUpdateScheduler::WebViewRenderingUpdateScheduler(WebView*)::$_6, void&gt;::call()
17  0x155404232 WTF::Function&lt;void ()&gt;::operator()() const
18  0x159d78326 WebCore::RunLoopObserver::runLoopObserverFired()
19  0x159d7828d WebCore::RunLoopObserver::runLoopObserverFired(__CFRunLoopObserver*, unsigned long, void*)
20  0x10e2d40a5 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__
21  0x10e2cea12 __CFRunLoopDoObservers
22  0x10e2ce745 CFRunLoopRunSpecific
23  0x1579e6c04 RunWebThread(void*)
24  0x10e9a74e1 _pthread_start
25  0x10e9a2f6b thread_start
(lldb)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1922242</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-12-29 16:31:15 -0800</bug_when>
    <thetext>&lt;rdar://problem/103765638&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>