Namespace Pot.XPCOM
Defined in: <potlite.js>.
Constructor Attributes | Constructor Name and Description |
---|---|
XPCOM utilities.
|
Method Attributes | Method Name and Description |
---|---|
<static> |
Pot.XPCOM.evalInSandbox(code, url)
Evaluate JavaScript code in the sandbox.
|
<static> |
Pot.XPCOM.getChromeWindow(uri)
Get the specific XUL Window.
|
<static> |
Pot.XPCOM.getMostRecentWindow()
Get a browser window that was active last.
|
<static> |
Pot.XPCOM.throughout(cond)
Wait until condition is true on the thread in non-blocking.
|
Method Detail
<static>
{Function}
Pot.XPCOM.evalInSandbox(code, url)
Evaluate JavaScript code in the sandbox.
- Parameters:
- {String} code
- The expression.
- {String} url
- The sandbox URL.
- Returns:
- {*} Return the result of expression.
<static>
{Function}
Pot.XPCOM.getChromeWindow(uri)
Get the specific XUL Window.
- Parameters:
- {String} uri
- The target URI to get. Will be the browser window if omitted.
- Returns:
- {Object} XULWindow.
<static>
{Function}
Pot.XPCOM.getMostRecentWindow()
Get a browser window that was active last.
- Returns:
- {Window} Return the browser window.
<static>
{Function}
Pot.XPCOM.throughout(cond)
Wait until condition is true on the thread in non-blocking.
If true returned, waiting state will end.
- Parameters:
- {Function|*} cond
- A function or value as condition.