<?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>203855</bug_id>
          
          <creation_ts>2019-11-05 09:33:45 -0800</creation_ts>
          <short_desc>REGRESSION (r251930): Flaky WK1 crash in printing/pseudo-class-outside-page.html</short_desc>
          <delta_ts>2019-11-05 19:13:14 -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>Tools / Tests</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=203134</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="Jonathan Bedard">jbedard</reporter>
          <assigned_to name="Ryosuke Niwa">rniwa</assigned_to>
          <cc>ap</cc>
    
    <cc>koivisto</cc>
    
    <cc>rniwa</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>tsavell</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1587430</commentid>
    <comment_count>0</comment_count>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2019-11-05 09:33:45 -0800</bug_when>
    <thetext>This is a weird one, but looking at our results, we have a flakey OS specific WK1 crash that is also a regression:

https://results.webkit.org/?suite=layout-tests&amp;test=printing%2Fpseudo-class-outside-page.html&amp;version_name=Catalina

Only reproduces on 19A602. 19B88 doesn&apos;t reproduce the crash, so maybe we&apos;re OK in practice, but given that this is a crash, someone needs to investigate.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1587471</commentid>
    <comment_count>1</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2019-11-05 11:15:38 -0800</bug_when>
    <thetext>Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   com.apple.WebCore             	0x0000000108c55938 WebCore::FrameView::forceLayoutForPagination(WebCore::FloatSize const&amp;, WebCore::FloatSize const&amp;, float, WebCore::AdjustViewSizeOrNot) + 24 (FrameView.cpp:4535)
