<rdar://problem/
3929187> WebKit needs to restrict access to certain window operations by domain
* khtml/ecma/kjs_window.cpp:
(Window::get): Change most window functions to be restricted by
XSS domain check.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@8272
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2004-12-21 Maciej Stachowiak <mjs@apple.com>
+
+ Reviewed by John.
+
+ <rdar://problem/3929187> WebKit needs to restrict access to certain window operations by domain
+
+ * khtml/ecma/kjs_window.cpp:
+ (Window::get): Change most window functions to be restricted by
+ XSS domain check.
+
2004-12-21 Ken Kocienda <kocienda@apple.com>
Reviewed by John
return Value(new XMLHttpRequestConstructorImp(exec, m_part->document()));
case XMLSerializer:
return Value(new XMLSerializerConstructorImp(exec));
+ case Focus:
+ case Blur:
+ case Close:
+ return lookupOrCreateFunction<WindowFunc>(exec,p,this,entry->value,entry->params,entry->attr);
case Alert:
case Confirm:
case Prompt:
#if APPLE_CHANGES
case Print:
#endif
- case Focus:
- case Blur:
- case Close:
case Scroll: // compatibility
case ScrollBy:
case ScrollTo:
case MoveTo:
case ResizeBy:
case ResizeTo:
- return lookupOrCreateFunction<WindowFunc>(exec,p,this,entry->value,entry->params,entry->attr);
case CaptureEvents:
case ReleaseEvents:
case AddEventListener: