- 03 May, 2008 5 commits
-
-
weinig@apple.com authored
Real build fix. * WebCore.xcodeproj/project.pbxproj: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@32847 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
weinig@apple.com authored
Build fix. * bindings/js/kjs_events.cpp: (WebCore::JSAbstractEventListener::handleEvent): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@32846 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
weinig@apple.com authored
Reviewed by Dan Bernstein. Add tests that show our behavior when using closures from a global object whose frame has been navigated. Related to https://bugs.webkit.org/show_bug.cgi?id=17249. * fast/dom/Window/closure-access-after-navigation-iframe-expected.txt: Added. * fast/dom/Window/closure-access-after-navigation-iframe.html: Added. * fast/dom/Window/closure-access-after-navigation-window-expected.txt: Added. * fast/dom/Window/closure-access-after-navigation-window.html: Added. * fast/dom/Window/dom-access-from-closure-iframe-expected.txt: Added. * fast/dom/Window/dom-access-from-closure-iframe.html: Added. * fast/dom/Window/dom-access-from-closure-window-expected.txt: Added. * fast/dom/Window/dom-access-from-closure-window.html: Added. * fast/dom/Window/resources/closure-access-after-navigation-iframe-child-1.html: Added. * fast/dom/Window/resources/closure-access-after-navigation-iframe-child-2.html: Added. * fast/dom/Window/resources/closure-access-after-navigation-window-child-1.html: Added. * fast/dom/Window/resources/closure-access-after-navigation-window-child-2.html: Added. * fast/dom/Window/resources/dom-access-from-closure-iframe-child.html: Added. * fast/dom/Window/resources/dom-access-from-closure-window-child.html: Added. * fast/dom/Window/resources/notify-opener-done.html: Added. * fast/dom/Window/resources/notify-parent-done.html: Added. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@32845 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
weinig@apple.com authored
Rubber-stamped by Geoffrey Garen. Rename JSDOMWindowWrapper to JSDOMWindowShell. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@32844 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
rwlbuis@webkit.org authored
https://bugs.webkit.org/show_bug.cgi?id=18568 background: currentColor fails Implement currentColor from CSS3 color module. Tests: fast/css/background-currentcolor.html git-svn-id: http://svn.webkit.org/repository/webkit/trunk@32836 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 02 May, 2008 25 commits
-
-
andersca@apple.com authored
2008-05-02 Anders Carlsson <andersca@apple.com> Reviewed by Mark. Turns out calling locationInWindow on keyboard events will not throw an exception, but the point returned is completely bogus, so remove coordinates from the keyboard event struct. * bridge/npapi.h: (_NPCocoaEvent::): WebKit/mac: 2008-05-02 Anders Carlsson <andersca@apple.com> Reviewed by Mark. Various Cocoa event model and 64-bit plug-in fixes. * Plugins/WebNetscapePluginEventHandlerCocoa.mm: (WebNetscapePluginEventHandlerCocoa::sendMouseEvent): Set click count. (WebNetscapePluginEventHandlerCocoa::flagsChanged): (WebNetscapePluginEventHandlerCocoa::sendKeyEvent): Don't try to get the mouse location for keyboard events. * Plugins/WebPluginPackage.m: (-[WebPluginPackage initWithPath:]): Preflight the bundle so we won't show 32-bit WebKit plug-ins when running as 64-bit. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@32830 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
andersca@apple.com authored
Reviewed by Mark. Add an "x86_64" make rule. * Makefile.shared: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@32829 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
alp@webkit.org authored
Reviewed by Alp Toker. http://bugs.webkit.org/show_bug.cgi?id=18856 [GTK] variable initialization missing Not initializing the m_needsXEmbed variable could have very funny results. Most often those results would be crashes. * plugins/PluginView.cpp: (WebCore::PluginView::PluginView): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@32828 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
alp@webkit.org authored
Reviewed by Eric. https://bugs.webkit.org/show_bug.cgi?id=18811 Enable dashboard and offline web apps in autotools git-svn-id: http://svn.webkit.org/repository/webkit/trunk@32827 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
ap@webkit.org authored
Get rid of static data in nodes.cpp (well, at least of non-debug one). No measurable change on SunSpider. * kjs/InitializeThreading.cpp: (KJS::initializeThreadingOnce): * kjs/nodes.cpp: (KJS::newTrackedObjects): (KJS::trackedObjectExtraRefCounts): (KJS::initializeNodesThreading): (KJS::ParserRefCounted::ParserRefCounted): (KJS::ParserRefCounted::ref): (KJS::ParserRefCounted::deref): (KJS::ParserRefCounted::refcount): (KJS::ParserRefCounted::deleteNewObjects): * kjs/nodes.h: Made newTrackedObjects and trackedObjectExtraRefCounts per-thread. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@32822 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
andersca@apple.com authored
2008-05-02 Anders Carlsson <andersca@apple.com> Reviewed by Sam. Name the event union so it will work in plain C. * bridge/npapi.h: (_NPCocoaEvent::): WebKit/mac: 2008-05-02 Anders Carlsson <andersca@apple.com> Reviewed by Sam. The event union is now named. * Plugins/WebNetscapePluginEventHandlerCocoa.mm: (WebNetscapePluginEventHandlerCocoa::drawRect): (WebNetscapePluginEventHandlerCocoa::sendMouseEvent): (WebNetscapePluginEventHandlerCocoa::flagsChanged): (WebNetscapePluginEventHandlerCocoa::sendKeyEvent): (WebNetscapePluginEventHandlerCocoa::windowFocusChanged): (WebNetscapePluginEventHandlerCocoa::focusChanged): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@32821 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
andersca@apple.com authored
Reviewed by Mark. Make sure that 32-bit only plug-ins aren't shown when running as 64-bit. Call preflightAndReturnError on the bundle, which will check if any of the architectures in the bundle match the current architecture. * Plugins/WebNetscapePluginPackage.m: (-[WebNetscapePluginPackage _initWithPath:]): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@32820 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
ap@webkit.org authored
Move call stack depth counter to global object. * kjs/ExecState.h: (KJS::ExecState::functionCallDepth): Added a recursion depth counter to per-thread data. * kjs/JSGlobalObject.cpp: (KJS::JSGlobalObject::init): Initialize PerThreadData.functionCallDepth. * kjs/JSGlobalObject.h: (KJS::JSGlobalObject::perThreadData): Made the result non-const. * kjs/object.cpp: (KJS::throwStackSizeExceededError): Moved throwError to a separate function, since it is now the only thing in JSObject::call that needs a PIC branch. (KJS::JSObject::call): Use a per-thread variable instead of local static for recursion depth tracking. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@32819 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
mitz@apple.com authored
- add an option to svn-apply to set the reviewer name in change logs * Scripts/svn-apply: Added a [-r|--reviewer name] option. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@32818 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
mitz@apple.com authored
Reviewed by John Sullivan. - render text shadows with zero offset, as the shadow can be seen behind the text if the text is translucent Test: fast/text/shadow-no-blur.html * platform/graphics/mac/FontMac.mm: (WebCore::Font::drawComplexText): Removed the isEmpty() condition on the shadow offset. Since isEmpty() is also true for sizes that have one or more non-positive components, this also ensures that subpixel antialiasing of the text is maintained with shadows in all directions. (WebCore::Font::drawGlyphs): Ditto. * platform/graphics/win/FontCGWin.cpp: (WebCore::Font::drawGlyphs): Ditto. LayoutTests: Reviewed by John Sullivan. - add pixel test for text shadows with zero blur and various offsets, including zero offset * fast/text/shadow-no-blur.html: Added. * platform/mac/fast/text/shadow-no-blur-expected.checksum: Added. * platform/mac/fast/text/shadow-no-blur-expected.png: Added. * platform/mac/fast/text/shadow-no-blur-expected.txt: Added. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@32817 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
hausmann@webkit.org authored
Updated Qt layout-tests to match changes in font metrics. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@32816 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
hausmann@webkit.org authored
Build the Qt port with SVG Use and As Image support. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@32815 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
hausmann@webkit.org authored
Fixed potential crash on SVG animation (added more checks to the assert). git-svn-id: http://svn.webkit.org/repository/webkit/trunk@32814 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
hausmann@webkit.org authored
Doc: Mention that you have to enable plugins in QWebSettings for them to work. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@32813 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
ap@webkit.org authored
Fix a debug-only crash in layout tests. * loader/CachedResource.cpp: (WebCore::CachedResource::~CachedResource): Don't call resourceForURL() for null URLs. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@32812 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
hausmann@webkit.org authored
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@32811 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
hausmann@webkit.org authored
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@32810 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
hausmann@webkit.org authored
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@32809 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
ap@webkit.org authored
Make JavaScriptGlue and JavaScriptCore API functions implicitly call initializeThreading for the sake of non-WebKit clients. JavaScriptCore: * API/JSBase.cpp: (JSGarbageCollect): * API/JSContextRef.cpp: (JSGlobalContextCreate): These are the JavaScriptCore API bottlenecks. There are a few other JSStringRef and JSClassRef functions that can be called earlier, but they do not do anything that requires initializeThreading. * kjs/InitializeThreading.cpp: (KJS::doInitializeThreading): (KJS::initializeThreading): On Darwin, make the initialization happen under pthread_once, since there is no guarantee that non-WebKit clients won't try to call this function re-entrantly. * kjs/InitializeThreading.h: * wtf/Threading.h: Spell out initializeThreading contract. * wtf/ThreadingPthreads.cpp: (WTF::isMainThread): Make sure that results are correct on Darwin, even if threading was initialized from a secondary thread. JavaScriptGlue: * JavaScriptGlue.cpp: (JSRunCreate): (JSCollect): (JSCreateJSArrayFromCFArray): (JSLockInterpreter): These are all possible JavaScriptGlue entry points. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@32808 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
ap@webkit.org authored
https://bugs.webkit.org/show_bug.cgi?id=18826 Make JavaScript heap per-thread git-svn-id: http://svn.webkit.org/repository/webkit/trunk@32807 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
hausmann@webkit.org authored
Reviewed by Simon. Build the Qt port with SVG Animation support. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@32806 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
mitz@apple.com authored
- Mac build fix * wtf/StrHash.h: Added header guards and removed #include "config.h". git-svn-id: http://svn.webkit.org/repository/webkit/trunk@32805 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
hausmann@webkit.org authored
with different signatures. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@32804 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
kevino@webkit.org authored
Explicitly set the pen style in wx port to keep pen style changes from affecting URL underline or text field drawing. https://bugs.webkit.org/show_bug.cgi?id=18775 git-svn-id: http://svn.webkit.org/repository/webkit/trunk@32802 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
kevino@webkit.org authored
Implement popup menu support for wx port. https://bugs.webkit.org/show_bug.cgi?id=18776 git-svn-id: http://svn.webkit.org/repository/webkit/trunk@32800 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 01 May, 2008 10 commits
-
-
adachan@apple.com authored
Reviewed by Maciej. * kjs/identifier.cpp: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@32799 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
kevino@webkit.org authored
Make sure we properly set the button for all mouse events, not just mouse down, set the click count to 0 for non-click events, and finally set the timestamp. https://bugs.webkit.org/show_bug.cgi?id=18464 git-svn-id: http://svn.webkit.org/repository/webkit/trunk@32798 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
weinig@apple.com authored
Add missing result. * fast/canvas/canvas-path-with-inf-nan-dimensions-expected.txt: Added. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@32796 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
weinig@apple.com authored
Reviewed by Mark Rowe (in his infinite wisdom). Auto-generate the JSXSLTProcessor binding. * DerivedSources.make: * GNUmakefile.am: * WebCore.pro: * WebCore.vcproj/WebCore.vcproj: * WebCore.xcodeproj/project.pbxproj: * WebCoreSources.bkl: * bindings/js/JSDOMWindowBase.cpp: (WebCore::JSDOMWindowBase::getValueProperty): * bindings/js/JSDOMWindowBase.h: (WebCore::JSDOMWindowBase::): * bindings/js/JSXSLTProcessor.cpp: Removed. * bindings/js/JSXSLTProcessor.h: Removed. * xml/XSLTProcessor.h: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@32795 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
weinig@apple.com authored
2008-05-01 Sam Weinig <sam@webkit.org> Reviewed by Geoffrey Garen. Fixes: - https://bugs.webkit.org/show_bug.cgi?id=17249 Incorrect lexical scope after navigation leads to UXSS <rdar://problem/5738497> - https://bugs.webkit.org/show_bug.cgi?id=16824 Script authorization should follow lexical (not dynamic) scope <rdar://problem/5683032> This patch changes us to perform same-origin checks based on the lexical global object) rather than dynamic global object, which is now possible we don't re-use the window on navigations, but rather switch in a new one and re-use the outer shell. This is both more secure and conforms with the HTML5 specification. Now that all the checks are done based on the lexical global object, we can remove the SecurityOrigin::Reason concept, as it was only around to work around an ebay.com bug that required the check to be done that way. An important thing to note is that we currently implement a stricter than necessary policy and perform the same-origin check based on the currently active global object to avoid leaking the document in cases when the target frame is navigated before access. This will be fixed in an upcoming patch. * bindings/js/JSDOMWindowBase.cpp: (WebCore::JSDOMWindowBase::allowsAccessFrom): (WebCore::JSDOMWindowBase::allowsAccessFromNoErrorMessage): (WebCore::JSDOMWindowBase::allowsAccessFromPrivate): (WebCore::JSDOMWindowBase::crossDomainAccessErrorMessage): (WebCore::JSDOMWindowBase::printErrorMessage): (WebCore::asJSDOMWindow): * bindings/js/JSDOMWindowBase.h: * html/CanvasRenderingContext2D.cpp: (WebCore::CanvasRenderingContext2D::checkOrigin): (WebCore::CanvasRenderingContext2D::createPattern): * loader/FrameLoader.cpp: (WebCore::FrameLoader::begin): (WebCore::FrameLoader::write): (WebCore::FrameLoader::setOpener): (WebCore::FrameLoader::shouldAllowNavigation): * page/DOMWindow.h: (WebCore::DOMWindow::setSecurityOrigin): (WebCore::DOMWindow::securityOrigin): (WebCore::DOMWindow::setURL): (WebCore::DOMWindow::url): * platform/SecurityOrigin.cpp: (WebCore::SecurityOrigin::canAccess): (WebCore::SecurityOrigin::isSecureTransitionTo): * platform/SecurityOrigin.h: LayoutTests: 2008-05-01 Sam Weinig <sam@webkit.org> Reviewed by Geoffrey Garen. * http/tests/security/listener/xss-JSTargetNode-onclick-addEventListener-expected.txt: * http/tests/security/listener/xss-JSTargetNode-onclick-shortcut-expected.txt: * http/tests/security/listener/xss-XMLHttpRequest-addEventListener-expected.txt: * http/tests/security/listener/xss-XMLHttpRequest-shortcut-expected.txt: * http/tests/security/listener/xss-window-onclick-addEventListener-expected.txt: * http/tests/security/listener/xss-window-onclick-shortcut-expected.txt: * http/tests/security/xss-eval-expected.txt: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@32791 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
andersca@apple.com authored
2008-05-01 Anders Carlsson <andersca@apple.com> Reviewed by Mark. Enable 64-bit NPAPI plugins. * WebCore.xcodeproj/project.pbxproj: Don't remove NPAPI related symbols from the 64-bit .exp file. * bridge/npruntime.h: Remove now unnecessary #error. WebKit/mac: 2008-05-01 Anders Carlsson <andersca@apple.com> Reviewed by Mark. 64-bit NPAPI plugin build fixes. * Plugins/WebBaseNetscapePluginView.mm: (-[WebBaseNetscapePluginView saveAndSetNewPortStateForUpdate:]): (-[WebBaseNetscapePluginView updateAndSetWindow]): (-[WebBaseNetscapePluginView start]): (-[WebBaseNetscapePluginView windowBecameKey:]): * Plugins/WebNetscapeDeprecatedFunctions.c: * Plugins/WebNetscapeDeprecatedFunctions.h: * Plugins/WebNetscapePluginEventHandler.mm: (WebNetscapePluginEventHandler::create): * Plugins/WebNetscapePluginEventHandlerCarbon.h: * Plugins/WebNetscapePluginEventHandlerCarbon.mm: * Plugins/WebPluginDatabase.m: (-[WebPluginDatabase pluginForKey:withEnumeratorSelector:]): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@32790 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
sfalken@apple.com authored
Build fix. * JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.vcproj: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@32789 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
mjs@apple.com authored
Reviewed by Oliver (a while ago) - just a wee bit more bindings speedup Store the per-document Node --> JS wrapper cache in the document instead of an external hashtable. * bindings/js/kjs_binding.cpp: (WebCore::ScriptInterpreter::getDOMNodeForDocument): (WebCore::ScriptInterpreter::forgetDOMNodeForDocument): (WebCore::ScriptInterpreter::putDOMNodeForDocument): (WebCore::ScriptInterpreter::forgetAllDOMNodesForDocument): (WebCore::ScriptInterpreter::markDOMNodesForDocument): * dom/Document.h: (WebCore::Document::wrapperCache): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@32788 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
andersca@apple.com authored
2008-05-01 Anders Carlsson <andersca@apple.com> Reviewed by Tim. Remove duplicate npfunctions.h header from WebKit. * WebCore.xcodeproj/project.pbxproj: Add npfunctions.h and set its role to private. * plugins/npfunctions.h: Merge Mac specific changes. WebKit: 2008-05-01 Anders Carlsson <andersca@apple.com> Reviewed by Tim. Remove npfunctions.h * WebKit.xcodeproj/project.pbxproj: WebKit/mac: 2008-05-01 Anders Carlsson <andersca@apple.com> Reviewed by Tim. Remove duplicate npfunctions.h header from WebKit. * MigrateHeaders.make: Migrate npfunctions.h * Plugins/npfunctions.h: Removed. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@32787 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
weinig@apple.com authored
Reviewed by Geoffrey Garen. Rename toJSDOMWindow(KJS::JSGlobalObject) to asJSDOMWindow, as all it does is cast. * bindings/js/JSCustomVoidCallback.cpp: (WebCore::toVoidCallback): * bindings/js/JSCustomXPathNSResolver.cpp: (WebCore::JSCustomXPathNSResolver::create): * bindings/js/JSDOMApplicationCacheCustom.cpp: (WebCore::JSDOMApplicationCache::add): (WebCore::JSDOMApplicationCache::remove): * bindings/js/JSDOMWindowBase.cpp: (WebCore::allowPopUp): (WebCore::createWindow): (WebCore::windowProtoFuncOpen): (WebCore::asJSDOMWindow): * bindings/js/JSDOMWindowBase.h: * bindings/js/JSDOMWindowCustom.cpp: (WebCore::JSDOMWindow::setLocation): (WebCore::JSDOMWindow::postMessage): * bindings/js/JSDatabaseCustom.cpp: (WebCore::JSDatabase::changeVersion): (WebCore::JSDatabase::transaction): * bindings/js/JSDocumentCustom.cpp: (WebCore::JSDocument::setLocation): * bindings/js/JSLocationCustom.cpp: (WebCore::navigateIfAllowed): (WebCore::JSLocation::setHref): (WebCore::JSLocation::replace): (WebCore::JSLocation::reload): (WebCore::JSLocation::assign): * bindings/js/JSSQLTransactionCustom.cpp: (WebCore::JSSQLTransaction::executeSql): * bindings/js/JSXMLHttpRequestCustom.cpp: (WebCore::JSXMLHttpRequest::open): * page/JavaScriptDebugServer.cpp: (WebCore::toPage): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@32786 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-