<?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>28339</bug_id>
          
          <creation_ts>2015-03-26 09:02:01 +0000</creation_ts>
          <short_desc>&lt;meta refresh&gt; Specify Refresh HTTP header</short_desc>
          <delta_ts>2017-08-09 09:48:40 +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>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>MOVED</resolution>
          
          
          <bug_file_loc>https://html.spec.whatwg.org/#attr-meta-http-equiv-refresh</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Unsorted</target_milestone>
          
          <blocked>28563</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter>contributor</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>annevk</cc>
    
    <cc>d</cc>
    
    <cc>ian</cc>
    
    <cc>karl+w3c</cc>
    
    <cc>mike</cc>
    
    <cc>tyoshino</cc>
    
    <cc>zcorpan</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>118947</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2015-03-26 09:02:01 +0000</bug_when>
    <thetext>Specification: https://html.spec.whatwg.org/multipage/semantics.html
Multipage: https://html.spec.whatwg.org/multipage/#attr-meta-http-equiv-refresh
Complete: https://html.spec.whatwg.org/#attr-meta-http-equiv-refresh
Referrer: https://html.spec.whatwg.org/multipage/

Comment:
&lt;meta refresh&gt; Specify Refresh HTTP header
Browsers support it, some Web content uses it. (36 pages in webdevdata have
Refresh header but no &lt;meta refresh&gt;)

Posted from: 90.230.218.37 by simonp@opera.com
User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.50 Safari/537.36 OPR/29.0.1795.26 (Edition beta)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>119104</commentid>
    <comment_count>1</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2015-03-30 23:20:46 +0000</bug_when>
    <thetext>What&apos;s this got to do with HTML? Isn&apos;t this an HTTP bug?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>119161</commentid>
    <comment_count>2</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2015-03-31 22:27:33 +0000</bug_when>
    <thetext>I don&apos;t know, it seems to me that navigating browsing contexts is HTML material.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>119326</commentid>
    <comment_count>3</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2015-04-07 22:35:01 +0000</bug_when>
    <thetext>Yeah, we can add this to HTML. I&apos;ll add it to my list.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>124921</commentid>
    <comment_count>4</comment_count>
    <who name="Karl Dubost">karl+w3c</who>
    <bug_when>2016-02-08 23:41:59 +0000</bug_when>
    <thetext>See Also https://github.com/httpwg/http-extensions/issues/138
with some data for the patterns found on the Web and a couple of tests.
http://www.otsukare.info/2015/03/26/refresh-http-header</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>128779</commentid>
    <comment_count>5</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2017-07-24 13:20:50 +0000</bug_when>
    <thetext>This is what I have thus far:

* Most of the algorithm at https://html.spec.whatwg.org/#attr-meta-http-equiv-refresh can be abstracted into a standalone algorithm (step 5 and onward looks like).
* That new algorithm basically takes a string and a document. Though we&apos;ll also need to account somehow for the meta element insertion time if that&apos;s later than the document is created. Easiest would be to just pass in the meta element and null if it&apos;s from a header. And if it&apos;s null we don&apos;t apply the sandboxing as per bug 28563.
* When navigation has created a document, we check if there&apos;s a Refresh header and then if there is decode the value of that header with &quot;original ISO-8859-1&quot; (map each byte to a code point that has the same value). Then pass that code point sequence and the created document to the new standalone algorithm.
* Basic tests: https://github.com/w3c/web-platform-tests/pull/6606

The algorithm should probably also queue a task and navigate from that task. You can&apos;t really navigate out of thin air as it tries to do now.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>128785</commentid>
    <comment_count>6</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2017-07-25 09:22:52 +0000</bug_when>
    <thetext>Other things to take into account:

* Multiple Refresh headers
* Conflicts between headers and elements (probably a single flag on Document objects would do, need to test)
* https://github.com/whatwg/html/pull/2865</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>128821</commentid>
    <comment_count>7</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2017-08-03 13:01:40 +0000</bug_when>
    <thetext>It seems the processing model for multiple Refresh headers is that the values get combined (comma-separated, etc.). It&apos;s not clear to me this is good (Firefox doesn&apos;t do it for Location): https://bugzilla.mozilla.org/show_bug.cgi?id=1387032.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>128822</commentid>
    <comment_count>8</comment_count>
    <who name="Domenic Denicola">d</who>
    <bug_when>2017-08-03 15:55:40 +0000</bug_when>
    <thetext>+tyoshino to see if we can get any Chrome network team thoughts on comment #7.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>128823</commentid>
    <comment_count>9</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2017-08-09 09:48:40 +0000</bug_when>
    <thetext>Defining Refresh in general:

  https://github.com/whatwg/html/pull/2892

Multiple headers:

  https://github.com/whatwg/html/issues/2900</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>