Fix for bug 407053 ("Assertion failure: (cx)->requestDepth || (cx)->thread == (cx)->runtime->gcThread" with document.execCommand('copy', ...)). r/sr=jst, a=sicking.

git-svn-id: svn://10.0.0.236/trunk@242639 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
peterv%propagandism.org
2008-01-08 18:41:08 +00:00
parent cfd627a593
commit 6af1cd8484

View File

@@ -4332,6 +4332,11 @@ nsHTMLDocument::DoClipboardSecurityCheck(PRBool aPaste)
if (stack) {
JSContext *cx = nsnull;
stack->Peek(&cx);
if (!cx) {
return NS_OK;
}
JSAutoRequest ar(cx);
NS_NAMED_LITERAL_CSTRING(classNameStr, "Clipboard");