<?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>195435</bug_id>
          
          <creation_ts>2019-03-07 14:28:09 -0800</creation_ts>
          <short_desc>Make sure an empty host matches the internal representation &quot;nullOrigin&quot; in WebCore::RegistrableDomain::matches()</short_desc>
          <delta_ts>2019-03-11 11:23:06 -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>WebCore 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>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=195301</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="John Wilander">wilander</reporter>
          <assigned_to name="John Wilander">wilander</assigned_to>
          <cc>bfulgham</cc>
    
    <cc>commit-queue</cc>
    
    <cc>darin</cc>
    
    <cc>ryanhaddad</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bot-watchers-bugzilla</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1513715</commentid>
    <comment_count>0</comment_count>
    <who name="John Wilander">wilander</who>
    <bug_when>2019-03-07 14:28:09 -0800</bug_when>
    <thetext>WebCore::RegistrableDomain::matches() is a quick way to compare a RegistrableDomain with a URL. Since RegistrableDomain represents the empty host as &quot;nullOrigin,&quot; a URL with an empty host needs to match that representation in WebCore::RegistrableDomain::matches(). This omission caused debug assertions in fast/ layout tests after https://trac.webkit.org/changeset/242603/webkit.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1513718</commentid>
    <comment_count>1</comment_count>
      <attachid>363929</attachid>
    <who name="John Wilander">wilander</who>
    <bug_when>2019-03-07 14:31:57 -0800</bug_when>
    <thetext>Created attachment 363929
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1513765</commentid>
    <comment_count>2</comment_count>
      <attachid>363929</attachid>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2019-03-07 15:56:53 -0800</bug_when>
    <thetext>Comment on attachment 363929
Patch

r=me</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1513790</commentid>
    <comment_count>3</comment_count>
      <attachid>363929</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2019-03-07 16:23:57 -0800</bug_when>
    <thetext>Comment on attachment 363929
Patch

Clearing flags on attachment: 363929

Committed r242620: &lt;https://trac.webkit.org/changeset/242620&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1513791</commentid>
    <comment_count>4</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2019-03-07 16:23:58 -0800</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1513792</commentid>
    <comment_count>5</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2019-03-07 16:25:15 -0800</bug_when>
    <thetext>&lt;rdar://problem/48695077&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1514138</commentid>
    <comment_count>6</comment_count>
      <attachid>363929</attachid>
    <who name="Darin Adler">darin</who>
    <bug_when>2019-03-08 12:54:54 -0800</bug_when>
    <thetext>Comment on attachment 363929
Patch

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

&gt; Source/WebCore/platform/RegistrableDomain.h:62
&gt; +        if (host.isEmpty() &amp;&amp; m_registrableDomain == &quot;nullOrigin&quot;_s)

Using _s with == doesn’t optimize things; I think in fact it just makes them slower. This _s should be omitted.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1514140</commentid>
    <comment_count>7</comment_count>
      <attachid>363929</attachid>
    <who name="Darin Adler">darin</who>
    <bug_when>2019-03-08 12:55:29 -0800</bug_when>
    <thetext>Comment on attachment 363929
Patch

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

&gt;&gt; Source/WebCore/platform/RegistrableDomain.h:62
&gt;&gt; +        if (host.isEmpty() &amp;&amp; m_registrableDomain == &quot;nullOrigin&quot;_s)
&gt; 
&gt; Using _s with == doesn’t optimize things; I think in fact it just makes them slower. This _s should be omitted.

