<?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>171717</bug_id>
          
          <creation_ts>2017-05-04 23:48:26 -0700</creation_ts>
          <short_desc>ASSERTION FAILED: !frame().document()-&gt;inRenderTreeUpdate() in WebCore::FrameView::layout(bool)</short_desc>
          <delta_ts>2017-05-05 11:39:35 -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>New Bugs</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=171643</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=171729</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="Ryan Haddad">ryanhaddad</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bfulgham</cc>
    
    <cc>buildbot</cc>
    
    <cc>cdumez</cc>
    
    <cc>commit-queue</cc>
    
    <cc>dbates</cc>
    
    <cc>japhet</cc>
    
    <cc>koivisto</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>zalan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1305033</commentid>
    <comment_count>0</comment_count>
    <who name="Ryan Haddad">ryanhaddad</who>
    <bug_when>2017-05-04 23:48:26 -0700</bug_when>
    <thetext>ASSERTION FAILED: !frame().document()-&gt;inRenderTreeUpdate()
/Volumes/Data/slave/ios-simulator-10-debug/build/Source/WebCore/page/FrameView.cpp(1291) : void WebCore::FrameView::layout(bool)
1   0x1188c034d WTFCrash
2   0x1188c0369 WTFCrashWithSecurityImplication
3   0x11b63c578 WebCore::FrameView::layout(bool)
4   0x11b25f57c WebCore::Document::implicitClose()
5   0x11b60728b WebCore::FrameLoader::checkCallImplicitClose()
6   0x11b606f95 WebCore::FrameLoader::checkCompleted()
7   0x11b606ff5 WebCore::FrameLoader::loadDone()
8   0x11ada8949 WebCore::CachedResourceLoader::loadDone(bool)
9   0x11d2cfa98 WebCore::SubresourceLoader::notifyDone()
10  0x11d2cffe8 WebCore::SubresourceLoader::didCancel(WebCore::ResourceError const&amp;)
11  0x11cf946d4 WebCore::ResourceLoader::cancel(WebCore::ResourceError const&amp;)
12  0x11cf92adf WebCore::ResourceLoader::cancel()
13  0x11d2cd864 WebCore::SubresourceLoader::willSendRequestInternal(WebCore::ResourceRequest&amp;, WebCore::ResourceResponse const&amp;)
14  0x11cf9299c WebCore::ResourceLoader::init(WebCore::ResourceRequest const&amp;)
15  0x11d2ccc07 WebCore::SubresourceLoader::init(WebCore::ResourceRequest const&amp;)
16  0x11d2ccac3 WebCore::SubresourceLoader::create(WebCore::Frame&amp;, WebCore::CachedResource&amp;, WebCore::ResourceRequest const&amp;, WebCore::ResourceLoaderOptions const&amp;)
17  0x10e6e07fe WebKit::WebLoaderStrategy::loadResource(WebCore::Frame&amp;, WebCore::CachedResource&amp;, WebCore::ResourceRequest const&amp;, WebCore::ResourceLoaderOptions const&amp;)
18  0x11ad91f4c WebCore::CachedResource::load(WebCore::CachedResourceLoader&amp;)
19  0x11ad80d34 WebCore::CachedImage::load(WebCore::CachedResourceLoader&amp;)
20  0x11ada3f38 WebCore::CachedResourceLoader::requestResource(WebCore::CachedResource::Type, WebCore::CachedResourceRequest&amp;&amp;, WebCore::CachedResourceLoader::ForPreload, WebCore::CachedResourceLoader::DeferOption)
21  0x11ada2a41 WebCore::CachedResourceLoader::requestImage(WebCore::CachedResourceRequest&amp;&amp;)
22  0x11b0821bd WebCore::CSSImageValue::loadImage(WebCore::CachedResourceLoader&amp;, WebCore::ResourceLoaderOptions const&amp;)
23  0x11d24364a WebCore::StyleCachedImage::load(WebCore::CachedResourceLoader&amp;, WebCore::ResourceLoaderOptions const&amp;)
24  0x11d24d04e WebCore::Style::loadPendingImage(WebCore::Document&amp;, WebCore::StyleImage const*, WebCore::Element const*, WebCore::Style::LoadPolicy)
25  0x11d24cd4d WebCore::Style::loadPendingResources(WebCore::RenderStyle&amp;, WebCore::Document&amp;, WebCore::Element const*)
26  0x11ccd0327 WebCore::RenderElement::getUncachedPseudoStyle(WebCore::PseudoStyleRequest const&amp;, WebCore::RenderStyle const*, WebCore::RenderStyle const*) const
27  0x11ccc7955 WebCore::RenderElement::getCachedPseudoStyle(WebCore::PseudoId, WebCore::RenderStyle const*) const
28  0x11cf45509 WebCore::needsPseudoElement(WebCore::Element&amp;, WebCore::PseudoId)
29  0x11cf4371a WebCore::RenderTreeUpdater::updateBeforeOrAfterPseudoElement(WebCore::Element&amp;, WebCore::PseudoId)
30  0x11cf434db WebCore::RenderTreeUpdater::pushParent(WebCore::Element&amp;, WebCore::Style::Change)
31  0x11cf42b42 WebCore::RenderTreeUpdater::updateRenderTree(WebCore::ContainerNode&amp;)

