mozilla

Compare Revisions

Downloads.jsm

Change Revisions

Revision 416873:

Revision 416873 by P.A. on

Revision 419017:

Revision 419017 by P.A. on

Title:
Downloads.jsm
Downloads.jsm
Slug:
Mozilla/JavaScript_code_modules/Downloads.jsm
Mozilla/JavaScript_code_modules/Downloads.jsm
Content:

Revision 416873
Revision 419017
nn41          </td>
42        </tr>
43        <tr>
44          <td>
45            <code><a href="https://developer.mozilla.org/en-US/do
 >cs/Mozilla/JavaScript_code_modules/Promise.jsm/Promise" title="/e
 >n-US/docs/Mozilla/JavaScript_code_modules/Promise.jsm/Promise">Pr
 >omise</a>&lt;<a href="/en-US/docs/Mozilla/JavaScript_code_modules
 >/Downloads.jsm/DownloadList" title="/en-US/docs/Mozilla/JavaScrip
 >t_code_modules/Downloads.jsm/DownloadList">DownloadList</a>&gt; <
 >a href="#getPublicDownloadList()">getPublicDownloadList</a>();</c
 >ode>
46          </td>
47        </tr>
48        <tr>
49          <td>
50            <code><a href="https://developer.mozilla.org/en-US/do
 >cs/Mozilla/JavaScript_code_modules/Promise.jsm/Promise" title="/e
 >n-US/docs/Mozilla/JavaScript_code_modules/Promise.jsm/Promise">Pr
 >omise</a>&lt;</code><a href="/en-US/docs/Mozilla/JavaScript_code_
 >modules/Downloads.jsm/DownloadList" title="/en-US/docs/Mozilla/Ja
 >vaScript_code_modules/Downloads.jsm/DownloadList"><code>DownloadL
 >ist</code></a><code>&gt; <a href="#getPrivateDownloadList()">getP
 >rivateDownloadList</a>();</code>
tt158    </p>
159    <h3 id="getPublicDownloadList()">
160      getPublicDownloadList()
161    </h3>
162    <p>
163      Retrieves the <a href="/en-US/docs/Mozilla/JavaScript_code_
 >modules/Downloads.jsm/DownloadList" title="/en-US/docs/Mozilla/Ja
 >vaScript_code_modules/Downloads.jsm/DownloadList"><code>DownloadL
 >ist</code></a> object for downloads that were not started from a 
 >private browsing window.
164    </p>
165    <p>
166      Calling this function may cause the download list to be rel
 >oaded from the previous session, if it wasn't loaded already.
167    </p>
168    <p>
169      This method always retrieves a reference to the same downlo
 >ad list.
170    </p>
171    <pre>
172Promise&lt;DownloadList&gt; getPublicDownloadList();
173</pre>
174    <h6 id="Parameters">
175      Parameters
176    </h6>
177    <p>
178      None.
179    </p>
180    <h6 id="Promise_resolves_to">
181      Promise resolves to
182    </h6>
183    <p>
184      The <a href="/en-US/docs/Mozilla/JavaScript_code_modules/Do
 >wnloads.jsm/DownloadList" title="/en-US/docs/Mozilla/JavaScript_c
 >ode_modules/Downloads.jsm/DownloadList"><code>DownloadList</code>
 ></a> object for public downloads.
185    </p>
186    <h3 id="getPrivateDownloadList()">
187      getPrivateDownloadList()
188    </h3>
189    <p>
190      Retrieves the <a href="/en-US/docs/Mozilla/JavaScript_code_
 >modules/Downloads.jsm/DownloadList" title="/en-US/docs/Mozilla/Ja
 >vaScript_code_modules/Downloads.jsm/DownloadList"><code>DownloadL
 >ist</code></a> object for downloads that were started from a priv
 >ate browsing window.
191    </p>
192    <p>
193      This method always retrieves a reference to the same downlo
 >ad list.
194    </p>
195    <pre>
196Promise&lt;DownloadList&gt; getPrivateDownloadList();
197</pre>
198    <h6 id="Parameters">
199      Parameters
200    </h6>
201    <p>
202      None.
203    </p>
204    <h6 id="Promise_resolves_to">
205      Promise resolves to
206    </h6>
207    <p>
208      The <a href="/en-US/docs/Mozilla/JavaScript_code_modules/Do
 >wnloads.jsm/DownloadList" title="/en-US/docs/Mozilla/JavaScript_c
 >ode_modules/Downloads.jsm/DownloadList"><code>DownloadList</code>
 ></a> object for private downloads.

Back to History