зеркало из https://github.com/mozilla/gecko-dev.git
Bug 990090 - Add a version of AutoJSAPIWithErrorsReportedToWindow that takes an nsIGlobalObject. r=bz
This commit is contained in:
Родитель
6cb52a21db
Коммит
2e76633b8f
|
@ -237,6 +237,11 @@ AutoJSAPIWithErrorsReportedToWindow::AutoJSAPIWithErrorsReportedToWindow(nsIScri
|
|||
{
|
||||
}
|
||||
|
||||
AutoJSAPIWithErrorsReportedToWindow::AutoJSAPIWithErrorsReportedToWindow(nsIGlobalObject* aGlobalObject)
|
||||
: AutoJSAPI(FindJSContext(aGlobalObject), /* aIsMainThread = */ true)
|
||||
{
|
||||
}
|
||||
|
||||
AutoEntryScript::AutoEntryScript(nsIGlobalObject* aGlobalObject,
|
||||
bool aIsMainThread,
|
||||
JSContext* aCx)
|
||||
|
|
|
@ -158,6 +158,8 @@ private:
|
|||
class AutoJSAPIWithErrorsReportedToWindow : public AutoJSAPI {
|
||||
public:
|
||||
AutoJSAPIWithErrorsReportedToWindow(nsIScriptContext* aScx);
|
||||
// Equivalent to AutoJSAPI if aGlobal is not a Window.
|
||||
AutoJSAPIWithErrorsReportedToWindow(nsIGlobalObject* aGlobalObject);
|
||||
};
|
||||
|
||||
/*
|
||||
|
|
Загрузка…
Ссылка в новой задаче