1   com.apple.WebCore             	0x0000000108c55690 WebCore::Frame::setPrinting(bool, WebCore::FloatSize const&amp;, WebCore::FloatSize const&amp;, float, WebCore::AdjustViewSizeOrNot) + 272
2   com.apple.WebCore             	0x0000000108ca10d5 WebCore::PrintContext::begin(float, float) + 117 (PrintContext.cpp:203)
3   libWebCoreTestSupport.dylib   	0x00000001038e2e3c WebCore::jsInternalsPrototypeFunctionSetPrinting(JSC::JSGlobalObject*, JSC::CallFrame*) + 236
4   ???                           	0x00004c2e1080116b 0 + 83760729035115
5   com.apple.JavaScriptCore      	0x0000000103d2c534 llint_entry + 92295
6   com.apple.JavaScriptCore      	0x0000000103d15aff vmEntryToJavaScript + 200
7   com.apple.JavaScriptCore      	0x00000001043695df JSC::Interpreter::executeProgram(JSC::SourceCode const&amp;, JSC::JSGlobalObject*, JSC::JSObject*) + 11887 (Interpreter.cpp:846)
8   com.apple.JavaScriptCore      	0x00000001045f9bb1 JSC::evaluate(JSC::JSGlobalObject*, JSC::SourceCode const&amp;, JSC::JSValue, WTF::NakedPtr&lt;JSC::Exception&gt;&amp;) + 289 (Completion.cpp:146)
9   com.apple.WebCore             	0x000000010851b394 WebCore::JSExecState::profiledEvaluate(JSC::JSGlobalObject*, JSC::ProfilingReason, JSC::SourceCode const&amp;, JSC::JSValue, WTF::NakedPtr&lt;JSC::Exception&gt;&amp;) + 84 (JSExecState.h:79)
10  com.apple.WebCore             	0x000000010851b1f9 WebCore::ScriptController::evaluateInWorld(WebCore::ScriptSourceCode const&amp;, WebCore::DOMWrapperWorld&amp;, WebCore::ExceptionDetails*) + 169 (ScriptController.cpp:134)
11  com.apple.WebCore             	0x00000001087e8438 WebCore::ScriptElement::executeClassicScript(WebCore::ScriptSourceCode const&amp;) + 568 (ScriptElement.cpp:391)
12  com.apple.WebCore             	0x00000001087e689c WebCore::ScriptElement::prepareScript(WTF::TextPosition const&amp;, WebCore::ScriptElement::LegacyTypeSupport) + 1244 (ScriptElement.cpp:268)
13  com.apple.WebCore             	0x0000000108a60528 WebCore::HTMLScriptRunner::runScript(WebCore::ScriptElement&amp;, WTF::TextPosition const&amp;) + 88 (HTMLScriptRunner.cpp:252)
14  com.apple.WebCore             	0x0000000108a60480 WebCore::HTMLScriptRunner::execute(WTF::Ref&lt;WebCore::ScriptElement, WTF::DumbPtrTraits&lt;WebCore::ScriptElement&gt; &gt;&amp;&amp;, WTF::TextPosition const&amp;) + 48 (HTMLScriptRunner.cpp:142)
15  com.apple.WebCore             	0x0000000108a548ad WebCore::HTMLDocumentParser::runScriptsForPausedTreeBuilder() + 157 (HTMLDocumentParser.cpp:234)
16  com.apple.WebCore             	0x0000000108a54c57 WebCore::HTMLDocumentParser::pumpTokenizerLoop(WebCore::HTMLDocumentParser::SynchronousMode, bool, WebCore::PumpSession&amp;) + 599 (HTMLDocumentParser.cpp:255)
17  com.apple.WebCore             	0x0000000108a545b8 WebCore::HTMLDocumentParser::pumpTokenizer(WebCore::HTMLDocumentParser::SynchronousMode) + 136 (HTMLDocumentParser.cpp:309)
18  com.apple.WebCore             	0x0000000108a55645 WebCore::HTMLDocumentParser::append(WTF::RefPtr&lt;WTF::StringImpl, WTF::DumbPtrTraits&lt;WTF::StringImpl&gt; &gt;&amp;&amp;) + 1541 (HTMLDocumentParser.cpp:419)
19  com.apple.WebCore             	0x0000000108741172 WebCore::DecodedDataDocumentParser::appendBytes(WebCore::DocumentWriter&amp;, char const*, unsigned long) + 114 (RefPtr.h:69)
20  com.apple.WebCore             	0x0000000108b651a1 WebCore::DocumentLoader::commitData(char const*, unsigned long) + 657
21  com.apple.WebKitLegacy        	0x000000010544bf45 -[WebHTMLRepresentation receivedData:withDataSource:] + 85 (WebHTMLRepresentation.mm:181)
22  com.apple.WebKitLegacy        	0x00000001053df1e0 -[WebDataSource(WebInternal) _receivedData:] + 64 (WebDataSource.mm:251)
23  com.apple.WebKitLegacy        	0x00000001053d9d91 WebFrameLoaderClient::committedLoad(WebCore::DocumentLoader*, char const*, int) + 97 (WebFrameLoaderClient.mm:1014)
24  com.apple.WebCore             	0x0000000108b682a4 WebCore::DocumentLoader::commitLoad(char const*, int) + 148 (DocumentLoader.cpp:1005)
25  com.apple.WebCore             	0x0000000108b67d11 WebCore::DocumentLoader::continueAfterContentPolicy(WebCore::PolicyAction) + 1313 (DocumentLoader.cpp:978)
26  com.apple.WebCore             	0x0000000108b66051 WebCore::DocumentLoader::responseReceived(WebCore::ResourceResponse const&amp;, WTF::CompletionHandler&lt;void ()&gt;&amp;&amp;) + 1841
27  com.apple.WebCore             	0x0000000108b6254c WebCore::DocumentLoader::handleSubstituteDataLoadNow() + 364 (DocumentLoader.cpp:475)
28  com.apple.JavaScriptCore      	0x0000000103a99f03 WTF::timerFired(__CFRunLoopTimer*, void*) + 35 (RunLoopTimerCF.cpp:53)
29  com.apple.CoreFoundation      	0x00007fff31ec75b4 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 20
30  com.apple.CoreFoundation      	0x00007fff31ec716e __CFRunLoopDoTimer + 859
31  com.apple.CoreFoundation      	0x00007fff31ec6b8e __CFRunLoopDoTimers + 317
32  com.apple.CoreFoundation      	0x00007fff31ea793d __CFRunLoopRun + 2213
33  com.apple.CoreFoundation      	0x00007fff31ea6e13 CFRunLoopRunSpecific + 499
34  DumpRenderTree                	0x000000010379a5f4 runTest(std::__1::basic_string&lt;char, std::__1::char_traits&lt;char&gt;, std::__1::allocator&lt;char&gt; &gt; const&amp;) + 2675 (DumpRenderTree.mm:2105)
35  DumpRenderTree                	0x00000001037997ae dumpRenderTree(int, char const**) + 2813 (DumpRenderTree.mm:1216)
36  DumpRenderTree                	0x000000010379b1e1 DumpRenderTreeMain(int, char const**) + 1438 (DumpRenderTree.mm:1450)
37  libdyld.dylib                 	0x00007fff691a6405 start + 1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1587477</commentid>
    <comment_count>2</comment_count>
      <attachid>382836</attachid>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2019-11-05 11:22:40 -0800</bug_when>
    <thetext>Created attachment 382836
Fix the crash</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1587478</commentid>
    <comment_count>3</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2019-11-05 11:23:28 -0800</bug_when>
    <thetext>I couldn&apos;t reproduce this locally but I know what&apos;s going on. This tests removes the frame inside the media query so FrameView is no more by the time we try to update the layout.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1587530</commentid>
    <comment_count>4</comment_count>
      <attachid>382836</attachid>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2019-11-05 13:54:58 -0800</bug_when>
    <thetext>Comment on attachment 382836
Fix the crash

Clearing flags on attachment: 382836

Committed r252079: &lt;https://trac.webkit.org/changeset/252079&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1587531</commentid>
    <comment_count>5</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2019-11-05 13:55:00 -0800</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1587532</commentid>
    <comment_count>6</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2019-11-05 13:55:22 -0800</bug_when>
    <thetext>&lt;rdar://problem/56917649&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1587581</commentid>
    <comment_count>7</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2019-11-05 16:24:02 -0800</bug_when>
    <thetext>So far so good. Will wait for a few more builds on &quot;A&quot; builds to be sure...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1587650</commentid>
    <comment_count>8</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2019-11-05 19:13:14 -0800</bug_when>
    <thetext>I&apos;m pretty sure this is fixed now.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>382836</attachid>
            <date>2019-11-05 11:22:40 -0800</date>
            <delta_ts>2019-11-05 13:54:58 -0800</delta_ts>
            <desc>Fix the crash</desc>
            <filename>fix203855.patch</filename>
            <type>text/plain</type>
            <size>1616</size>
            <attacher name="Ryosuke Niwa">rniwa</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9XZWJDb3JlL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBTb3VyY2UvV2Vi
Q29yZS9DaGFuZ2VMb2cJKHJldmlzaW9uIDI1MjA2NCkKKysrIFNvdXJjZS9XZWJDb3JlL0NoYW5n
ZUxvZwkod29ya2luZyBjb3B5KQpAQCAtMSwzICsxLDE1IEBACisyMDE5LTExLTA1ICBSeW9zdWtl
IE5pd2EgIDxybml3YUB3ZWJraXQub3JnPgorCisgICAgICAgIFJFR1JFU1NJT04gKHIyNTE5MzAp
OiBGbGFreSBXSzEgY3Jhc2ggaW4gcHJpbnRpbmcvcHNldWRvLWNsYXNzLW91dHNpZGUtcGFnZS5o
dG1sCisgICAgICAgIGh0dHBzOi8vYnVncy53ZWJraXQub3JnL3Nob3dfYnVnLmNnaT9pZD0yMDM4
NTUKKworICAgICAgICBSZXZpZXdlZCBieS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XRlUmVuZGVyaW5n
IG9yIGFuIGVxdWl2YWxlbnQuCiAgICAgbV9kb2MtPnN0eWxlU2NvcGUoKS5kaWRDaGFuZ2VTdHls
ZVNoZWV0RW52aXJvbm1lbnQoKTsKICAgICBtX2RvYy0+ZXZhbHVhdGVNZWRpYVF1ZXJpZXNBbmRS
ZXBvcnRDaGFuZ2VzKCk7CisgICAgaWYgKCF2aWV3KCkpCisgICAgICAgIHJldHVybjsKKworICAg
IGF1dG8mIGZyYW1lVmlldyA9ICp2aWV3KCk7CiAgICAgaWYgKHNob3VsZFVzZVByaW50aW5nTGF5
b3V0KCkpCiAgICAgICAgIGZyYW1lVmlldy5mb3JjZUxheW91dEZvclBhZ2luYXRpb24ocGFnZVNp
emUsIG9yaWdpbmFsUGFnZVNpemUsIG1heGltdW1TaHJpbmtSYXRpbywgc2hvdWxkQWRqdXN0Vmll
d1NpemUpOwogICAgIGVsc2Ugewo=
</data>

          </attachment>
      

    </bug>

</bugzilla>