Or we could fix WTF::String so it at least doesn’t make things slower and then leave this alone.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1514144</commentid>
    <comment_count>8</comment_count>
    <who name="John Wilander">wilander</who>
    <bug_when>2019-03-08 13:02:59 -0800</bug_when>
    <thetext>(In reply to Darin Adler from comment #6)
&gt; Comment on attachment 363929 [details]
&gt; Patch
&gt; 
&gt; View in context:
&gt; https://bugs.webkit.org/attachment.cgi?id=363929&amp;action=review
&gt; 
&gt; &gt; Source/WebCore/platform/RegistrableDomain.h:62
&gt; &gt; +        if (host.isEmpty() &amp;&amp; m_registrableDomain == &quot;nullOrigin&quot;_s)
&gt; 
&gt; Using _s with == doesn’t optimize things; I think in fact it just makes them
&gt; slower. This _s should be omitted.

Thanks! Did not know that.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1514538</commentid>
    <comment_count>9</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2019-03-10 09:50:35 -0700</bug_when>
    <thetext>Still lots of asserts in iOS sim:
https://build.webkit.org/builders/Apple%20iOS%2012%20Simulator%20Debug%20WK2%20%28Tests%29?numbuilds=100</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1514559</commentid>
    <comment_count>10</comment_count>
    <who name="John Wilander">wilander</who>
    <bug_when>2019-03-10 12:14:57 -0700</bug_when>
    <thetext>(In reply to Simon Fraser (smfr) from comment #9)
&gt; Still lots of asserts in iOS sim:
&gt; https://build.webkit.org/builders/
&gt; Apple%20iOS%2012%20Simulator%20Debug%20WK2%20%28Tests%29?numbuilds=100

Sorry about that. I will have a look tomorrow morning. It’s probably best to restructure the check before the IPC call. The reason for all of this is that I don’t want to do IPC for useless cases, only to drop them on the other side.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1514850</commentid>
    <comment_count>11</comment_count>
    <who name="John Wilander">wilander</who>
    <bug_when>2019-03-11 10:22:17 -0700</bug_when>
    <thetext>Looking at this now.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1514880</commentid>
    <comment_count>12</comment_count>
    <who name="John Wilander">wilander</who>
    <bug_when>2019-03-11 11:19:43 -0700</bug_when>
    <thetext>These assertion failures seem unrelated. The problem seems to be in WebKit::RemoteLayerBackingStoreCollection::backingStoreWillBeDisplayed(). Or did you see my code causing this, Simon?

ASSERTION FAILED: m_inLayerFlush
/Volumes/Data/slave/ios-simulator-12-debug/build/Source/WebKit/Shared/RemoteLayerTree/RemoteLayerBackingStoreCollection.mm(92) : bool WebKit::RemoteLayerBackingStoreCollection::backingStoreWillBeDisplayed(WebKit::RemoteLayerBackingStore &amp;)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1514885</commentid>
    <comment_count>13</comment_count>
    <who name="John Wilander">wilander</who>
    <bug_when>2019-03-11 11:23:06 -0700</bug_when>
    <thetext>I was not able to repro with ToT on my machine, executing:
run-webkit-tests --ios-simulator animations/animation-controller-drt-api.html --no-retry-failures</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>363929</attachid>
            <date>2019-03-07 14:31:57 -0800</date>
            <delta_ts>2019-03-07 16:23:57 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>bug-195435-20190307143157.patch</filename>
            <type>text/plain</type>
            <size>1909</size>
            <attacher name="John Wilander">wilander</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMjQyNjExCmRpZmYgLS1naXQgYS9Tb3VyY2UvV2ViQ29yZS9D
aGFuZ2VMb2cgYi9Tb3VyY2UvV2ViQ29yZS9DaGFuZ2VMb2cKaW5kZXggMmM5NjU3NjIxZTBhY2Vk
YWNhNzgzZTBjOTJiODcwZGUwNjZlNGU4MC4uOTg1ZmVjNGM5NmVhMGFlYWUxZDNjZmM3MDAzMzE2
NjNiYWJlN2E1NSAxMDA2NDQKLS0tIGEvU291cmNlL1dlYkNvcmUvQ2hhbmdlTG9nCisrKyBiL1Nv
dXJjZS9XZWJDb3JlL0NoYW5nZUxvZwpAQCAtMSwzICsxLDIzIEBACisyMDE5LTAzLTA3ICBKb2hu
IFdpbGFuZGVyICA8d2lsYW5kZXJAYXBwbGUuY29tPgorCisgICAgICAgIE1ha2Ugc3VyZSBhbiBl
bXB0eSBob3N0IG1hdGNoZXMgdGhlIGludGVybmFsIHJlcHJlc2VudGF0aW9uICJudWxsT3JpZ2lu
IiBpbiBXZWJDb3JlOjpSZWdpc3RyYWJsZURvbWFpbjo6bWF0Y2hlcygpCisgICAgICAgIGh0dHBz
Oi8vYnVncy53ZWJraXQub3JnL3Nob3dfYnVnLmNnaT9pZD0xOTU0MzUKKworICAgICAgICBSZXZp
ZXdlZCBieSBOT0JPRFkgKE9PUFMhKS4KKworICAgICAgICBObyBuZXcgdGVzdHMuIFRlc3RzIGFy
ZSBjdXJyZW50bHkgZmFpbGluZyBhbmQgd2lsbCBwYXNzIGFnYWluIHdpdGgKKyAgICAgICAgdGhp
cyBwYXRjaC4KKworICAgICAgICBXZWJDb3JlOjpSZWdpc3RyYWJsZURvbWFpbjo6bWF0Y2hlcygp
IGlzIGEgcXVpY2sgd2F5IHRvIGNvbXBhcmUgYQorICAgICAgICBS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i9Tb3VyY2UvV2ViQ29y
ZS9wbGF0Zm9ybS9SZWdpc3RyYWJsZURvbWFpbi5oCkBAIC01OSw2ICs1OSw4IEBAIHB1YmxpYzoK
ICAgICBib29sIG1hdGNoZXMoY29uc3QgVVJMJiB1cmwpIGNvbnN0CiAgICAgewogICAgICAgICBh
dXRvIGhvc3QgPSB1cmwuaG9zdCgpOworICAgICAgICBpZiAoaG9zdC5pc0VtcHR5KCkgJiYgbV9y
ZWdpc3RyYWJsZURvbWFpbiA9PSAibnVsbE9yaWdpbiJfcykKKyAgICAgICAgICAgIHJldHVybiB0
cnVlOwogICAgICAgICBpZiAoIWhvc3QuZW5kc1dpdGgobV9yZWdpc3RyYWJsZURvbWFpbikpCiAg
ICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgIGlmIChob3N0Lmxlbmd0aCgpID09IG1f
cmVnaXN0cmFibGVEb21haW4ubGVuZ3RoKCkpCg==
</data>

          </attachment>
      

    </bug>

</bugzilla>