<?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>37143</bug_id>
          
          <creation_ts>2010-04-06 02:33:11 -0700</creation_ts>
          <short_desc>Chromium: worker exceptions are not shown in console</short_desc>
          <delta_ts>2010-04-06 03:14:15 -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>WebKit Misc.</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>Minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Andrey Kosyakov">caseq</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>commit-queue</cc>
    
    <cc>yurys</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>208953</commentid>
    <comment_count>0</comment_count>
    <who name="Andrey Kosyakov">caseq</who>
    <bug_when>2010-04-06 02:33:11 -0700</bug_when>
    <thetext>workerExceptions.html:

&lt;html&gt;
&lt;script&gt;
var w = new Worker(&quot;workerException.js&quot;);
&lt;/script&gt;
&lt;/html&gt;

workerException.js:
throw { };

EXPECTED: Loading workerException.html should cause a console message &quot;Uncaught #&lt;an Object&gt;&quot; to be printed to console.
ACTUAL: nothing happens

This stopped working after r56402, when semantics of EventTarget.dispatchEvent() was slightly changed. The code in WebWorkerClientImpl::postExceptionToWorkerObject(), however, was incorrect before, as EventTarget.dispatchEvent() is supposed to return true iff no event handlers called preventDefault() (i.e. event is unhandled).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>208967</commentid>
    <comment_count>1</comment_count>
      <attachid>52619</attachid>
    <who name="Andrey Kosyakov">caseq</who>
    <bug_when>2010-04-06 03:01:32 -0700</bug_when>
    <thetext>Created attachment 52619
Fixed reporting of unhandled worker exceptions by inverting check for EventTarget.dispatchEvent result in accordance with its spec</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>208970</commentid>
    <comment_count>2</comment_count>
      <attachid>52619</attachid>
    <who name="Yury Semikhatsky">yurys</who>
    <bug_when>2010-04-06 03:03:48 -0700</bug_when>
    <thetext>Comment on attachment 52619
Fixed reporting of unhandled worker exceptions by inverting check for EventTarget.dispatchEvent result in accordance with its spec

Please make sure this change doesn&apos;t break layout tests.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>208973</commentid>
    <comment_count>3</comment_count>
      <attachid>52619</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2010-04-06 03:14:11 -0700</bug_when>
    <thetext>Comment on attachment 52619
Fixed reporting of unhandled worker exceptions by inverting check for EventTarget.dispatchEvent result in accordance with its spec

Clearing flags on attachment: 52619

Committed r57138: &lt;http://trac.webkit.org/changeset/57138&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>208974</commentid>
    <comment_count>4</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2010-04-06 03:14:15 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>52619</attachid>
            <date>2010-04-06 03:01:32 -0700</date>
            <delta_ts>2010-04-06 03:14:10 -0700</delta_ts>
            <desc>Fixed reporting of unhandled worker exceptions by inverting check for EventTarget.dispatchEvent result in accordance with its spec</desc>
            <filename>worker-exceptions.patch</filename>
            <type>text/plain</type>
            <size>1552</size>
            <attacher name="Andrey Kosyakov">caseq</attacher>
            
              <data encoding="base64">SW5kZXg6IFdlYktpdC9jaHJvbWl1bS9DaGFuZ2VMb2cKPT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQotLS0gV2ViS2l0L2No
cm9taXVtL0NoYW5nZUxvZwkocmV2aXNpb24gNTcxMzUpCisrKyBXZWJLaXQvY2hyb21pdW0vQ2hh
bmdlTG9nCSh3b3JraW5nIGNvcHkpCkBAIC0xLDMgKzEsMTMgQEAKKzIwMTAtMDQtMDYgIEFuZHJl
eSBLb3N5YWtvdiAgPGNhc2VxQGNocm9taXVtLm9yZz4KKworICAgICAgICBSZXZpZXdlZCBieSBO
T0JPRFkgKE9PUFMhKS4KKworICAgICAgICBGaXhlZCBsb2dnaW5nIG9mIHVuaG5kbGVkIHdvcmtl
ciBleGNlcHRpb25zLgorICAgICAgICBodHRwczovL2J1Z3Mud2Via2l0Lm9yZy9zaG93X2J1Zy5j
Z2k/aWQ9MzcxNDMKKworICAgICAgICAqIHNyYy9XZWJXb3JrZXJDbGllbnRJbXBsLmNwcDoKKyAg
ICAgICAgKFdlYktpdDo6V2ViV29ya2VyQ2xpZW50SW1wbDo6cG9zdEV4Y2VwdGlvblRvV29ya2Vy
T2JqZWN0KToKKwogMjAxMC0wNC0wNSAgQWxleGV5IFByb3NrdXJ5YWtvdiAgPGFwQGFwcGxlLmNv
bT4KIAogICAgICAgICBSZXZpZXdlZCBieSBEYXJpbiBBZGxlci4KSW5kZXg6IFdlYktpdC9jaHJv
bWl1bS9zcmMvV2ViV29ya2VyQ2xpZW50SW1wbC5jcHAKPT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQotLS0gV2ViS2l0L2No
cm9taXVtL3NyYy9XZWJXb3JrZXJDbGllbnRJbXBsLmNwcAkocmV2aXNpb24gNTcwNjgpCisrKyBX
ZWJLaXQvY2hyb21pdW0vc3JjL1dlYldvcmtlckNsaWVudEltcGwuY3BwCSh3b3JraW5nIGNvcHkp
CkBAIC0yNDUsMTEgKzI0NSwxMCBAQCB2b2lkIFdlYldvcmtlckNsaWVudEltcGw6OnBvc3RFeGNl
cHRpb25UCiAgICAgICAgIHJldHVybjsKICAgICB9CiAKLSAgICBib29sIGhhbmRsZWQgPSBmYWxz
ZTsKLSAgICBoYW5kbGVkID0gbV93b3JrZXItPmRpc3BhdGNoRXZlbnQoRXJyb3JFdmVudDo6Y3Jl
YXRlKGVycm9yTWVzc2FnZSwKLSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgIHNvdXJjZVVSTCwKLSAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGxpbmVOdW1iZXIpKTsKLSAgICBpZiAoIWhh
bmRsZWQpCisgICAgYm9vbCB1bmhhbmRsZWQgPSBtX3dvcmtlci0+ZGlzcGF0Y2hFdmVudChFcnJv
ckV2ZW50OjpjcmVhdGUoZXJyb3JNZXNzYWdlLAorICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHNvdXJjZVVSTCwKKyAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBs
aW5lTnVtYmVyKSk7CisgICAgaWYgKHVuaGFuZGxlZCkKICAgICAgICAgbV9zY3JpcHRFeGVjdXRp
b25Db250ZXh0LT5yZXBvcnRFeGNlcHRpb24oZXJyb3JNZXNzYWdlLCBsaW5lTnVtYmVyLCBzb3Vy
Y2VVUkwpOwogfQogCg==
</data>

          </attachment>
      

    </bug>

</bugzilla>