Reviewed by Ken.
[WebKit-https.git] / WebCore / khtml / ecma / kjs_window.cpp
index 406c9ebfcaf7a8110f2c86b6f6621b6579e746e5..be79603659ff7c7ce6e532f5f6cac2e9aa63e636 100644 (file)
@@ -1602,7 +1602,7 @@ Value WindowFunc::tryCall(ExecState *exec, Object &thisObj, const List &args)
         }
 #if APPLE_CHANGES
         if (!url.isEmpty()) {
-          const Window* window = Window::retrieveWindow(part);
+          const Window* window = Window::retrieveWindow(khtmlpart);
           if (!url.url().startsWith("javascript:", false) || (window && window->isSafeScript(exec))) {
             bool userGesture = static_cast<ScriptInterpreter *>(exec->dynamicInterpreter())->wasRunByUserGesture();
             // FIXME: Need to pass referrer here.