This assertion failure is seen with the following tests on iOS simulator:

fast/ruby/before-block-doesnt-crash.html
fast/ruby/before-table-doesnt-crash.html
fast/ruby/generated-before-counter-doesnt-crash.html

https://build.webkit.org/results/Apple%20iOS%2010%20Simulator%20Debug%20WK2%20(Tests)/r216233%20(1109)/results.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1305045</commentid>
    <comment_count>1</comment_count>
      <attachid>309152</attachid>
    <who name="Antti Koivisto">koivisto</who>
    <bug_when>2017-05-05 01:43:33 -0700</bug_when>
    <thetext>Created attachment 309152
patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1305117</commentid>
    <comment_count>2</comment_count>
      <attachid>309152</attachid>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2017-05-05 08:33:33 -0700</bug_when>
    <thetext>Comment on attachment 309152
patch

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

lgtm. r=me.

&gt; Source/WebCore/loader/FrameLoader.cpp:796
&gt; +    // FIXME: It would be better if resource loads were kicked off after render tree update (or didn&apos;t complete synchronously).

Can you file a Bugzilla for this and include the number here?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1305142</commentid>
    <comment_count>3</comment_count>
      <attachid>309175</attachid>
    <who name="Antti Koivisto">koivisto</who>
    <bug_when>2017-05-05 09:18:56 -0700</bug_when>
    <thetext>Created attachment 309175
patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1305154</commentid>
    <comment_count>4</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2017-05-05 09:37:39 -0700</bug_when>
    <thetext>&lt;rdar://problem/32017392&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1305228</commentid>
    <comment_count>5</comment_count>
      <attachid>309175</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2017-05-05 11:39:33 -0700</bug_when>
    <thetext>Comment on attachment 309175
patch

Clearing flags on attachment: 309175

Committed r216253: &lt;http://trac.webkit.org/changeset/216253&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1305229</commentid>
    <comment_count>6</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2017-05-05 11:39:35 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>309152</attachid>
            <date>2017-05-05 01:43:33 -0700</date>
            <delta_ts>2017-05-05 09:18:56 -0700</delta_ts>
            <desc>patch</desc>
            <filename>check-complete-render-tree-update.patch</filename>
            <type>text/plain</type>
            <size>1414</size>
            <attacher name="Antti Koivisto">koivisto</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9XZWJDb3JlL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBTb3VyY2UvV2Vi
Q29yZS9DaGFuZ2VMb2cJKHJldmlzaW9uIDIxNjIzNikKKysrIFNvdXJjZS9XZWJDb3JlL0NoYW5n
ZUxvZwkod29ya2luZyBjb3B5KQpAQCAtMSwzICsxLDE1IEBACisyMDE3LTA1LTA1ICBBbnR0aSBL
b2l2aXN0byAgPGFudHRpQGFwcGxlLmNvbT4KKworICAgICAgICBBU1NFUlRJT04gRkFJTEVEOiAh
ZnJhbWUoKS5kb2N1bWVudCgpLT5pblJlbmRlclRyZWVVcGRhdGUoKSBpbiBXZWJDb3JlOjpGcmFt
ZVZpZXc6OmxheW91dChib29sKQorICAgICAgICBodHRwczovL2J1Z3Mud2Via2l0Lm9yZy9zaG93
X2J1Zy5jZ2k/aWQ9MTcxNzE3CisKKyAgICAgICAgUmV2aWV3ZWQgYnkgTk9CT0RZIChPT1BTISku
CisKKyAgICAgICAgKiBsb2FkZXIvRnJhbWVMb2FkZXIuY3BwOgorICAgICAgICAoV2ViQ29yZTo6
RnJhbWVMb2FkZXI6OmNoZWNrQ29tcGxldGVkKToKKworICAgICAgICAgICAgRG9uJ3QgYWxsb3cg
ZnJhbWUgbG9hZCB0byBjb21wbGV0ZSBpbiB0aGUgbWlkZGxlIG9mIGEgcmVuZGVyIHRyZWUgdXBk
YXRlLiBJbnN0ZWFkIGRlbGF5IHRoZSBjaGVjay4KKwogMjAxNy0wNS0wNCAgQ29tbWl0IFF1ZXVl
ICA8Y29tbWl0LXF1ZXVlQHdlYmtpdC5vcmc+CiAKICAgICAgICAgVW5yZXZpZXdlZCwgcm9sbGlu
ZyBvdXQgcjIxNjIwNi4KSW5kZXg6IFNvdXJjZS9XZWJDb3JlL2xvYWRlci9GcmFtZUxvYWRlci5j
cHAKPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PQotLS0gU291cmNlL1dlYkNvcmUvbG9hZGVyL0ZyYW1lTG9hZGVyLmNwcAko
cmV2aXNpb24gMjE2MTc5KQorKysgU291cmNlL1dlYkNvcmUvbG9hZGVyL0ZyYW1lTG9hZGVyLmNw
cAkod29ya2luZyBjb3B5KQpAQCAtNzkzLDYgKzc5MywxMiBAQCB2b2lkIEZyYW1lTG9hZGVyOjpj
aGVja0NvbXBsZXRlZCgpCiAgICAgaWYgKG1faXNDb21wbGV0ZSkKICAgICAgICAgcmV0dXJuOwog
CisgICAgLy8gRklYTUU6IEl0IHdvdWxkIGJlIGJldHRlciBpZiByZXNvdXJjZSBsb2FkcyB3ZXJl
IGtpY2tlZCBvZmYgYWZ0ZXIgcmVuZGVyIHRyZWUgdXBkYXRlIChvciBkaWRuJ3QgY29tcGxldGUg
c3luY2hyb25vdXNseSkuCisgICAgaWYgKG1fZnJhbWUuZG9jdW1lbnQoKS0+aW5SZW5kZXJUcmVl
VXBkYXRlKCkpIHsKKyAgICAgICAgc2NoZWR1bGVDaGVja0NvbXBsZXRlZCgpOworICAgICAgICBy
ZXR1cm47CisgICAgfQorCiAgICAgLy8gQXJlIHdlIHN0aWxsIHBhcnNpbmc/CiAgICAgaWYgKG1f
ZnJhbWUuZG9jdW1lbnQoKS0+cGFyc2luZygpKQogICAgICAgICByZXR1cm47Cg==
</data>
<flag name="review"
          id="330319"
          type_id="1"
          status="+"
          setter="bfulgham"
    />
          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>309175</attachid>
            <date>2017-05-05 09:18:56 -0700</date>
            <delta_ts>2017-05-05 11:39:33 -0700</delta_ts>
            <desc>patch</desc>
            <filename>check-complete-render-tree-update-2.patch</filename>
            <type>text/plain</type>
            <size>1475</size>
            <attacher name="Antti Koivisto">koivisto</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9XZWJDb3JlL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBTb3VyY2UvV2Vi
