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:
@@ -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");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user