aboutsummaryrefslogtreecommitdiff
path: root/files/ja/mozilla/add-ons/webextensions/api/downloads/download/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'files/ja/mozilla/add-ons/webextensions/api/downloads/download/index.html')
-rw-r--r--files/ja/mozilla/add-ons/webextensions/api/downloads/download/index.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/files/ja/mozilla/add-ons/webextensions/api/downloads/download/index.html b/files/ja/mozilla/add-ons/webextensions/api/downloads/download/index.html
index 8616ce3585..b9f5bdb3e2 100644
--- a/files/ja/mozilla/add-ons/webextensions/api/downloads/download/index.html
+++ b/files/ja/mozilla/add-ons/webextensions/api/downloads/download/index.html
@@ -12,7 +12,7 @@ translation_of: Mozilla/Add-ons/WebExtensions/API/downloads/download
<li><code>filename</code> と <code>saveAs</code> が指定されている場合、指定された<code>filename</code>が設定された[名前をつけて保存]のダイアログが開きます。</li>
</ul>
-<p>この関数は非同期に実行され、<code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise">Promise</a></code>を返します。</p>
+<p>この関数は非同期に実行され、<code><a href="/ja/docs/Web/JavaScript/Reference/Global_Objects/Promise">Promise</a></code>を返します。</p>
<h2 id="構文">構文</h2>
@@ -35,7 +35,7 @@ translation_of: Mozilla/Add-ons/WebExtensions/API/downloads/download
<dt><code>filename</code>{{optional_inline}}</dt>
<dd>A <code>string</code> representing a file path relative to the default downloads directory — this provides the location where you want the file to be saved, and what filename you want to use. Absolute paths, empty paths, and paths containing back-references (<code>../</code>) will cause an error. If omitted, this value will default to the filename already given to the download file, and a location immediately inside the downloads directory.</dd>
<dt><code>headers</code>{{optional_inline}}</dt>
- <dd>An <code>array</code> of <code>objects</code> representing extra HTTP headers to send with the request if the URL uses the HTTP[s] protocol. Each header is represented as a dictionary object containing the keys <code>name</code> and either <code>value</code> or <code>binaryValue</code>, restricted to those allowed by <code><a href="/en-US/docs/Web/API/XMLHttpRequest">XMLHttpRequest</a></code>.</dd>
+ <dd>An <code>array</code> of <code>objects</code> representing extra HTTP headers to send with the request if the URL uses the HTTP[s] protocol. Each header is represented as a dictionary object containing the keys <code>name</code> and either <code>value</code> or <code>binaryValue</code>, restricted to those allowed by <code><a href="/ja/docs/Web/API/XMLHttpRequest">XMLHttpRequest</a></code>.</dd>
<dt><code>incognito</code>{{optional_inline}}</dt>
<dd>A <code>boolean</code>: if present and set to true, then associate this download with a private browsing session. This means that it will only appear in the download manager for any private windows that are currently open.</dd>
<dt><code>method</code>{{optional_inline}}</dt>
@@ -54,7 +54,7 @@ translation_of: Mozilla/Add-ons/WebExtensions/API/downloads/download
<h3 id="戻り値">戻り値</h3>
-<p><code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise">Promise</a></code>が返却されます。ダウンロードが成功した場合、new {{WebExtAPIRef("downloads.DownloadItem")}}のidが格納されたpromiseを受け取ります。対して、promiseがrejectされた場合は、エラーメッセージを受け取ります。</p>
+<p><code><a href="/ja/docs/Web/JavaScript/Reference/Global_Objects/Promise">Promise</a></code>が返却されます。ダウンロードが成功した場合、new {{WebExtAPIRef("downloads.DownloadItem")}}のidが格納されたpromiseを受け取ります。対して、promiseがrejectされた場合は、エラーメッセージを受け取ります。</p>
<h2 id="ブラウザ実装状況">ブラウザ実装状況</h2>