Q29yZS9DaGFuZ2VMb2cJKHJldmlzaW9uIDIxNjIzNikKKysrIFNvdXJjZS9XZWJDb3JlL0NoYW5n
ZUxvZwkod29ya2luZyBjb3B5KQpAQCAtMSwzICsxLDE1IEBACisyMDE3LTA1LTA1ICBBbnR0aSBL
b2l2aXN0byAgPGFudHRpQGFwcGxlLmNvbT4KKworICAgICAgICBBU1NFUlRJT04gRkFJTEVEOiAh
ZnJhbWUoKS5kb2N1bWVudCgpLT5pblJlbmRlclRyZWVVcGRhdGUoKSBpbiBXZWJDb3JlOjpGcmFt
ZVZpZXc6OmxheW91dChib29sKQorICAgICAgICBodHRwczovL2J1Z3Mud2Via2l0Lm9yZy9zaG93
X2J1Zy5jZ2k/aWQ9MTcxNzE3CisKKyAgICAgICAgUmV2aWV3ZWQgYnkgQnJlbnQgRnVsZ2hhbS4K
KworICAgICAgICAqIGxvYWRlci9GcmFtZUxvYWRlci5jcHA6CisgICAgICAgIChXZWJDb3JlOjpG
cmFtZUxvYWRlcjo6Y2hlY2tDb21wbGV0ZWQpOgorCisgICAgICAgICAgICBEb24ndCBhbGxvdyBm
cmFtZSBsb2FkIHRvIGNvbXBsZXRlIGluIHRoZSBtaWRkbGUgb2YgYSByZW5kZXIgdHJlZSB1cGRh
dGUuIEluc3RlYWQgZGVsYXkgdGhlIGNoZWNrLgorCiAyMDE3LTA1LTA0ICBDb21taXQgUXVldWUg
IDxjb21taXQtcXVldWVAd2Via2l0Lm9yZz4KIAogICAgICAgICBVbnJldmlld2VkLCByb2xsaW5n
IG91dCByMjE2MjA2LgpJbmRleDogU291cmNlL1dlYkNvcmUvbG9hZGVyL0ZyYW1lTG9hZGVyLmNw
cAo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09Ci0tLSBTb3VyY2UvV2ViQ29yZS9sb2FkZXIvRnJhbWVMb2FkZXIuY3BwCShy
ZXZpc2lvbiAyMTYxNzkpCisrKyBTb3VyY2UvV2ViQ29yZS9sb2FkZXIvRnJhbWVMb2FkZXIuY3Bw
CSh3b3JraW5nIGNvcHkpCkBAIC03OTMsNiArNzkzLDEzIEBAIHZvaWQgRnJhbWVMb2FkZXI6OmNo
ZWNrQ29tcGxldGVkKCkKICAgICBpZiAobV9pc0NvbXBsZXRlKQogICAgICAgICByZXR1cm47CiAK
KyAgICAvLyBGSVhNRTogSXQgd291bGQgYmUgYmV0dGVyIGlmIHJlc291cmNlIGxvYWRzIHdlcmUg
a2lja2VkIG9mZiBhZnRlciByZW5kZXIgdHJlZSB1cGRhdGUgKG9yIGRpZG4ndCBjb21wbGV0ZSBz
eW5jaHJvbm91c2x5KS4KKyAgICAvLyAgICAgICAgaHR0cHM6Ly9idWdzLndlYmtpdC5vcmcvc2hv
d19idWcuY2dpP2lkPTE3MTcyOQorICAgIGlmIChtX2ZyYW1lLmRvY3VtZW50KCktPmluUmVuZGVy
VHJlZVVwZGF0ZSgpKSB7CisgICAgICAgIHNjaGVkdWxlQ2hlY2tDb21wbGV0ZWQoKTsKKyAgICAg
ICAgcmV0dXJuOworICAgIH0KKwogICAgIC8vIEFyZSB3ZSBzdGlsbCBwYXJzaW5nPwogICAgIGlm
IChtX2ZyYW1lLmRvY3VtZW50KCktPnBhcnNpbmcoKSkKICAgICAgICAgcmV0dXJuOwo=
</data>

          </attachment>
      

    </bug>

</bugzilla>