<?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>17823</bug_id>
          
          <creation_ts>2012-07-18 06:55:30 +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>WHATWG</product>
          <component>HTML</component>
          <version>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Unsorted</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>contributor</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>ian</cc>
    
    <cc>karl+w3c</cc>
    
    <cc>mike</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>70116</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2012-07-18 06:55:30 +0000</bug_when>
    <thetext>This was was cloned from bug 15994 as part of operation convergence.
Originally filed: 2012-02-15 19:26:00 +0000
Original reporter: Karl Dubost &lt;karl+w3c@la-grange.net&gt;

================================================================================
 #0   Karl Dubost                                     2012-02-15 19:26:39 +0000 
--------------------------------------------------------------------------------
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
================================================================================
 #1   Simon Pieters                                   2012-02-15 19:39:58 +0000 
--------------------------------------------------------------------------------
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;.
================================================================================
 #2   Karl Dubost                                     2012-02-15 20:04:17 +0000 
--------------------------------------------------------------------------------
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>76136</commentid>
    <comment_count>1</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2012-10-12 18:11:23 +0000</bug_when>
    <thetext>*** Bug 15994 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>