<?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>94477</bug_id>
          
          <creation_ts>2012-08-20 07:04:35 -0700</creation_ts>
          <short_desc>Update postMessage declaration in MessagePort.idl</short_desc>
          <delta_ts>2012-08-20 09:56:18 -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>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://www.w3.org/TR/html5/comms.html#messageport</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="Chris Dumez">cdumez</reporter>
          <assigned_to name="Chris Dumez">cdumez</assigned_to>
          <cc>abarth</cc>
    
    <cc>darin</cc>
    
    <cc>eric</cc>
    
    <cc>haraken</cc>
    
    <cc>levin</cc>
    
    <cc>ojan</cc>
    
    <cc>webkit.review.bot</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>699474</commentid>
    <comment_count>0</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2012-08-20 07:04:35 -0700</bug_when>
    <thetext>postMessage() / webkitPostMessage() are defined as follows in MessagePort.idl:
[Custom] void postMessage(in DOMString message, in [Optional] Array messagePorts)
[Custom] void webkitPostMessage(in DOMString message, in [Optional] Array transfer)

According to the spec (http://www.w3.org/TR/html5/comms.html#messageport), the first argument should be of type &apos;any&apos;, not &apos;DOMString&apos;.
We currently don&apos;t notice the issue cause we provide custom implementation for those methods and the custom implementation handles the first argument as being of type &apos;any&apos;.

We should however update MessagePort.idl to avoid confusion.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>699477</commentid>
    <comment_count>1</comment_count>
      <attachid>159419</attachid>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2012-08-20 07:07:54 -0700</bug_when>
    <thetext>Created attachment 159419
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>699552</commentid>
    <comment_count>2</comment_count>
      <attachid>159419</attachid>
    <who name="Kentaro Hara">haraken</who>
    <bug_when>2012-08-20 08:49:21 -0700</bug_when>
    <thetext>Comment on attachment 159419
Patch

The change looks reasonable. DedicatedWorkerContext.idl already uses &apos;any&apos; for postMessage() and webkitPostMessage().

&gt; We currently don&apos;t notice the issue cause we provide custom implementation for those methods and the custom implementation handles the first argument as being of type &apos;any&apos;.

Note: Code generators do not yet support &apos;any&apos;, so we can use &apos;any&apos; only for custom implementations. We want to fix it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>699598</commentid>
    <comment_count>3</comment_count>
      <attachid>159419</attachid>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2012-08-20 09:39:26 -0700</bug_when>
    <thetext>Comment on attachment 159419
Patch

Clearing flags on attachment: 159419

Committed r126040: &lt;http://trac.webkit.org/changeset/126040&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>699599</commentid>
    <comment_count>4</comment_count>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2012-08-20 09:39:32 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>159419</attachid>
            <date>2012-08-20 07:07:54 -0700</date>
            <delta_ts>2012-08-20 09:39:26 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>94477_messageport_idl.patch</filename>
            <type>text/plain</type>
            <size>1802</size>
            <attacher name="Chris Dumez">cdumez</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1NvdXJjZS9XZWJDb3JlL0NoYW5nZUxvZyBiL1NvdXJjZS9XZWJDb3JlL0No
YW5nZUxvZwppbmRleCAxNGY4NzU5Li41NjAxMjUyIDEwMDY0NAotLS0gYS9Tb3VyY2UvV2ViQ29y
ZS9DaGFuZ2VMb2cKKysrIGIvU291cmNlL1dlYkNvcmUvQ2hhbmdlTG9nCkBAIC0xLDMgKzEsMjEg
QEAKKzIwMTItMDgtMjAgIENocmlzdG9waGUgRHVtZXogIDxjaHJpc3RvcGhlLmR1bWV6QGludGVs
LmNvbT4KKworICAgICAgICBwb3N0TWVzc2FnZSgpIGluIE1lc3NhZ2VQb3J0LmlkbCBkb2VzIG5v
dCBtYXRjaCBzcGVjCisgICAgICAgIGh0dHBzOi8vYnVncy53ZWJraXQub3JnL3Nob3dfYnVnLmNn
aT9pZD05NDQ3NworCisgICAgICAgIFJldmlld2VkIGJ5IE5PQk9EWSAoT09QUyEpLgorCisgICAg
ICAgIFVwZGF0ZSBkZWZpbml0aW9uIG9mIHBvc3RNZXNzYWdlKCkgaW4gTWVzc2FnZVBvcnQuaWRs
CisgICAgICAgIHRvIG1hdGNoIHRoZSBzcGVjaWZpY2F0aW9uIGF0OgorICAgICAgICBodHRwOi8v
d3d3LnczLm9yZy9UUi9odG1sNS9jb21tcy5odG1sI21lc3NhZ2Vwb3J0CisKKyAgICAgICAgVGhl
IGZpcnN0IGFyZ3VtZW50IHNob3VsZCBiZSBvZiB0eXBlICdhbnknLCBub3QKKyAgICAgICAgJ0RP
TVN0cmluZycuCisKKyAgICAgICAgTm8gbmV3IHRlc3RzLCBubyBiZWhhdmlvciBjaGFuZ2UuCisK
KyAgICAgICAgKiBkb20vTWVzc2FnZVBvcnQuaWRsOgorCiAyMDEyLTA4LTIwICBYYW4gTG9wZXog
IDx4bG9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