mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 990090 - Add a version of AutoJSAPIWithErrorsReportedToWindow that takes an nsIGlobalObject. r=bz
This commit is contained in:
parent
7c36941f2b
commit
efcf015b2b
@ -237,6 +237,11 @@ AutoJSAPIWithErrorsReportedToWindow::AutoJSAPIWithErrorsReportedToWindow(nsIScri
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
AutoJSAPIWithErrorsReportedToWindow::AutoJSAPIWithErrorsReportedToWindow(nsIGlobalObject* aGlobalObject)
|
||||||
|
: AutoJSAPI(FindJSContext(aGlobalObject), /* aIsMainThread = */ true)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
AutoEntryScript::AutoEntryScript(nsIGlobalObject* aGlobalObject,
|
AutoEntryScript::AutoEntryScript(nsIGlobalObject* aGlobalObject,
|
||||||
bool aIsMainThread,
|
bool aIsMainThread,
|
||||||
JSContext* aCx)
|
JSContext* aCx)
|
||||||
|
@ -158,6 +158,8 @@ private:
|
|||||||
class AutoJSAPIWithErrorsReportedToWindow : public AutoJSAPI {
|
class AutoJSAPIWithErrorsReportedToWindow : public AutoJSAPI {
|
||||||
public:
|
public:
|
||||||
AutoJSAPIWithErrorsReportedToWindow(nsIScriptContext* aScx);
|
AutoJSAPIWithErrorsReportedToWindow(nsIScriptContext* aScx);
|
||||||
|
// Equivalent to AutoJSAPI if aGlobal is not a Window.
|
||||||
|
AutoJSAPIWithErrorsReportedToWindow(nsIGlobalObject* aGlobalObject);
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user