<?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>27875</bug_id>
          
          <creation_ts>2015-01-21 15:11:07 +0000</creation_ts>
          <short_desc>Abstract the parts of window.open that deal with about:blank</short_desc>
          <delta_ts>2017-07-21 10:43:34 +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>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Unsorted</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jake Archibald">jaffathecake</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>annevk</cc>
    
    <cc>mike</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>117392</commentid>
    <comment_count>0</comment_count>
    <who name="Jake Archibald">jaffathecake</who>
    <bug_when>2015-01-21 15:11:07 +0000</bug_when>
    <thetext>Within a ServiceWorker&apos;s global scope, there&apos;s clients.openWindow(url) which returns a promise indicating success/failure.

This allows a ServiceWorker to open a window in reaction to particular interaction events, of which is currently only notificationclick.

Currently I&apos;m having to duplicate step 12 of https://html.spec.whatwg.org/multipage/browsers.html#dom-open, can this be abstracted out to avoid duplication?

The ServiceWorker can open pages from any origin (although it may not control the loading of it), so opening &quot;about:blank&quot; is allowed unless we specifically disallow it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>122954</commentid>
    <comment_count>1</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2015-09-01 08:56:02 +0000</bug_when>
    <thetext>Jake, if you could, a PR with some additional context would be appreciated.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>128746</commentid>
    <comment_count>2</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2017-07-21 10:43:34 +0000</bug_when>
    <thetext>Closing per IRC discussion. Jake will create a PR when the need comes up.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>