Skip to content

Commit

Permalink
[giow] (2) Allow data: URLs to be given download='' attribute names.
Browse files Browse the repository at this point in the history
Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=21505
Affected topics: HTML

git-svn-id: http://svn.whatwg.org/webapps@7873 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed May 30, 2013
1 parent 63e3104 commit e00922c
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 38 deletions.
24 changes: 12 additions & 12 deletions complete.html
Expand Up @@ -57864,18 +57864,18 @@ <h4 id=downloading-resources><span class=secno>4.12.4 </span>Downloading resourc
then let <var title="">filename</var> have the value specified by
the header, and jump to the step labeled <i>sanitize</i> below. <a href=#refsRFC6266>[RFC6266]</a></li>

<li><p>Let <var title="">resource origin</var> be the
<a href=#origin>origin</a> of the resource being downloaded.</li>

<li><p>Let <var title="">interface origin</var> be the
<a href=#origin>origin</a> of the <code><a href=#document>Document</a></code> in which the <a href=#downloading-hyperlinks title="downloading hyperlinks">download</a> or
<a href=#navigate>navigate</a> action resulting in the download was
initiated, if any.</li>

<li><p>If there is no <var title="">interface origin</var>, then
let <var title="">trusted operation</var> be true. Otherwise, let
<var title="">trusted operation</var> be true if <var title="">resource origin</var> is the <a href=#same-origin>same origin</a> as
<var title="">interface origin</var>, and false otherwise.</li>
<li><p>Let <var title="">interface origin</var> be the <a href=#origin>origin</a> of the
<code><a href=#document>Document</a></code> in which the <a href=#downloading-hyperlinks title="downloading hyperlinks">download</a> or
<a href=#navigate>navigate</a> action resulting in the download was initiated, if any.</li>

<li><p>Let <var title="">resource origin</var> be the <a href=#origin>origin</a> of the URL of the
resource being downloaded, unless that URL's <a href=#concept-url-scheme title=concept-url-scheme>scheme</a>
component is <code title="">data</code>, in which case let <var title="">resource origin</var> be
the same as the <var title="">interface origin</var>, if any.</li>

<li><p>If there is no <var title="">interface origin</var>, then let <var title="">trusted
operation</var> be true. Otherwise, let <var title="">trusted operation</var> be true if <var title="">resource origin</var> is the <a href=#same-origin>same origin</a> as <var title="">interface
origin</var>, and false otherwise.</li>

<li><p>If <var title="">trusted operation</var> is true and the <!-- Content-Disposition: *; filename="" overrides download="" for same-origin -->
resource has a <code title=http-content-disposition>Content-Disposition</code> header
Expand Down
24 changes: 12 additions & 12 deletions index
Expand Up @@ -57864,18 +57864,18 @@ dictionary <dfn id=relatedeventinit>RelatedEventInit</dfn> : <a href=#eventinit>
then let <var title="">filename</var> have the value specified by
the header, and jump to the step labeled <i>sanitize</i> below. <a href=#refsRFC6266>[RFC6266]</a></li>

<li><p>Let <var title="">resource origin</var> be the
<a href=#origin>origin</a> of the resource being downloaded.</li>

<li><p>Let <var title="">interface origin</var> be the
<a href=#origin>origin</a> of the <code><a href=#document>Document</a></code> in which the <a href=#downloading-hyperlinks title="downloading hyperlinks">download</a> or
<a href=#navigate>navigate</a> action resulting in the download was
initiated, if any.</li>

<li><p>If there is no <var title="">interface origin</var>, then
let <var title="">trusted operation</var> be true. Otherwise, let
<var title="">trusted operation</var> be true if <var title="">resource origin</var> is the <a href=#same-origin>same origin</a> as
<var title="">interface origin</var>, and false otherwise.</li>
<li><p>Let <var title="">interface origin</var> be the <a href=#origin>origin</a> of the
<code><a href=#document>Document</a></code> in which the <a href=#downloading-hyperlinks title="downloading hyperlinks">download</a> or
<a href=#navigate>navigate</a> action resulting in the download was initiated, if any.</li>

<li><p>Let <var title="">resource origin</var> be the <a href=#origin>origin</a> of the URL of the
resource being downloaded, unless that URL's <a href=#concept-url-scheme title=concept-url-scheme>scheme</a>
component is <code title="">data</code>, in which case let <var title="">resource origin</var> be
the same as the <var title="">interface origin</var>, if any.</li>

<li><p>If there is no <var title="">interface origin</var>, then let <var title="">trusted
operation</var> be true. Otherwise, let <var title="">trusted operation</var> be true if <var title="">resource origin</var> is the <a href=#same-origin>same origin</a> as <var title="">interface
origin</var>, and false otherwise.</li>

<li><p>If <var title="">trusted operation</var> is true and the <!-- Content-Disposition: *; filename="" overrides download="" for same-origin -->
resource has a <code title=http-content-disposition>Content-Disposition</code> header
Expand Down
27 changes: 13 additions & 14 deletions source
Expand Up @@ -64290,20 +64290,19 @@ dictionary <dfn>RelatedEventInit</dfn> : <span>EventInit</span> {
the header, and jump to the step labeled <i>sanitize</i> below. <a
href="#refsRFC6266">[RFC6266]</a></p></li>

<li><p>Let <var title="">resource origin</var> be the
<span>origin</span> of the resource being downloaded.</p></li>

<li><p>Let <var title="">interface origin</var> be the
<span>origin</span> of the <code>Document</code> in which the <span
title="downloading hyperlinks">download</span> or
<span>navigate</span> action resulting in the download was
initiated, if any.</p></li>

<li><p>If there is no <var title="">interface origin</var>, then
let <var title="">trusted operation</var> be true. Otherwise, let
<var title="">trusted operation</var> be true if <var
title="">resource origin</var> is the <span>same origin</span> as
<var title="">interface origin</var>, and false otherwise.</p></li>
<li><p>Let <var title="">interface origin</var> be the <span>origin</span> of the
<code>Document</code> in which the <span title="downloading hyperlinks">download</span> or
<span>navigate</span> action resulting in the download was initiated, if any.</p></li>

<li><p>Let <var title="">resource origin</var> be the <span>origin</span> of the URL of the
resource being downloaded, unless that URL's <span title="concept-url-scheme">scheme</span>
component is <code title="">data</code>, in which case let <var title="">resource origin</var> be
the same as the <var title="">interface origin</var>, if any.</p></li>

<li><p>If there is no <var title="">interface origin</var>, then let <var title="">trusted
operation</var> be true. Otherwise, let <var title="">trusted operation</var> be true if <var
title="">resource origin</var> is the <span>same origin</span> as <var title="">interface
origin</var>, and false otherwise.</p></li>

<li><p>If <var title="">trusted operation</var> is true and the <!-- Content-Disposition: *; filename="" overrides download="" for same-origin -->
resource has a <code
Expand Down

0 comments on commit e00922c

Please sign in to comment.