<?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>159307</bug_id>
          
          <creation_ts>2016-06-30 11:45:05 -0700</creation_ts>
          <short_desc>WebContent crash due to RELEASE_ASSERT(!m_inLoadPendingImages) in StyleResolver::~StyleResolver()</short_desc>
          <delta_ts>2016-06-30 16:12:56 -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>CSS</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>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1206790</commentid>
    <comment_count>0</comment_count>
    <who name="Antti Koivisto">koivisto</who>
    <bug_when>2016-06-30 11:45:05 -0700</bug_when>
    <thetext>Thread 0 name:  Dispatch queue: com.apple.main-thread
Thread 0 Crashed ↩:
0   WebCore                       	0x0000000188f8b830 WebCore::StyleResolver::~StyleResolver() + 364 (StyleResolver.cpp:309)
1   WebCore                       	0x0000000188f8b648 WebCore::Document::clearStyleResolver() + 32 (memory:2525)
2   WebCore                       	0x0000000188f8b648 WebCore::Document::clearStyleResolver() + 32 (memory:2525)
3   WebCore                       	0x0000000189179ac8 WebCore::AuthorStyleSheets::updateActiveStyleSheets(WebCore::AuthorStyleSheets::UpdateFlag) + 484 (AuthorStyleSheets.cpp:317)
4   WebCore                       	0x0000000188f8a574 WebCore::Document::styleResolverChanged(WebCore::StyleResolverUpdateFlag) + 116 (Document.cpp:3650)
5   WebKit                        	0x000000018d9949e4 WebKit::WebPage::viewportConfigurationChanged() + 196 (WebPageIOS.mm:2822)
6   WebKit                        	0x000000018d98a080 WebKit::WebPage::mainFrameDidLayout() + 156 (WebPage.cpp:3750)
7   WebCore                       	0x0000000188fd0598 WebCore::FrameView::performPostLayoutTasks() + 176 (FrameView.cpp:3183)
8   WebCore                       	0x0000000188fcc8e8 WebCore::FrameView::layout(bool) + 3544 (FrameView.cpp:1487)
9   WebCore                       	0x0000000188fc9528 WebCore::Document::implicitClose() + 788 (Document.cpp:2776)
10  WebCore                       	0x0000000188fc8928 WebCore::FrameLoader::checkCompleted() + 352 (FrameLoader.cpp:867)
11  WebCore                       	0x0000000188ffad54 WebCore::CachedResourceLoader::loadDone(WebCore::CachedResource*, bool) + 612 (CachedResourceLoader.cpp:991)
12  WebCore                       	0x0000000188ffcdc8 WebCore::SubresourceLoader::didCancel(WebCore::ResourceError const&amp;) + 96 (SubresourceLoader.cpp:508)
13  WebCore                       	0x0000000188ffc7c8 WebCore::ResourceLoader::cancel(WebCore::ResourceError const&amp;) + 484 (ResourceLoader.cpp:590)
14  WebCore                       	0x0000000188ffc558 WebCore::ResourceLoader::cancel() + 84 (ResourceLoader.cpp:546)
15  WebCore                       	0x0000000189cf039c WebCore::SubresourceLoader::willSendRequestInternal(WebCore::ResourceRequest&amp;, WebCore::ResourceResponse const&amp;) + 704 (SubresourceLoader.cpp:211)
16  WebCore                       	0x0000000188f6b990 WebCore::ResourceLoader::init(WebCore::ResourceRequest const&amp;) + 288 (ResourceLoader.cpp:155)
17  WebCore                       	0x0000000188f6b724 WebCore::SubresourceLoader::init(WebCore::ResourceRequest const&amp;) + 32 (SubresourceLoader.cpp:144)
18  WebCore                       	0x0000000188f6b178 WebCore::SubresourceLoader::create(WebCore::Frame*, WebCore::CachedResource*, WebCore::ResourceRequest const&amp;, WebCore::ResourceLoaderOptions const&amp;) + 188 (SubresourceLoader.cpp:112)
19  WebKit                        	0x000000018d979014 WebKit::WebLoaderStrategy::loadResource(WebCore::Frame*, WebCore::CachedResource*, WebCore::ResourceRequest const&amp;, WebCore::ResourceLoaderOptions const&amp;) + 52 (WebLoaderStrategy.cpp:76)
20  WebCore                       	0x00000001891acd20 WebCore::CachedResource::load(WebCore::CachedResourceLoader&amp;, WebCore::ResourceLoaderOptions const&amp;) + 1184 (CachedResource.cpp:283)
21  WebCore                       	0x0000000188f68774 WebCore::CachedResourceLoader::requestResource(WebCore::CachedResource::Type, WebCore::CachedResourceRequest&amp;) + 2160 (CachedResourceLoader.cpp:631)
22  WebCore                       	0x0000000189008750 WebCore::CachedResourceLoader::requestImage(WebCore::CachedResourceRequest&amp;) + 260 (CachedResourceLoader.cpp:190)
23  WebCore                       	0x0000000189261bd0 WebCore::CSSImageValue::cachedImage(WebCore::CachedResourceLoader&amp;, WebCore::ResourceLoaderOptions const&amp;) + 452 (CSSImageValue.cpp:88)
24  WebCore                       	0x0000000189ce27a4 WebCore::StyleResolver::loadPendingImage(WebCore::StylePendingImage const&amp;, WebCore::ResourceLoaderOptions const&amp;) + 76 (StyleResolver.cpp:2083)
25  WebCore                       	0x0000000188f54654 WebCore::StyleResolver::loadPendingImages() + 1172 (StyleResolver.cpp:2105)
26  WebCore                       	0x0000000189cdcf78 WebCore::StyleResolver::applyMatchedProperties(WebCore::StyleResolver::MatchResult const&amp;, WebCore::Element const&amp;, WebCore::StyleResolver::ShouldUseMatchedPropertiesCache) + 2076 (StyleResolver.cpp:2243)
27  WebCore                       	0x0000000189cdeb10 WebCore::StyleResolver::pseudoStyleForElement(WebCore::Element const&amp;, WebCore::PseudoStyleRequest const&amp;, WebCore::RenderStyle const&amp;) + 596 (StyleResolver.cpp:596)
28  WebCore                       	0x0000000189af9138 WebCore::RenderElement::getCachedPseudoStyle(WebCore::PseudoId, WebCore::RenderStyle const*) const + 128 (RenderElement.cpp:1543)
29  WebCore                       	0x0000000189bc68ac WebCore::RenderTreeUpdater::updateBeforeOrAfterPseudoElement(WebCore::Element&amp;, WebCore::PseudoId) + 320 (RenderTreeUpdater.cpp:459)
30  WebCore                       	0x0000000189bc6ab4 WebCore::RenderTreeUpdater::popParent() + 64 (RenderTreeUpdater.cpp:192)
31  WebCore                       	0x0000000189bc58dc WebCore::RenderTreeUpdater::updateRenderTree(WebCore::ContainerNode&amp;) + 736 (RenderTreeUpdater.cpp:205)
32  WebCore                       	0x0000000189bc55a4 WebCore::RenderTreeUpdater::commit(std::__1::unique_ptr&lt;WebCore::Style::Update, std::__1::default_delete&lt;WebCore::Style::Update&gt; &gt;) + 492 (RenderTreeUpdater.cpp:99)
33  WebCore                       	0x00000001892fa5b8 WebCore::Document::recalcStyle(WebCore::Style::Change) + 752 (Document.cpp:1891)
34  WebCore                       	0x0000000188fc7b08 WebCore::Document::finishedParsing() + 340 (Document.cpp:1937)
35  WebCore                       	0x0000000188fc5484 WebCore::HTMLDocumentParser::prepareToStopParsing() + 172 (HTMLDocumentParser.cpp:405)
36  WebCore                       	0x0000000188fc49c0 WebCore::DocumentWriter::end() + 92 (DocumentWriter.cpp:257)
37  WebCore                       	0x0000000188fbc180 WebCore::DocumentLoader::finishedLoading(double) + 256 (DocumentLoader.cpp:436)
38  WebCore                       	0x0000000188ffa468 WebCore::CachedResource::checkNotify() + 448 (CachedResource.cpp:299)
39  WebCore                       	0x00000001891ab4d8 WebCore::CachedRawResource::finishLoading(WebCore::SharedBuffer*) + 224 (CachedRawResource.cpp:103)
40  WebCore                       	0x0000000188ffa148 WebCore::SubresourceLoader::didFinishLoading(double) + 988 (SubresourceLoader.cpp:429)
41  WebKit                        	0x000000018da1ff18 WebKit::WebResourceLoader::didFinishResourceLoad(double) + 216 (WebResourceLoader.cpp:159)
42  WebKit                        	0x000000018da20958 WebKit::WebResourceLoader::didReceiveWebResourceLoaderMessage(IPC::Connection&amp;, IPC::MessageDecoder&amp;) + 540 (HandleMessage.h:16)
43  WebKit                        	0x000000018d85981c IPC::Connection::dispatchMessage(std::__1::unique_ptr&lt;IPC::MessageDecoder, std::__1::default_delete&lt;IPC::MessageDecoder&gt; &gt;) + 160 (Connection.cpp:899)
44  WebKit                        	0x000000018d85c1d4 IPC::Connection::dispatchOneMessage() + 204 (Connection.cpp:961)
45  JavaScriptCore                	0x0000000188cad648 WTF::RunLoop::performWork() + 884 (functional:1817)
46  JavaScriptCore                	0x0000000188cad844 WTF::RunLoop::performWork(void*) + 36 (RunLoopCF.cpp:38)
47  CoreFoundation                	0x00000001845863f0 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24 (CFRunLoop.c:1943)
48  CoreFoundation                	0x0000000184585d38 __CFRunLoopDoSources0 + 524 (CFRunLoop.c:1989)
49  CoreFoundation                	0x0000000184583938 __CFRunLoopRun + 804 (CFRunLoop.c:2821)
50  CoreFoundation                	0x00000001844b62e4 CFRunLoopRunSpecific + 292 (CFRunLoop.c:3103)
51  Foundation                    	0x0000000184f6093c -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 304 (NSRunLoop.m:367)
52  Foundation                    	0x0000000184fb5214 -[NSRunLoop(NSRunLoop) run] + 88 (NSRunLoop.m:389)
53  libxpc.dylib                  	0x000000018426bf28 _xpc_objc_main + 660 (main.m:186)
54  libxpc.dylib                  	0x000000018426dc20 xpc_main + 200 (init.c:1438)
55  com.apple.WebKit.WebContent   	0x00000001000335e4 main + 376 (XPCServiceMain.mm:114)
56  libdyld.dylib                 	0x0000000184058600 start + 4</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1206792</commentid>
    <comment_count>1</comment_count>
    <who name="Antti Koivisto">koivisto</who>
    <bug_when>2016-06-30 11:45:49 -0700</bug_when>
    <thetext>&lt;rdar://problem/26184868&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1206915</commentid>
    <comment_count>2</comment_count>
      <attachid>282485</attachid>
    <who name="Antti Koivisto">koivisto</who>
    <bug_when>2016-06-30 15:58:42 -0700</bug_when>
    <thetext>Created attachment 282485
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1206916</commentid>
    <comment_count>3</comment_count>
      <attachid>282485</attachid>
    <who name="Andreas Kling">kling</who>
    <bug_when>2016-06-30 16:00:11 -0700</bug_when>
    <thetext>Comment on attachment 282485
