<?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>218777</bug_id>
          
          <creation_ts>2020-11-10 15:53:21 -0800</creation_ts>
          <short_desc>ContentfulPaintChecker should not trigger plugin snapshotting</short_desc>
          <delta_ts>2020-11-11 09:23:35 -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>Layout and Rendering</component>
          <version>Safari Technology Preview</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="Simon Fraser (smfr)">simon.fraser</reporter>
          <assigned_to name="Noam Rosenthal">noam</assigned_to>
          <cc>bfulgham</cc>
    
    <cc>noam</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>zalan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1706261</commentid>
    <comment_count>0</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2020-11-10 15:53:21 -0800</bug_when>
    <thetext>This can happen:

    +                     2610 WebCore::Page::updateRendering()  (in WebCore) + 1102  [0x1099c501e]
    +                       2610 WebCore::Page::forEachDocument(WTF::Function&lt;void (WebCore::Document&amp;)&gt; const&amp;) const  (in WebCore) + 366  [0x1099be51e]
    +                         2610 WebCore::Document::enqueuePaintTimingEntryIfNeeded()  (in WebCore) + 208  [0x10938a9e0]
    +                           2610 WebCore::ContentfulPaintChecker::qualifiesForContentfulPaint(WebCore::FrameView&amp;)  (in WebCore) + 259  [0x109c46273]
    +                             2610 WebCore::ScrollView::paint(WebCore::GraphicsContext&amp;, WebCore::IntRect const&amp;, WebCore::Widget::SecurityOriginPaintPolicy, WebCore::EventRegionContext*)  (in WebCore) + 1039  [0x109a6161f]
    +                               2610 WebCore::FrameView::paintContents(WebCore::GraphicsContext&amp;, WebCore::IntRect const&amp;, WebCore::Widget::SecurityOriginPaintPolicy, WebCore::EventRegionContext*)  (in WebCore) + 760  [0x1099a6788]
    +                                 2610 WebCore::FrameView::willPaintContents(WebCore::GraphicsContext&amp;, WebCore::IntRect const&amp;, WebCore::FrameView::PaintingState&amp;)  (in WebCore) + 447  [0x1099a6baf]
    +                                   2610 WebKit::PluginView::notifyWidget(WebCore::WidgetNotification)  (in WebKit) + 134  [0x106501f0a]
    +                                     2610 WebKit::PDFPlugin::snapshot()  (in WebKit) + 297  [0x1069433d7]
    +                                       2610 -[PDFLayerController snapshotInContext:]  (in PDFKit) + 1753  [0x7fff3ebf963b]
    +                                         2610 -[PDFPage drawWithBox:toContext:]  (in PDFKit) + 141  [0x7fff3ec34edd]

Plugin snapshotting here is just a waste of cycles.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1706263</commentid>
    <comment_count>1</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2020-11-10 15:53:53 -0800</bug_when>
    <thetext>&lt;rdar://problem/71256352&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1706367</commentid>
    <comment_count>2</comment_count>
      <attachid>413787</attachid>
    <who name="Noam Rosenthal">noam</who>
    <bug_when>2020-11-10 23:24:38 -0800</bug_when>
    <thetext>Created attachment 413787
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1706485</commentid>
    <comment_count>3</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2020-11-11 09:23:33 -0800</bug_when>
    <thetext>Committed r269687: &lt;https://trac.webkit.org/changeset/269687&gt;

All reviewed patches have been landed. Closing bug and clearing flags on attachment 413787.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>413787</attachid>
            <date>2020-11-10 23:24:38 -0800</date>
            <delta_ts>2020-11-11 09:23:34 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>bug-218777-20201111092437.patch</filename>
            <type>text/plain</type>
            <size>1534</size>
            <attacher name="Noam Rosenthal">noam</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9XZWJDb3JlL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBTb3VyY2UvV2Vi
Q29yZS9DaGFuZ2VMb2cJKHJldmlzaW9uIDI2OTY3MykKKysrIFNvdXJjZS9XZWJDb3JlL0NoYW5n
ZUxvZwkod29ya2luZyBjb3B5KQpAQCAtMSwzICsxLDE4IEBACisyMDIwLTExLTEwICBOb2FtIFJv
c2VudGhhbCAgPG5vYW1Ad2Via2l0Lm9yZz4KKworICAgICAgICBDb250ZW50ZnVsUGFpbnRDaGVj
a2VyIHNob3VsZCBub3QgdHJpZ2dlciBwbHVnaW4gc25hcHNob3R0aW5nCisgICAgICAgIGh0dHBz
Oi8vYnVncy53ZWJraXQub3JnL3Nob3dfYnVnLmNnaT9pZD0yMTg3NzcKKyAgICAgICAgPHJkYXI6
Ly9wcm9ibGVtLzcxMjU2MzUyPgorCisgICAgICAgIFJldmlld2VkIGJ5IE5PQk9EWSAoT09QUyEp
LgorCisgICAgICAgIFdpZGdldHMgc2hvdWxkIG5vdCBiZSBub3RpZmllZCB3aGVuIGRldGVjdGlu
ZyBjb250ZW50ZnVsIHBhaW50LgorCisgICAgICAgIE5vIG5ldyB0ZXN0cywgYSBtaW5vciB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ICYmICFjb250ZXh0LmRldGVjdGluZ0NvbnRlbnRmdWxQYWludCgpOwog
ICAgIGlmIChwYWludGluZ1N0YXRlLmlzRmxhdHRlbmluZ1BhaW50T2ZSb290RnJhbWUpCiAgICAg
ICAgIG5vdGlmeVdpZGdldHNJbkFsbEZyYW1lcyhXaWxsUGFpbnRGbGF0dGVuZWQpOwogCg==
</data>

          </attachment>
      

    </bug>

</bugzilla>