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

This commit is contained in:
peterv@propagandism.org 2008-01-08 10:41:08 -08:00
Родитель f587d050b9
Коммит fd1ccbd30d
1 изменённых файлов: 5 добавлений и 0 удалений

Просмотреть файл

@ -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");