<?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>222395</bug_id>
          
          <creation_ts>2021-02-24 17:44:04 -0800</creation_ts>
          <short_desc>Avoid setting page muted state if unchanged</short_desc>
          <delta_ts>2021-02-25 14:18:55 -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>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="Per Arne Vollan">pvollan</reporter>
          <assigned_to name="Per Arne Vollan">pvollan</assigned_to>
          <cc>bfulgham</cc>
    
    <cc>dean_johnson</cc>
    
    <cc>eric.carlson</cc>
    
    <cc>jer.noble</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1733168</commentid>
    <comment_count>0</comment_count>
    <who name="Per Arne Vollan">pvollan</who>
    <bug_when>2021-02-24 17:44:04 -0800</bug_when>
    <thetext>Return early in Page::setMuted if muted state did not change.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1733169</commentid>
    <comment_count>1</comment_count>
      <attachid>421489</attachid>
    <who name="Per Arne Vollan">pvollan</who>
    <bug_when>2021-02-24 17:45:55 -0800</bug_when>
    <thetext>Created attachment 421489
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1733410</commentid>
    <comment_count>2</comment_count>
      <attachid>421489</attachid>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2021-02-25 10:48:35 -0800</bug_when>
    <thetext>Comment on attachment 421489
Patch

Silly we didn&apos;t do this before! r=me.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1733437</commentid>
    <comment_count>3</comment_count>
      <attachid>421489</attachid>
    <who name="Per Arne Vollan">pvollan</who>
    <bug_when>2021-02-25 11:51:33 -0800</bug_when>
    <thetext>Comment on attachment 421489
Patch

Thanks for reviewing!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1733440</commentid>
    <comment_count>4</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2021-02-25 11:55:21 -0800</bug_when>
    <thetext>Committed r273499: &lt;https://commits.webkit.org/r273499&gt;

All reviewed patches have been landed. Closing bug and clearing flags on attachment 421489.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1733441</commentid>
    <comment_count>5</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2021-02-25 11:56:14 -0800</bug_when>
    <thetext>&lt;rdar://problem/74754341&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1733444</commentid>
    <comment_count>6</comment_count>
      <attachid>421489</attachid>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2021-02-25 12:01:37 -0800</bug_when>
    <thetext>Comment on attachment 421489
Patch

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

&gt; Source/WebCore/ChangeLog:8
&gt; +        Return early in Page::setMuted if muted state did not change.

Why?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1733501</commentid>
    <comment_count>7</comment_count>
    <who name="Per Arne Vollan">pvollan</who>
    <bug_when>2021-02-25 14:01:31 -0800</bug_when>
    <thetext>(In reply to Simon Fraser (smfr) from comment #6)
&gt; Comment on attachment 421489 [details]
&gt; Patch
&gt; 
&gt; View in context:
&gt; https://bugs.webkit.org/attachment.cgi?id=421489&amp;action=review
&gt; 
&gt; &gt; Source/WebCore/ChangeLog:8
&gt; &gt; +        Return early in Page::setMuted if muted state did not change.
&gt; 
&gt; Why?

This is to avoid work when creating the Web page in WP, and should be a small speedup.

Thanks for reviewing!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1733505</commentid>
    <comment_count>8</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2021-02-25 14:03:25 -0800</bug_when>
    <thetext>(In reply to Per Arne Vollan from comment #7)
&gt; (In reply to Simon Fraser (smfr) from comment #6)
&gt; &gt; Comment on attachment 421489 [details]
&gt; &gt; Patch
&gt; &gt; 
&gt; &gt; View in context:
&gt; &gt; https://bugs.webkit.org/attachment.cgi?id=421489&amp;action=review
&gt; &gt; 
&gt; &gt; &gt; Source/WebCore/ChangeLog:8
&gt; &gt; &gt; +        Return early in Page::setMuted if muted state did not change.
&gt; &gt; 
&gt; &gt; Why?
&gt; 
&gt; This is to avoid work when creating the Web page in WP, and should be a
&gt; small speedup.
&gt; 
&gt; Thanks for reviewing!

The changelog should have said that. Is there an associated radar?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1733515</commentid>
    <comment_count>9</comment_count>
    <who name="Per Arne Vollan">pvollan</who>
    <bug_when>2021-02-25 14:18:55 -0800</bug_when>
    <thetext>(In reply to Simon Fraser (smfr) from comment #8)
&gt; (In reply to Per Arne Vollan from comment #7)
&gt; &gt; (In reply to Simon Fraser (smfr) from comment #6)
&gt; &gt; &gt; Comment on attachment 421489 [details]
&gt; &gt; &gt; Patch
&gt; &gt; &gt; 
&gt; &gt; &gt; View in context:
&gt; &gt; &gt; https://bugs.webkit.org/attachment.cgi?id=421489&amp;action=review
&gt; &gt; &gt; 
&gt; &gt; &gt; &gt; Source/WebCore/ChangeLog:8
&gt; &gt; &gt; &gt; +        Return early in Page::setMuted if muted state did not change.
&gt; &gt; &gt; 
&gt; &gt; &gt; Why?
&gt; &gt; 
&gt; &gt; This is to avoid work when creating the Web page in WP, and should be a
&gt; &gt; small speedup.
&gt; &gt; 
&gt; &gt; Thanks for reviewing!
&gt; 
&gt; The changelog should have said that. Is there an associated radar?

Yes, I agree, that change log entry was too short.

This is the radar: &lt;rdar://problem/74754341&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>421489</attachid>
            <date>2021-02-24 17:45:55 -0800</date>
            <delta_ts>2021-02-25 11:55:21 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>bug-222395-20210224174555.patch</filename>
            <type>text/plain</type>
            <size>1203</size>
            <attacher name="Per Arne Vollan">pvollan</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9XZWJDb3JlL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBTb3VyY2UvV2Vi
Q29yZS9DaGFuZ2VMb2cJKHJldmlzaW9uIDI3MzQ2NCkKKysrIFNvdXJjZS9XZWJDb3JlL0NoYW5n
ZUxvZwkod29ya2luZyBjb3B5KQpAQCAtMSwzICsxLDE3IEBACisyMDIxLTAyLTI0ICBQZXIgQXJu
ZSBWb2xsYW4gIDxwdm9sbGFuQGFwcGxlLmNvbT4KKworICAgICAgICBBdm9pZCBzZXR0aW5nIHBh
Z2UgbXV0ZWQgc3RhdGUgaWYgdW5jaGFuZ2VkCisgICAgICAgIGh0dHBzOi8vYnVncy53ZWJraXQu
b3JnL3Nob3dfYnVnLmNnaT9pZD0yMjIzOTUKKworICAgICAgICBSZXZpZXdlZCBieSBOT0JPRFkg
KE9PUFMhKS4KKworICAgICAgICBSZXR1cm4gZWFybHkgaW4gUGFnZTo6c2V0TXV0ZWQgaWYgbXV0
ZWQgc3RhdGUgZGlkIG5vdCBjaGFuZ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