<?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>39782</bug_id>
          
          <creation_ts>2010-05-26 13:48:30 -0700</creation_ts>
          <short_desc>notifications: in display+close layout test, should wait for display to close</short_desc>
          <delta_ts>2010-06-03 16:19:29 -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>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="John Gregg">johnnyg</reporter>
          <assigned_to name="John Gregg">johnnyg</assigned_to>
          <cc>commit-queue</cc>
    
    <cc>yael</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>230867</commentid>
    <comment_count>0</comment_count>
    <who name="John Gregg">johnnyg</who>
    <bug_when>2010-05-26 13:48:30 -0700</bug_when>
    <thetext>The notification spec says display is async; in this test we shouldn&apos;t try to close the notification before the display has fired.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>230987</commentid>
    <comment_count>1</comment_count>
      <attachid>57177</attachid>
    <who name="John Gregg">johnnyg</who>
    <bug_when>2010-05-26 16:04:00 -0700</bug_when>
    <thetext>Created attachment 57177
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>231028</commentid>
    <comment_count>2</comment_count>
      <attachid>57177</attachid>
    <who name="David Levin">levin</who>
    <bug_when>2010-05-26 18:09:36 -0700</bug_when>
    <thetext>Comment on attachment 57177
Patch

&gt; Index: LayoutTests/ChangeLog
&gt; +        notifications: in display+close layout test, expect async events

Your title in the bug is better than this (considering fixing this one to match the bug).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>231277</commentid>
    <comment_count>3</comment_count>
    <who name="Yael">yael</who>
    <bug_when>2010-05-27 06:52:56 -0700</bug_when>
    <thetext>Please note that there is one more issue with the layout tests.
According to the spec at http://dev.w3.org/2006/webapi/WebNotifications/publish (8.2.2) 
&quot;If the fetch algorithm returns error information, fire the error event on the notification object and stop executing this algorithm.&quot; 

Since the icon urls in the layout tests don&apos;t point to valid icons, almost all the tests should fire an error, or am I missing something?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>231333</commentid>
    <comment_count>4</comment_count>
    <who name="John Gregg">johnnyg</who>
    <bug_when>2010-05-27 09:27:01 -0700</bug_when>
    <thetext>Yael, yes you are correct, it&apos;s just that the current test harness for notifications doesn&apos;t implement any loading, so I&apos;m just verifying that the icon URL supplied gets passed to the NotificationPresenter.

It would be nice to separate some of the other functionality from the icon loading, so in this case of testing the display and close events, I will change it to have no icon.  It probably makes sense to do that for most of the tests, and then we can isolate the loading success and failure in different tests.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>231339</commentid>
    <comment_count>5</comment_count>
    <who name="Yael">yael</who>
    <bug_when>2010-05-27 10:00:05 -0700</bug_when>
    <thetext>(In reply to comment #4)
&gt; I will change it to have no icon.  It probably makes sense to do that for most of the tests, and then we can isolate the loading success and failure in different tests.

Thanks for making the change.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>231396</commentid>
    <comment_count>6</comment_count>
      <attachid>57262</attachid>
    <who name="John Gregg">johnnyg</who>
    <bug_when>2010-05-27 11:20:11 -0700</bug_when>
    <thetext>Created attachment 57262
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>233975</commentid>
    <comment_count>7</comment_count>
      <attachid>57262</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2010-06-03 16:19:24 -0700</bug_when>
    <thetext>Comment on attachment 57262
Patch

Clearing flags on attachment: 57262

Committed r60643: &lt;http://trac.webkit.org/changeset/60643&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>233976</commentid>
    <comment_count>8</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2010-06-03 16:19:29 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>57177</attachid>
            <date>2010-05-26 16:04:00 -0700</date>
            <delta_ts>2010-05-27 11:20:06 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-39782-20100526160358.patch</filename>
            <type>text/plain</type>
            <size>1846</size>
            <attacher name="John Gregg">johnnyg</attacher>
            
              <data encoding="base64">SW5kZXg6IExheW91dFRlc3RzL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBMYXlvdXRUZXN0cy9D
aGFuZ2VMb2cJKHJldmlzaW9uIDYwMjU1KQorKysgTGF5b3V0VGVzdHMvQ2hhbmdlTG9nCSh3b3Jr
aW5nIGNvcHkpCkBAIC0xLDMgKzEsMTIgQEAKKzIwMTAtMDUtMjYgIEpvaG4gR3JlZ2cgIDxqb2hu
bnlnQGdvb2dsZS5jb20+CisKKyAgICAgICAgUmV2aWV3ZWQgYnkgTk9CT0RZIChPT1BTISkuCisK
KyAgICAgICAgbm90aWZpY2F0aW9uczogaW4gZGlzcGxheStjbG9zZSBsYXlvdXQgdGVzdCwgZXhw
ZWN0IGFzeW5jIGV2ZW50cworICAgICAgICBodHRwczovL2J1Z3Mud2Via2l0Lm9yZy9zaG93X2J1
Zy5jZ2k/aWQ9Mzk3ODIKKworICAgICAgICAqIGZhc3Qvbm90aWZpY2F0aW9ucy9ub3RpZmljYXRp
b25zLWRpc3BsYXktY2xvc2UtZXZlbnRzLmh0bWw6CisKIDIwMTAtMDUtMjYgIEFkYW0gQmFydGgg
IDxhYmFydGhAd2Via2l0Lm9yZz4KIAogICAgICAgICBSZXZpZXdlZCBieSBFcmljIFNlaWRlbC4K
SW5kZXg6IExheW91dFRlc3RzL2Zhc3Qvbm90aWZpY2F0aW9ucy9ub3RpZmljYXRpb25zLWRpc3Bs
YXktY2xvc2UtZXZlbnRzLmh0bWwKPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQotLS0gTGF5b3V0VGVzdHMvZmFzdC9ub3Rp
ZmljYXRpb25zL25vdGlmaWNhdGlvbnMtZGlzcGxheS1jbG9zZS1ldmVudHMuaHRtbAkocmV2aXNp
b24gNjAyNDUpCisrKyBMYXlvdXRUZXN0cy9mYXN0L25vdGlmaWNhdGlvbnMvbm90aWZpY2F0aW9u
cy1kaXNwbGF5LWNsb3NlLWV2ZW50cy5odG1sCSh3b3JraW5nIGNvcHkpCkBAIC0xMiw2ICsxMiw3
IEBACiAgICAgICAgICAgICBpZiAod2luZG93LmxheW91dFRlc3RDb250cm9sbGVyKSB7CiAgICAg
ICAgICAgICAgICAgbGF5b3V0VGVzdENvbnRyb2xsZXIuZ3JhbnREZXNrdG9wTm90aWZpY2F0aW9u
UGVybWlzc2lvbigiZmlsZTovLyIpOwogICAgICAgICAgICAgICAgIGxheW91dFRlc3RDb250cm9s
bGVyLmR1bXBBc1RleHQoKTsKKyAgICAgICAgICAgICAgICBsYXlvdXRUZXN0Q29udHJvbGxlci53
YWl0VW50aWxEb25lKCk7CiAgICAgICAgICAgICB9CiAKICAgICAgICAgICAgIGlmICghd2luZG93
LndlYmtpdE5vdGlmaWNhdGlvbnMpIHsKQEAgLTE5LDEwICsyMCw5IEBACiAgICAgICAgICAgICB9
CiAgICAgICAgICAgICAKICAgICAgICAgICAgIHZhciBOID0gd2luZG93LndlYmtpdE5vdGlmaWNh
dGlvbnMuY3JlYXRlTm90aWZpY2F0aW9uKCJodHRwOi8vbG9jYWxob3N0L215X2ljb24ucG5nIiwg
Ik5ldyBFLW1haWwiLCAiTWVldCBtZSB0b25pZ2h0IGF0IDghIik7Ci0gICAgICAgICAgICBOLm9u
ZGlzcGxheSA9IGZ1bmN0aW9uKCkgeyBsb2coIlBBU1M6IGRpc3BsYXkgZXZlbnQgaW52b2tlZC4i
KTsgfQotICAgICAgICAgICAgTi5vbmNsb3NlID0gZnVuY3Rpb24oKSB7IGxvZygiUEFTUzogY2xv
c2UgZXZlbnQgaW52b2tlZC4iKTsgfQorICAgICAgICAgICAgTi5vbmRpc3BsYXkgPSBmdW5jdGlv
bigpIHsgbG9nKCJQQVNTOiBkaXNwbGF5IGV2ZW50IGludm9rZWQuIik7IE4uY2FuY2VsKCk7IH0K
KyAgICAgICAgICAgIE4ub25jbG9zZSA9IGZ1bmN0aW9uKCkgeyBsb2coIlBBU1M6IGNsb3NlIGV2
ZW50IGludm9rZWQuIik7IGxheW91dFRlc3RDb250cm9sbGVyLm5vdGlmeURvbmUoKTsgfQogICAg
ICAgICAgICAgTi5zaG93KCk7Ci0gICAgICAgICAgICBOLmNhbmNlbCgpOwogICAgICAgICB9CiAg
ICAgPC9zY3JpcHQ+CiA8L2hlYWQ+Cg==
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>57262</attachid>
            <date>2010-05-27 11:20:11 -0700</date>
            <delta_ts>2010-06-03 16:19:24 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-39782-20100527112009.patch</filename>
            <type>text/plain</type>
            <size>2800</size>
            <attacher name="John Gregg">johnnyg</attacher>
            
              <data encoding="base64">SW5kZXg6IExheW91dFRlc3RzL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT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kpCkBAIC0xMiwxNyArMTIsMTcg
QEAKICAgICAgICAgICAgIGlmICh3aW5kb3cubGF5b3V0VGVzdENvbnRyb2xsZXIpIHsKICAgICAg
ICAgICAgICAgICBsYXlvdXRUZXN0Q29udHJvbGxlci5ncmFudERlc2t0b3BOb3RpZmljYXRpb25Q
ZXJtaXNzaW9uKCJmaWxlOi8vIik7CiAgICAgICAgICAgICAgICAgbGF5b3V0VGVzdENvbnRyb2xs
ZXIuZHVtcEFzVGV4dCgpOworICAgICAgICAgICAgICAgIGxheW91dFRlc3RDb250cm9sbGVyLndh
aXRVbnRpbERvbmUoKTsKICAgICAgICAgICAgIH0KIAogICAgICAgICAgICAgaWYgKCF3aW5kb3cu
d2Via2l0Tm90aWZpY2F0aW9ucykgewogICAgICAgICAgICAgICAgIGxvZygiRkFJTDogTm8gd2Vi
a2l0Tm90aWZpY2F0aW9ucyBpbnRlcmZhY2UhIik7CiAgICAgICAgICAgICB9CiAgICAgICAgICAg
ICAKLSAgICAgICAgICAgIHZhciBOID0gd2luZG93LndlYmtpdE5vdGlmaWNhdGlvbnMuY3JlYXRl
Tm90aWZpY2F0aW9uKCJodHRwOi8vbG9jYWxob3N0L215X2ljb24ucG5nIiwgIk5ldyBFLW1haWwi
LCAiTWVldCBtZSB0b25pZ2h0IGF0IDghIik7Ci0gICAgICAgICAgICBOLm9uZGlzcGxheSA9IGZ1
bmN0aW9uKCkgeyBsb2coIlBBU1M6IGRpc3BsYXkgZXZlbnQgaW52b2tlZC4iKTsgfQotICAgICAg
ICAgICAgTi5vbmNsb3NlID0gZnVuY3Rpb24oKSB7IGxvZygiUEFTUzogY2xvc2UgZXZlbnQgaW52
b2tlZC4iKTsgfQorICAgICAgICAgICAgdmFyIE4gPSB3aW5kb3cud2Via2l0Tm90aWZpY2F0aW9u
cy5jcmVhdGVOb3RpZmljYXRpb24oIiIsICJOZXcgRS1tYWlsIiwgIk1lZXQgbWUgdG9uaWdodCBh
dCA4ISIpOworICAgICAgICAgICAgTi5vbmRpc3BsYXkgPSBmdW5jdGlvbigpIHsgbG9nKCJQQVNT
OiBkaXNwbGF5IGV2ZW50IGludm9rZWQuIik7IE4uY2FuY2VsKCk7IH0KKyAgICAgICAgICAgIE4u
b25jbG9zZSA9IGZ1bmN0aW9uKCkgeyBsb2coIlBBU1M6IGNsb3NlIGV2ZW50IGludm9rZWQuIik7
IGxheW91dFRlc3RDb250cm9sbGVyLm5vdGlmeURvbmUoKTsgfQogICAgICAgICAgICAgTi5zaG93
KCk7Ci0gICAgICAgICAgICBOLmNhbmNlbCgpOwogICAgICAgICB9CiAgICAgPC9zY3JpcHQ+CiA8
L2hlYWQ+Cg==
</data>

          </attachment>
      

    </bug>

</bugzilla>