Compare Revisions

NativeWindow

Change Revisions

Revision 545917:

Revision 545917 by leibovic on

Revision 545919:

Revision 545919 by leibovic on

Title:
NativeWindow
NativeWindow
Slug:
Mozilla/Add-ons/Firefox_for_Android/API/NativeWindow
Mozilla/Add-ons/Firefox_for_Android/API/NativeWindow
Content:

Revision 545917
Revision 545919
n18  if (!window)n
19    return;
tt20</pre>
21    <p>
22      You can also access the chrome window using <code>nsIWindow
 >Mediator</code>:
23    </p>
24    <pre class="brush: js">
25let window = Services.wm.getMostRecentWindow("navigator:browser")
 >;
26window.NativeWindow.toast.show("I'm starting!", "short");

Back to History