<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>15994</bug_id>
          
          <creation_ts>2012-02-15 19:26:39 +0000</creation_ts>
          <short_desc>origin attribute</short_desc>
          <delta_ts>2012-10-12 18:11:23 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebAppsWG</product>
          <component>Web Messaging (editor: Ian Hickson)</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>17823</dup_id>
          
          <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="Karl Dubost">karl+w3c</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>erika.doyle</cc>
    
    <cc>ian</cc>
    
    <cc>mike</cc>
    
    <cc>odinho</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</cc>
    
    <cc>public-webapps</cc>
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>64148</commentid>
    <comment_count>0</comment_count>
    <who name="Karl Dubost">karl+w3c</who>
    <bug_when>2012-02-15 19:26:39 +0000</bug_when>
    <thetext>The definition of origin attribute in Web Messaging specification Editor&apos;s Draft from January 18, 2012 says at
http://dev.w3.org/html5/postmsg/#dom-messageevent-origin


&gt; It represents, in server-sent events and cross-document 
&gt; messaging, the origin of the document that sent the 
&gt; message (typically the scheme, hostname, and port of 
&gt; the document, but not its path or fragment identifier).

From this I suspect that the scheme could be anything: http, https, mailto, irc, etc. In the context a script I was wondering if 
 
    iframe.contentWindow.postMessage(&apos;message&apos;,&apos;http://dev.opera.com&apos;)

could be rewritten

    iframe.contentWindow.postMessage(&apos;message&apos;,&apos;//dev.opera.com&apos;)

allowing Web sites to work with or without https without having to rewrite the code. If this is authorized maybe, the paragraph could be modified with 

    It represents, in server-sent events and cross-document 
    messaging, the origin of the document that sent the 
    message (typically the scheme null string included, 
    hostname, and port of the document, but not its path or 
    fragment identifier). 

    Some examples of valid origin values

    http://foo.example.com
    https://foo.example.com
    //foo.example.com</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64149</commentid>
    <comment_count>1</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2012-02-15 19:39:58 +0000</bug_when>
    <thetext>The scheme can&apos;t be omitted. However, if you want &quot;allow the same origin as myself&quot;, there&apos;s a special value for that, &quot;/&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64152</commentid>
    <comment_count>2</comment_count>
    <who name="Karl Dubost">karl+w3c</who>
    <bug_when>2012-02-15 20:04:17 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; The scheme can&apos;t be omitted. However, if you want &quot;allow the same origin as
&gt; myself&quot;, there&apos;s a special value for that, &quot;/&quot;.

Ah thanks. This could be put in the specification too. 
Though that doesn&apos;t solve the use case I was mentioning. Hmmm too bad, I guess.
Thanks Simon.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>70117</commentid>
    <comment_count>3</comment_count>
    <who name="">contributor</who>
    <bug_when>2012-07-18 06:55:33 +0000</bug_when>
    <thetext>This bug was cloned to create bug 17823 as part of operation convergence.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>76135</commentid>
    <comment_count>4</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2012-10-12 18:11:23 +0000</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 17823 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>