- 03 Nov, 2008 4 commits
-
-
alp@webkit.org authored
Rubber-stamped by Holger Freyther. Do not enable RTTI or exceptions in debug builds, matching release builds. They don't help much with debugging and significantly slow down and increase the size of the debug build. * GNUmakefile.am: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38072 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
alp@webkit.org authored
Reviewed by Alp Toker. https://bugs.webkit.org/show_bug.cgi?id=22041 Fix CURL crashes on the test suite Fix segfault with setDefersLoading(). Do not call into curl when we don't have a CURL handle. It is attempted to defer the loading before the load has been started (no curl handle was allocated yet). If that happens then just remember that. ResourceHandleManager::startJob is already taking care of this and in initResourceHandle the the downloading will be paused if needed. Fixes fast/loader/simultaneous-reloads-assert.html * platform/network/curl/ResourceHandleCurl.cpp: (WebCore::ResourceHandle::setDefersLoading): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38071 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
alp@webkit.org authored
Reviewed by Alp Toker. https://bugs.webkit.org/show_bug.cgi?id=22041 Fix CURL crashes on the test suite Do not send "no data" to WebCore in parseDataUrl(). Fixes assert on fast/tokenizer/image-empty-crash.html * platform/network/curl/ResourceHandleManager.cpp: (WebCore::parseDataUrl): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38070 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
alp@webkit.org authored
Rubber-stamped by Holger Freyther. Add mingw32 case to dolt for faster GTK+ Windows builds. * acinclude.m4: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38069 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 02 Nov, 2008 3 commits
-
-
pewtermoose@webkit.org authored
Reviewed by Cameron Zwarich. Bug 22042: REGRESSION(r38066): ASSERTION FAILED: source in CodeBlock <https://bugs.webkit.org/show_bug.cgi?id=22042> Rename parameter name to avoid ASSERT. * VM/CodeBlock.h: (JSC::CodeBlock::CodeBlock): (JSC::ProgramCodeBlock::ProgramCodeBlock): (JSC::EvalCodeBlock::EvalCodeBlock): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38068 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
christian@webkit.org authored
Reviewed by Holger Freyther https://bugs.webkit.org/show_bug.cgi?id=22009 HTML5 Video with GStreamer pulls gnome-vfs without using it. * configure.ac: Remove gnome-vfs from configure.ac, it's unused. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38067 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
cwzwarich@webkit.org authored
Reviewed by Oliver Hunt. Bug 22035: Remove the '_' suffix on constructor parameter names for structs <https://bugs.webkit.org/show_bug.cgi?id=22035> * API/JSCallbackObject.h: (JSC::JSCallbackObject::JSCallbackObjectData::JSCallbackObjectData): * VM/CodeBlock.h: (JSC::CodeBlock::CodeBlock): (JSC::ProgramCodeBlock::ProgramCodeBlock): (JSC::EvalCodeBlock::EvalCodeBlock): * wrec/WREC.h: (JSC::Quantifier::Quantifier): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38066 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 01 Nov, 2008 3 commits
-
-
abarth@webkit.org authored
2008-11-01 Adam Barth <abarth@webkit.org> Reviewed by Sam Weinig. Be sure to check the final URLs of requested resources to make sure we don't get fooled by HTTP redirects. https://bugs.webkit.org/show_bug.cgi?id=21963 Tests: http/tests/security/xss-DENIED-xsl-document-redirect.xml http/tests/security/xss-DENIED-xsl-external-entity-redirect.xml * dom/XMLTokenizerLibxml2.cpp: (WebCore::openFunc): * loader/DocLoader.cpp: (WebCore::DocLoader::canRequest): (WebCore::DocLoader::requestResource): * loader/DocLoader.h: * xml/XSLTProcessor.cpp: (WebCore::docLoaderFunc): LayoutTests: 2008-11-01 Adam Barth <abarth@webkit.org> Reviewed by Sam Weinig. Test that we properly block non-same-origin redirects for these esoteric loads. https://bugs.webkit.org/show_bug.cgi?id=21963 * http/tests/security/resources/xsl-using-document-redirect.xsl: Added. * http/tests/security/resources/xsl-using-external-entity-redirect.xsl: Added. * http/tests/security/xss-DENIED-xsl-document-redirect-expected.txt: Copied from LayoutTests/http/tests/security/xss-DENIED-xsl-document-expected.txt. * http/tests/security/xss-DENIED-xsl-document-redirect.xml: Added. * http/tests/security/xss-DENIED-xsl-external-entity-redirect-expected.txt: Copied from LayoutTests/http/tests/security/xss-DENIED-xsl-external-entity-expected.txt. * http/tests/security/xss-DENIED-xsl-external-entity-redirect.xml: Added. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38065 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
ap@webkit.org authored
https://bugs.webkit.org/show_bug.cgi?id=22001 AtomicStringImpl* keys of event listener maps can outlive their strings Test: fast/events/destroyed-atomic-string.html * dom/MessagePort.cpp: (WebCore::MessagePort::addEventListener): (WebCore::MessagePort::removeEventListener): (WebCore::MessagePort::dispatchEvent): * dom/MessagePort.h: * loader/appcache/DOMApplicationCache.cpp: (WebCore::DOMApplicationCache::addEventListener): (WebCore::DOMApplicationCache::removeEventListener): (WebCore::DOMApplicationCache::dispatchEvent): * loader/appcache/DOMApplicationCache.h: * xml/XMLHttpRequest.cpp: (WebCore::XMLHttpRequest::addEventListener): (WebCore::XMLHttpRequest::removeEventListener): (WebCore::XMLHttpRequest::dispatchEvent): * xml/XMLHttpRequest.h: * xml/XMLHttpRequestUpload.cpp: (WebCore::XMLHttpRequestUpload::addEventListener): (WebCore::XMLHttpRequestUpload::removeEventListener): (WebCore::XMLHttpRequestUpload::dispatchEvent): * xml/XMLHttpRequestUpload.h: Changed EventListenersMap to use AtomicString as key (instead of AtomicStringImpl*). git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38064 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
ap@webkit.org authored
https://bugs.webkit.org/show_bug.cgi?id=21998 Use JSDOMGlobalObject in EventListener-related bindings * dom/MessagePort.idl: Auto-generate bindings for onclose and onmessage. * bindings/scripts/CodeGeneratorJS.pm: Use JSDOMGlobalObject instead of JSDOMWindow in JS bindings for inline event handlers. * bindings/js/JSDOMApplicationCacheCustom.cpp: (WebCore::JSDOMApplicationCache::addEventListener): (WebCore::JSDOMApplicationCache::removeEventListener): * bindings/js/JSEventTargetNodeCustom.cpp: (WebCore::JSEventTargetNode::addEventListener): (WebCore::JSEventTargetNode::removeEventListener): * bindings/js/JSMessagePortCustom.cpp: (WebCore::JSMessagePort::removeEventListener): * bindings/js/JSSVGElementInstanceCustom.cpp: (WebCore::JSSVGElementInstance::addEventListener): (WebCore::JSSVGElementInstance::removeEventListener): * bindings/js/JSXMLHttpRequestCustom.cpp: (WebCore::JSXMLHttpRequest::addEventListener): (WebCore::JSXMLHttpRequest::removeEventListener): * bindings/js/JSXMLHttpRequestUploadCustom.cpp: (WebCore::JSXMLHttpRequestUpload::addEventListener): (WebCore::JSXMLHttpRequestUpload::removeEventListener): Use ScriptExecutionContext and JSDOMGlobalObject in bindings. * dom/EventTarget.h: * dom/EventTargetNode.cpp: (WebCore::EventTargetNode::scriptExecutionContext): * dom/EventTargetNode.h: * dom/MessagePort.cpp: * dom/MessagePort.h: (WebCore::MessagePort::scriptExecutionContext): * loader/appcache/DOMApplicationCache.cpp: (WebCore::DOMApplicationCache::scriptExecutionContext): * loader/appcache/DOMApplicationCache.h: * svg/SVGElementInstance.cpp: (WebCore::SVGElementInstance::scriptExecutionContext): * svg/SVGElementInstance.h: * xml/XMLHttpRequest.cpp: (WebCore::XMLHttpRequest::scriptExecutionContext): * xml/XMLHttpRequest.h: * xml/XMLHttpRequestUpload.cpp: (WebCore::XMLHttpRequestUpload::scriptExecutionContext): * xml/XMLHttpRequestUpload.h: Remove associatedFrame() method, and provide scriptExecutionContext() where it wasn't available yet. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38063 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 31 Oct, 2008 30 commits
-
-
slewis@apple.com authored
Fix build by including right files. * JSRun.cpp: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38062 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
cwzwarich@webkit.org authored
Rubber-stamped by Geoff Garen. Rename SourceRange.h to SourceCode.h. JavaScriptCore: * API/JSBase.cpp: * GNUmakefile.am: * JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.vcproj: * JavaScriptCore.xcodeproj/project.pbxproj: * VM/CodeBlock.h: * kjs/SourceCode.h: Copied from kjs/SourceRange.h. * kjs/SourceRange.h: Removed. * kjs/grammar.y: * kjs/lexer.h: * kjs/nodes.cpp: (JSC::ForInNode::ForInNode): * kjs/nodes.h: (JSC::ThrowableExpressionData::setExceptionSourceCode): WebCore: * ForwardingHeaders/kjs/SourceCode.h: Copied from ForwardingHeaders/kjs/SourceRange.h. * ForwardingHeaders/kjs/SourceRange.h: Removed. * bindings/js/StringSourceProvider.h: * bridge/NP_jsobject.cpp: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38061 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
cwzwarich@webkit.org authored
Reviewed by Darin Adler. Bug 22019: Move JSC::Interpreter::shouldPrintExceptions() to WebCore::Console <https://bugs.webkit.org/show_bug.cgi?id=22019> The JSC::Interpreter::shouldPrintExceptions() function is not used at all in JavaScriptCore, so it should be moved to WebCore::Console, its only user. JavaScriptCore: * JavaScriptCore.exp: * kjs/interpreter.cpp: * kjs/interpreter.h: WebCore: * WebCore.base.exp: * page/Console.cpp: (WebCore::printToStandardOut): (WebCore::Console::shouldPrintExceptions): (WebCore::Console::setShouldPrintExceptions): * page/Console.h: WebKit/mac: * Misc/WebCoreStatistics.mm: (+[WebCoreStatistics shouldPrintExceptions]): (+[WebCoreStatistics setShouldPrintExceptions:]): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38060 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
christian@webkit.org authored
http://bugs.webkit.org/show_bug.cgi?id=22018 enable-developer-extras doesn't toggle WebInspector * webkit/webkitwebview.cpp: Add missing 'if' in notification for 'enable-developer-extras'. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38059 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
mitz@apple.com authored
Reviewed by John Sullivan. - WebCore part of <rdar://problem/6334641> Add WebView SPI for disabling document.cookie * dom/Document.cpp: (WebCore::Document::cookie): Added checking if cookies are disabled. (WebCore::Document::setCookie): Ditto. * page/Navigator.cpp: (WebCore::Navigator::cookieEnabled): Ditto. * page/Page.cpp: (WebCore::Page::Page): Initialize m_cookieEnabled to true. * page/Page.h: (WebCore::Page::cookieEnabled): Added. (WebCore::Page::setCookieEnabled): Added. WebKit/mac: Reviewed by John Sullivan. - WebKit/mac part of <rdar://problem/6334641> Add WebView SPI for disabling document.cookie * WebView/WebView.mm: (-[WebView _cookieEnabled]): (-[WebView _setCookieEnabled:]): * WebView/WebViewPrivate.h: WebKit/win: Reviewed by John Sullivan. - WebKit/win part of <rdar://problem/6334641> Add WebView SPI for disabling document.cookie * Interfaces/IWebViewPrivate.idl: * WebView.cpp: (WebView::setCookieEnabled): (WebView::cookieEnabled): * WebView.h: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38058 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
adele@apple.com authored
2008-10-31 Adele Peterson <adele@apple.com> Reviewed by Darin Adler. WebCore Windows part of fix for <rdar://problem/5839256> FILE CONTROL: multi-file upload. https://bugs.webkit.org/show_bug.cgi?id=22008 * platform/FileChooser.cpp: (WebCore::FileChooser::chooseIcon): Rename newIconForFile and newIconForFiles to createIconForFile and createIconForFiles. * platform/graphics/Icon.h: ditto. * platform/graphics/gtk/IconGtk.cpp: (WebCore::Icon::createIconForFile): ditto. (WebCore::Icon::createIconForFiles): ditto. * platform/graphics/mac/IconMac.mm: (WebCore::Icon::createIconForFile): ditto. (WebCore::Icon::createIconForFiles): ditto. * platform/graphics/qt/IconQt.cpp: (WebCore::Icon::createIconForFile): ditto. (WebCore::Icon::createIconForFiles): ditto. * platform/wx/TemporaryLinkStubs.cpp: (Icon::createIconForFile): ditto. (Icon::createIconForFiles): ditto. * platform/graphics/win/IconWin.cpp: (WebCore::Icon::createIconForFile): ditto. (WebCore::Icon::createIconForFiles): Add creation of an icon for multiple files. * rendering/RenderThemeWin.cpp: (WebCore::RenderThemeWin::paintSearchFieldResultsDecoration): Improve icon creation code to match new code in Icon::createIconForFiles WebKit/win: 2008-10-31 Adele Peterson <adele@apple.com> Reviewed by Darin Adler. WebKit Windows part of fix for <rdar://problem/5839256> FILE CONTROL: multi-file upload. https://bugs.webkit.org/show_bug.cgi?id=22008 * WebCoreSupport/WebChromeClient.cpp: (WebChromeClient::runOpenPanel): Add support for mulitple file selection. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38057 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
andersca@apple.com authored
Reviewed by Kevin Decker. Move WebNetscapePluginEventHandler classes to a subgroup of Netscape Plug-Ins. * WebKit.xcodeproj/project.pbxproj: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38056 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
cwzwarich@webkit.org authored
Not reviewed. Windows build fix. * JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.vcproj: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38055 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
cwzwarich@webkit.org authored
Rubber-stamped by Sam Weinig. Remove the call to Interpreter::setShouldPrintExceptions() from the GlobalObject constructor in the shell. The shouldPrintExceptions() information is not used anywhere in JavaScriptCore, only in WebCore. * kjs/Shell.cpp: (GlobalObject::GlobalObject): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38054 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
kevino@webkit.org authored
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38053 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
cwzwarich@webkit.org authored
Rubber-stamped by Sam Weinig. Move more files from the kjs subdirectory of JavaScriptCore to the runtime subdirectory. * GNUmakefile.am: * JavaScriptCore.pri: * JavaScriptCore.xcodeproj/project.pbxproj: * JavaScriptCoreSources.bkl: * kjs/AllInOneFile.cpp: * kjs/RegExpConstructor.cpp: Removed. * kjs/RegExpConstructor.h: Removed. * kjs/RegExpMatchesArray.h: Removed. * kjs/RegExpObject.cpp: Removed. * kjs/RegExpObject.h: Removed. * kjs/RegExpPrototype.cpp: Removed. * kjs/RegExpPrototype.h: Removed. * runtime/RegExpConstructor.cpp: Copied from kjs/RegExpConstructor.cpp. * runtime/RegExpConstructor.h: Copied from kjs/RegExpConstructor.h. * runtime/RegExpMatchesArray.h: Copied from kjs/RegExpMatchesArray.h. * runtime/RegExpObject.cpp: Copied from kjs/RegExpObject.cpp. * runtime/RegExpObject.h: Copied from kjs/RegExpObject.h. * runtime/RegExpPrototype.cpp: Copied from kjs/RegExpPrototype.cpp. * runtime/RegExpPrototype.h: Copied from kjs/RegExpPrototype.h. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38052 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
mrowe@apple.com authored
* profiler/ProfilerServer.mm: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38051 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
mrowe@apple.com authored
Disable strict aliasing in ProfilerServer.mm as it leads to the compiler being unhappy with the common Obj-C idiom self = [super init]; * JavaScriptCore.xcodeproj/project.pbxproj: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38050 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
cwzwarich@webkit.org authored
Not reviewed. * Scripts/do-webcore-rename: Add some renames to contemplate for the future. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38049 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
cwzwarich@webkit.org authored
Reviewed by Alexey Proskuryakov. Change a header guard to match our coding style. * kjs/InitializeThreading.h: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38048 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
ggaren@apple.com authored
Reviewed by Oliver Hunt. Fixed a small bit of https://bugs.webkit.org/show_bug.cgi?id=21962 AST uses way too much memory Removed a word from StatementNode by nixing LabelStack and turning it into a compile-time data structure managed by CodeGenerator. v8 tests and SunSpider, run by Gavin, report no change. * GNUmakefile.am: * JavaScriptCore.order: * JavaScriptCore.pri: * JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.vcproj: * JavaScriptCore.xcodeproj/project.pbxproj: * kjs/AllInOneFile.cpp: * JavaScriptCoreSources.bkl: I sure hope this builds! * VM/CodeGenerator.cpp: (JSC::CodeGenerator::CodeGenerator): (JSC::CodeGenerator::newLabelScope): (JSC::CodeGenerator::breakTarget): (JSC::CodeGenerator::continueTarget): * VM/CodeGenerator.h: Nixed the JumpContext system because it depended on a LabelStack in the AST, and it was a little cumbersome on the client side. Replaced with LabelScope, which tracks all break / continue information in the CodeGenerator, just like we track LabelIDs and other stacks of compile-time data. * kjs/LabelScope.h: Added. (JSC::LabelScope::): (JSC::LabelScope::LabelScope): (JSC::LabelScope::ref): (JSC::LabelScope::deref): (JSC::LabelScope::refCount): (JSC::LabelScope::breakTarget): (JSC::LabelScope::continueTarget): (JSC::LabelScope::type): (JSC::LabelScope::name): (JSC::LabelScope::scopeDepth): Simple abstraction for holding everything you might want to know about a break-able / continue-able scope. * kjs/LabelStack.cpp: Removed. * kjs/LabelStack.h: Removed. * kjs/grammar.y: No need to push labels at parse time -- we don't store LabelStacks in the AST anymore. * kjs/nodes.cpp: (JSC::DoWhileNode::emitCode): (JSC::WhileNode::emitCode): (JSC::ForNode::emitCode): (JSC::ForInNode::emitCode): (JSC::ContinueNode::emitCode): (JSC::BreakNode::emitCode): (JSC::SwitchNode::emitCode): (JSC::LabelNode::emitCode): * kjs/nodes.h: (JSC::StatementNode::): (JSC::LabelNode::): Use LabelScope where we used to use JumpContext. Simplified a bunch of code. Touched up label-related error messages a bit. * kjs/nodes2string.cpp: (JSC::LabelNode::streamTo): Updated for rename. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38047 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
cwzwarich@webkit.org authored
Reviewed by Darin Adler. Bug 22005: Move StructureIDChain into its own file <https://bugs.webkit.org/show_bug.cgi?id=22005> * GNUmakefile.am: * JavaScriptCore.pri: * JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.vcproj: * JavaScriptCore.xcodeproj/project.pbxproj: * JavaScriptCoreSources.bkl: * runtime/StructureID.cpp: * runtime/StructureID.h: * runtime/StructureIDChain.cpp: Copied from runtime/StructureID.cpp. * runtime/StructureIDChain.h: Copied from runtime/StructureID.h. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38046 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
darin@apple.com authored
Requested by Mark Rowe. * Scripts/check-for-global-initializers: s/Web Kit/WebKit/. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38045 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
sfalken@apple.com authored
Build fix. * JavaScriptCore.vcproj/jsc/jsc.vcproj: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38044 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
beidson@apple.com authored
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38043 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
beidson@apple.com authored
Reviewed by Darin [WebHistory setLastVisitedTimeInterval:forItem] was internal to WebHistory.mm and completely unused. Nuke it! * History/WebHistory.mm: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38042 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@38041 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
timothy@apple.com authored
Emit the WillExecuteStatement debugger hook before the for loop body when the statement node for the body isn't a block. This allows breakpoints on those statements in the Web Inspector. JavaScriptCore: 2008-10-31 Timothy Hatcher <timothy@apple.com> Emit the WillExecuteStatement debugger hook before the for loop body when the statement node for the body isn't a block. This allows breakpoints on those statements in the Web Inspector. https://bugs.webkit.org/show_bug.cgi?id=22004 Reviewed by Darin Adler. * kjs/nodes.cpp: (JSC::ForNode::emitCode): Emit the WillExecuteStatement debugger hook before the statement node if isn't a block. Also emit the WillExecuteStatement debugger hook for the loop as the first op-code. (JSC::ForInNode::emitCode): Ditto. WebCore: 2008-10-31 Timothy Hatcher <timothy@apple.com> Add manual tests that check breakpoints on a blockless body of "for" loops. https://bugs....
-
darin@apple.com authored
- fix build * platform/win/WCDataObject.cpp: Added missing include of "config.h". git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38039 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
ddkilzer@apple.com authored
<https://bugs.webkit.org/show_bug.cgi?id=21997> Reviewed by Darin Adler. * Scripts/prepare-ChangeLog: (generateFileList): Don't add ChangeLog files to %{$functionLists}. This prevents them from showing up in the new ChangeLog entry. They were already excluded from @{$changedFiles}. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38038 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
darin@apple.com authored
Reviewed by Dan Bernstein. - fix storage leak seen on buildbot Some other cleanup too. The storage leak was caused by the fact that HashTraits<CallIdentifier>::needsDestruction was false, so the call identifier objects didn't get deleted. * profiler/CallIdentifier.h: Added a default constructor to create empty call identifiers. Changed the normal constructor to use const UString& to avoid extra copying and reference count thrash. Removed the explicit copy constructor definition, since it's what the compiler will automatically generate. (Rule of thumb: Either you need both a custom copy constructor and a custom assignment operator, or neither.) Moved the CallIdentifier hash function out of the WTF namespace; there's no reason to put it there. Changed the CallIdentifier hash function to be a struct rather than a specialization of the IntHash struct template. Having it be a specialization made no sense, since CallIdentifier is not an integer, and did no good. Removed explicit definition of emptyValueIsZero in the hash traits, since inheriting from GenericHashTraits already makes that false. Removed explicit definition of emptyValue, instead relying on the default constructor and GenericHashTraits. Removed explicit definition of needsDestruction, because we want it to have its default value: true, not false. This fixes the leak! Changed constructDeletedValue and isDeletedValue to use a line number of numeric_limits<unsigned>::max() to indicate a value is deleted. Previously this used empty strings for the empty value and null strings for the deleted value, but it's more efficient to use null for both. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38037 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
darin@apple.com authored
- try to fix build * WebView.cpp: (WebView::setCacheModel): Roll out the part of my last change that involved no longer using wkCopyFoundationCacheDirectory. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38036 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
cfleizach@apple.com authored
Bug 22002: AX: scroll bars show should not appear in AX hierarchy when WebFrameView does not allow scrolling https://bugs.webkit.org/show_bug.cgi?id=22002 git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38035 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
timothy@apple.com authored
Also fixes the build for Snow Leopard, by including individual Foundation headers instead of Foundation.h. https://bugs.webkit.org/show_bug.cgi?id=21995 Reviewed by Oliver Hunt. * profiler/ProfilerServer.mm: (-[ProfilerServer init]): Create a NSAutoreleasePool and drain it. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38034 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
ap@webkit.org authored
https://bugs.webkit.org/show_bug.cgi?id=21970 Make MessagePort event dispatch work in workers * bindings/js/JSDOMGlobalObject.cpp: (WebCore::JSDOMGlobalObject::JSDOMGlobalObjectData::JSDOMGlobalObjectData): (WebCore::JSDOMGlobalObject::~JSDOMGlobalObject): (WebCore::JSDOMGlobalObject::findJSEventListener): (WebCore::JSDOMGlobalObject::findOrCreateJSEventListener): (WebCore::JSDOMGlobalObject::findJSUnprotectedEventListener): (WebCore::JSDOMGlobalObject::findOrCreateJSUnprotectedEventListener): (WebCore::JSDOMGlobalObject::jsEventListeners): (WebCore::JSDOMGlobalObject::jsInlineEventListeners): (WebCore::JSDOMGlobalObject::jsUnprotectedEventListeners): (WebCore::JSDOMGlobalObject::jsUnprotectedInlineEventListeners): (WebCore::JSDOMGlobalObject::setCurrentEvent): (WebCore::JSDOMGlobalObject::currentEvent): (WebCore::toJSDOMGlobalObject): * bindings/js/JSDOMGlobalObject.h: * bindings/js/JSDOMWindowBase.cpp: (WebCore::JSDOMWindowBase::JSDOMWindowBaseData::JSDOMWindowBaseData): (WebCore::JSDOMWindowBase::~JSDOMWindowBase): (WebCore::JSDOMWindowBase::clearHelperObjectProperties): * bindings/js/JSDOMWindowBase.h: Moved event listener tracking from JSDOMWindow to JSDOMGlobalObject. * bindings/js/JSEventListener.cpp: (WebCore::JSAbstractEventListener::handleEvent): (WebCore::JSUnprotectedEventListener::JSUnprotectedEventListener): (WebCore::JSUnprotectedEventListener::~JSUnprotectedEventListener): (WebCore::JSUnprotectedEventListener::globalObject): (WebCore::JSUnprotectedEventListener::clearGlobalObject): (WebCore::JSEventListener::JSEventListener): (WebCore::JSEventListener::~JSEventListener): (WebCore::JSEventListener::globalObject): (WebCore::JSEventListener::clearGlobalObject): (WebCore::JSLazyEventListener::JSLazyEventListener): (WebCore::JSLazyEventListener::parseCode): * bindings/js/JSEventListener.h: (WebCore::JSUnprotectedEventListener::create): (WebCore::JSEventListener::create): (WebCore::JSLazyEventListener::create): Changed to use JSDOMGlobalObject and ScriptExecutionContext. * bindings/js/JSMessagePortCustom.cpp: (WebCore::JSMessagePort::startConversation): (WebCore::JSMessagePort::addEventListener): (WebCore::JSMessagePort::removeEventListener): (WebCore::JSMessagePort::setOnmessage): (WebCore::JSMessagePort::setOnclose): Updated bindings to work with JSDOMGlobalObject. Next step is to make code generator emit such code, and stop using a custom implementation for JSMessagePort inline event handler getters and setters. * dom/Document.cpp: (WebCore::Document::virtualURL): * dom/Document.h: * dom/ScriptExecutionContext.h: Expose url() method on ScriptExecutionContext (necessary for compiling scripts in JSLazyEventListener). git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38033 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-