Patch

r=me</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1206925</commentid>
    <comment_count>4</comment_count>
    <who name="Antti Koivisto">koivisto</who>
    <bug_when>2016-06-30 16:12:56 -0700</bug_when>
    <thetext>https://trac.webkit.org/r202716</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>282485</attachid>
            <date>2016-06-30 15:58:42 -0700</date>
            <delta_ts>2016-06-30 16:00:11 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>rendertreeupdater-postresolutiondisabler.patch</filename>
            <type>text/plain</type>
            <size>1840</size>
            <attacher name="Antti Koivisto">koivisto</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9XZWJDb3JlL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBTb3VyY2UvV2Vi
Q29yZS9DaGFuZ2VMb2cJKHJldmlzaW9uIDIwMjY5MykKKysrIFNvdXJjZS9XZWJDb3JlL0NoYW5n
ZUxvZwkod29ya2luZyBjb3B5KQpAQCAtMSwzICsxLDIzIEBACisyMDE2LTA2LTMwICBBbnR0aSBL
b2l2aXN0byAgPGFudHRpQGFwcGxlLmNvbT4KKworICAgICAgICBXZWJDb250ZW50IGNyYXNoIGR1
ZSB0byBSRUxFQVNFX0FTU0VSVCghbV9pbkxvYWRQZW5ka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0aWN1bGFyIGNyYXNoIHBhdGguCisK
IDIwMTYtMDYtMzAgIEJyaWFuIEJ1cmcgIDxiYnVyZ0BhcHBsZS5jb20+CiAKICAgICAgICAgVW5y
ZXZpZXdlZCwgZml4IHRoZSBtYWNPUyBTaWVycmEgUmVsZWFzZSBjb25maWd1cmF0aW9uIGFmdGVy
IHIyMDI2NDIuCkluZGV4OiBTb3VyY2UvV2ViQ29yZS9zdHlsZS9SZW5kZXJUcmVlVXBkYXRlci5j
cHAKPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PQotLS0gU291cmNlL1dlYkNvcmUvc3R5bGUvUmVuZGVyVHJlZVVwZGF0ZXIu
Y3BwCShyZXZpc2lvbiAyMDI2NTUpCisrKyBTb3VyY2UvV2ViQ29yZS9zdHlsZS9SZW5kZXJUcmVl
VXBkYXRlci5jcHAJKHdvcmtpbmcgY29weSkKQEAgLTkzLDYgKzkzLDggQEAgdm9pZCBSZW5kZXJU
cmVlVXBkYXRlcjo6Y29tbWl0KHN0ZDo6dW5pcQogICAgIGlmICghbV9kb2N1bWVudC5zaG91bGRD
cmVhdGVSZW5kZXJlcnMoKSB8fCAhbV9kb2N1bWVudC5yZW5kZXJWaWV3KCkpCiAgICAgICAgIHJl
dHVybjsKIAorICAgIFN0eWxlOjpQb3N0UmVzb2x1dGlvbkNhbGxiYWNrRGlzYWJsZXIgY2FsbGJh
Y2tEaXNhYmxlcihtX2RvY3VtZW50KTsKKwogICAgIG1fc3R5bGVVcGRhdGUgPSBXVEZNb3ZlKHN0
eWxlVXBkYXRlKTsKIAogICAgIGZvciAoYXV0byogcm9vdCA6IGZpbmRSZW5kZXJpbmdSb290cygq
bV9zdHlsZVVwZGF0ZSkpCg==
</data>
<flag name="review"
          id="306289"
          type_id="1"
          status="+"
          setter="kling"
    />
          </attachment>
      

    </bug>

</bugzilla>