Closed Bug 694769 Opened 14 years ago Closed 14 years ago

Remove nsIScriptContext::GetScriptGlobal in favour of GetGlobalJSObject

Categories

(Core :: DOM: Core & HTML, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla10

People

(Reporter: Ms2ger, Assigned: Ms2ger)

References

Details

Attachments

(1 file, 1 obsolete file)

Attached patch Patch v1 (obsolete) — Splinter Review
No description provided.
Attachment #567285 - Flags: review?(peterv)
Flags: in-testsuite-
Blocks: 694781
Blocks: 694838
Attached patch Patch v1.1Splinter Review
Missed a debug-only one.
Attachment #567285 - Attachment is obsolete: true
Attachment #567285 - Flags: review?(peterv)
Attachment #567334 - Flags: review?(peterv)
Blocks: 695753
Comment on attachment 567334 [details] [diff] [review] Patch v1.1 >+++ b/content/xul/document/src/nsXULDocument.cpp >@@ -3625,24 +3625,18 @@ nsXULDocument::ExecuteScript(nsIScriptCo > { > NS_PRECONDITION(aScriptObject != nsnull && aContext != nsnull, "null ptr"); > if (! aScriptObject || ! aContext) > return NS_ERROR_NULL_POINTER; > > NS_ENSURE_TRUE(mScriptGlobalObject, NS_ERROR_NOT_INITIALIZED); > > // Execute the precompiled script with the given version >- nsresult rv; >- void *global = mScriptGlobalObject->GetScriptGlobal( >- aContext->GetScriptTypeID()); >- rv = aContext->ExecuteScript(aScriptObject, >- global, >- nsnull, nsnull); >- >- return rv; >+ JSObject* global = mScriptGlobalObject->GetGlobalJSObject(); >+ return aContext->ExecuteScript(aScriptObject, global, nsnull, nsnull); Could you add an assertion which checks that aContext->GetScriptTypeID() is JS
Attachment #567334 - Flags: review?(peterv) → review+
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla10
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: