<?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>28563</bug_id>
          
          <creation_ts>2015-04-27 07:40:12 +0000</creation_ts>
          <short_desc>As in most cases the http-equiv meta tags are equivalent to their corresponding HTTP header, would i [...]</short_desc>
          <delta_ts>2017-08-09 09:49:46 +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>
          <dependson>28339</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter>contributor</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>annevk</cc>
    
    <cc>bobowencode</cc>
    
    <cc>bzbarsky</cc>
    
    <cc>ian</cc>
    
    <cc>mike</cc>
    
    <cc>zcorpan</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>119924</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2015-04-27 07:40:12 +0000</bug_when>
    <thetext>Specification: https://html.spec.whatwg.org/
Multipage: https://html.spec.whatwg.org/multipage/#attr-meta-http-equiv-refresh
Complete: https://html.spec.whatwg.org/#attr-meta-http-equiv-refresh
Referrer: 

Comment:
As in most cases the http-equiv meta tags are equivalent to their
corresponding HTTP header, would it be worth mentioning in step 24 that the
automatic features sandbox should not affect the corresponding Refresh HTTP
header.

I&apos;m assuming that is what is intended and certainly blink allows the header
when sandboxed.
Either way it would be useful to make it clear.

I am currently implementing the same behaviour as blink for gecko.

Thanks,
Bob Owen

Posted from: 80.189.213.41
User agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:40.0) Gecko/20100101 Firefox/40.0</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>120104</commentid>
    <comment_count>1</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2015-05-05 21:35:42 +0000</bug_when>
    <thetext>I presume whether it affects the header or not should be up to whatever spec defines the header. Which spec defines the header?

Why would we not want the header to work the same way? Presumably any reason that applies to the &lt;meta&gt; element applies to the header too, no?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>120133</commentid>
    <comment_count>2</comment_count>
    <who name="Bob Owen">bobowencode</who>
    <bug_when>2015-05-06 09:05:00 +0000</bug_when>
    <thetext>Copying in Boris, as he was involved in a brief discussion that we had about this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>120135</commentid>
    <comment_count>3</comment_count>
    <who name="Boris Zbarsky">bzbarsky</who>
    <bug_when>2015-05-06 15:33:14 +0000</bug_when>
    <thetext>&gt; Which spec defines the header?

There is no spec defining the refresh header that I know of.  Netscape made it up and no one ever standardized it.

&gt; Why would we not want the header to work the same way?

That depends on what our goals are, I guess.  If we&apos;re sandboxing source we don&apos;t fully trust that we put on our server, then there is a fundamental difference between &lt;meta http-equiv=&quot;refresh&quot;&gt; and the refresh HTTP header: the former is under the control of the untrusted source, while the latter is under our control.

If, on the other hand, we&apos;re sandboxing some URI loaded from some other server, then it makes sense to me to disallow the HTTP header too...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>120137</commentid>
    <comment_count>4</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2015-05-06 16:02:20 +0000</bug_when>
    <thetext>Makes sense. In any case, the answer is someone should write a spec for it.

I&apos;m happy to add a note to the HTML spec saying that there&apos;s no HTTP header of this name defined, but that if there was, one should not assume it acts like the pragma.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>128824</commentid>
    <comment_count>5</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2017-08-09 09:49:46 +0000</bug_when>
    <thetext>Per the current PR for this the Refresh works in combination with sandboxing since that&apos;s what Chrome already did:

  https://github.com/whatwg/html/pull/2892</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>