<?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>28801</bug_id>
          
          <creation_ts>2015-06-12 07:22:29 +0000</creation_ts>
          <short_desc>Define self.origin. Documents and workers should have a reliable way to get the origin of the global. See https://bugzilla.mozilla.org/show_bug.cgi?id=931884#c12 for some background.</short_desc>
          <delta_ts>2016-03-28 15:31:56 +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>MOVED</resolution>
          
          
          <bug_file_loc>https://html.spec.whatwg.org/#environment-settings-object</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>annevk</cc>
    
    <cc>bzbarsky</cc>
    
    <cc>d</cc>
    
    <cc>mike</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>120923</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2015-06-12 07:22:29 +0000</bug_when>
    <thetext>Specification: https://html.spec.whatwg.org/multipage/webappapis.html
Multipage: https://html.spec.whatwg.org/multipage/#environment-settings-object
Complete: https://html.spec.whatwg.org/#environment-settings-object
Referrer: https://html.spec.whatwg.org/multipage/

Comment:
Define self.origin. Documents and workers should have a reliable way to get
the origin of the global. See
https://bugzilla.mozilla.org/show_bug.cgi?id=931884#c12 for some background.

Posted from: 195.12.41.182 by annevk@annevk.nl
User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:41.0) Gecko/20100101 Firefox/41.0</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>122910</commentid>
    <comment_count>1</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2015-08-31 07:22:22 +0000</bug_when>
    <thetext>*** Bug 27497 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>125648</commentid>
    <comment_count>2</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2016-03-28 14:13:09 +0000</bug_when>
    <thetext>Domenic, what do you think about putting members of WindowBase64, WindowTimers, and ImageBitmapFactories, all on a new Global mixin introduced somewhere in section 8. Maybe as a &lt;h3&gt; before base64.

That mixin can then be used to define fetch() and other fetch()-like features, such as the origin feature described here.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>125649</commentid>
    <comment_count>3</comment_count>
    <who name="Domenic Denicola">d</who>
    <bug_when>2016-03-28 14:19:17 +0000</bug_when>
    <thetext>That sounds pretty good. I think `GlobalUtils` might be a good name; just `Global` is a bit confusing IMO (but no big deal).

So all those sections would be converted to use `partial interface GlobalUtils {`, and the `implements` would be in the definition of `GlobalUtils`? Seems nice. Console Spec could also use this.

It&apos;s worth noting that Houdini worklets are planning to offer a more restricted type of global that doesn&apos;t have timers, base64, or ImageBitmap stuff---just console. https://drafts.css-houdini.org/worklets/#workletglobalscope</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>125650</commentid>
    <comment_count>4</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2016-03-28 14:24:52 +0000</bug_when>
    <thetext>I think I&apos;ll avoid partial and just list the members directly (probably separated by a newline for those defined in different sections) given our issues with partial and html-build.

We could also name this WindowWorkerUtils if we want to avoid giving the impression it&apos;s for all globals.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>125652</commentid>
    <comment_count>5</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2016-03-28 15:31:56 +0000</bug_when>
    <thetext>https://github.com/whatwg/html/pull/951</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>