- 14 Jun, 2007 15 commits
-
-
staikos authored
QtWebKit, as well as some focus fixes. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@23545 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
andersca authored
* bindings/runtime_object.cpp: (RuntimeObjectImp::canPut): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@23540 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
hyatt authored
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@23539 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
andersca authored
Reviewed by Darin. <rdar://problem/5103077> Crash at _NPN_ReleaseObject when quitting page at http://eshop.macsales.com/shop/ModBook <rdar://problem/5183692> http://bugs.webkit.org/show_bug.cgi?id=13547 REGRESSION: Crash in _NPN_ReleaseObject when closing Safari on nba.com (13547) <rdar://problem/5261499> CrashTracer: [USER] 75 crashes in Safari at com.apple.JavaScriptCore: KJS::Bindings::CInstance::~CInstance + 40 Have the root object track all live instances of RuntimeObjectImp. When invalidating the root object, also invalidate all live runtime objects by zeroing out their instance ivar. This prevents instances from outliving their plug-ins which lead to crashes. * bindings/c/c_utility.cpp: (KJS::Bindings::convertValueToNPVariant): * bindings/jni/jni_jsobject.cpp: (JavaJSObject::convertValueToJObject): * bindings/jni/jni_utility.cpp: (KJS::Bindings::convertValueToJValue): * bindings/objc/objc_runtime.mm: (ObjcFallbackObjectImp::callAsFunction): * bindings/runtime_array.cpp: (RuntimeArray::RuntimeArray): * bindings/runtime_array.h: (KJS::RuntimeArray::getConcreteArray): * bindings/runtime_method.cpp: (RuntimeMethod::callAsFunction): * bindings/runtime_method.h: * bindings/runtime_object.cpp: (RuntimeObjectImp::RuntimeObjectImp): (RuntimeObjectImp::~RuntimeObjectImp): (RuntimeObjectImp::invalidate): (RuntimeObjectImp::fallbackObjectGetter): (RuntimeObjectImp::fieldGetter): (RuntimeObjectImp::methodGetter): (RuntimeObjectImp::getOwnPropertySlot): (RuntimeObjectImp::put): (RuntimeObjectImp::canPut): (RuntimeObjectImp::defaultValue): (RuntimeObjectImp::implementsCall): (RuntimeObjectImp::callAsFunction): (RuntimeObjectImp::getPropertyNames): (RuntimeObjectImp::throwInvalidAccessError): * bindings/runtime_object.h: * bindings/runtime_root.cpp: (KJS::Bindings::RootObject::invalidate): (KJS::Bindings::RootObject::addRuntimeObject): (KJS::Bindings::RootObject::removeRuntimeObject): * bindings/runtime_root.h: LayoutTests: Reviewed by Darin. Add test that manipulates plug-in script objects after the plug-in has been destroyed. * plugins/netscape-destroy-plugin-script-objects-expected.txt: Added. * plugins/netscape-destroy-plugin-script-objects.html: Added. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@23538 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
weinig authored
Update set of files to download for cygwin to include diffutils and regenerate the zip file. This should fix an issue on vista where svn-create-patch doesn't work. * CygwinDownloader/cygwin-downloader.py: * CygwinDownloader/cygwin-downloader.zip: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@23537 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
andersca authored
Add Frame::cleanupScriptObjectsForPlugin which will invalidate the root object for a given plug-in. * WebCore.exp: * page/Frame.cpp: (WebCore::Frame::cleanupScriptObjectsForPlugin): * page/Frame.h: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@23536 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
andersca authored
Call cleanupScriptObjectsForPlugin on the frame after destroying the plug-in. * Plugins/WebBaseNetscapePluginView.mm: (-[WebBaseNetscapePluginView _destroyPlugin]): * Plugins/WebPluginController.mm: (-[WebPluginController destroyPlugin:]): (-[WebPluginController destroyAllPlugins]): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@23535 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
bdash authored
Update script to match new nightly.webkit.org infrastructure. * BuildSlaveSupport/build-launcher-dmg: Upload to the live web server, not the caching proxy. Let the server know it's a Mac build. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@23531 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
andersca authored
<rdar://problem/5211677> -[WebPreferences setJavaEnabled:] only disables java inside <applet>, not <object> * loader/FrameLoader.cpp: (WebCore::FrameLoader::requestObject): If the object is a Java MIME type and Java is disabled, don't load the plug-in. * platform/MimeTypeRegistry.cpp: (WebCore::MimeTypeRegistry::isJavaAppletMIMEType): Clean this up and add another applet MIME type. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@23529 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
staikos authored
cleanups. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@23528 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
staikos authored
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@23527 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
andersca authored
Reviewed by Mitz. <rdar://problem/5244948> Safari keeps on complaining about slow script playing NBC TV video (14133) http://bugs.webkit.org/show_bug.cgi?id=14133 Runaway JavaScript timer fires when spinning around in Google Maps street view Make sure to start and stop the timeout checker around calls to JS. * bindings/NP_jsobject.cpp: (_NPN_InvokeDefault): (_NPN_Invoke): (_NPN_Evaluate): * bindings/jni/jni_jsobject.cpp: (JavaJSObject::call): (JavaJSObject::eval): WebCore: Reviewed by Mitz. <rdar://problem/5244948> Safari keeps on complaining about slow script playing NBC TV video (14133) http://bugs.webkit.org/show_bug.cgi?id=14133 Runaway JavaScript timer fires when spinning around in Google Maps street view Make sure to start and stop the timeout checker around calls to JS. * bindings/objc/WebScriptObject.mm: (-[WebScriptObject callWebScriptMethod:withArguments:]): (-[WebScriptObject evaluateWebScript:]): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@23526 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
hausmann authored
HistoryItem itself doesn't seem to have a parent pointer either. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@23525 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
hausmann authored
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@23524 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
staikos authored
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@23523 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 13 Jun, 2007 25 commits
-
-
darin authored
Reviewed by Mark Rowe. - fix http://bugs.webkit.org/show_bug.cgi?id=14132 array sort with > 10000 elements sets elements > 10000 undefined Test: fast/js/sort-large-array.html * kjs/array_instance.h: Replaced pushUndefinedObjectsToEnd with compactForSorting, and removed ExecState parameters. * kjs/array_object.cpp: (ArrayInstance::sort): Changed to call compactForSorting. (ArrayInstance::compactForSorting): Do the get and delete of the properties directly on the property map instead of using public calls from JSObject. The public calls would just read the undefined values from the compacted sort results array! LayoutTests: Reviewed by Mark Rowe. - test for http://bugs.webkit.org/show_bug.cgi?id=14132 array sort with > 10000 elements sets elements > 10000 undefined * fast/js/resources/sort-large-array.js: Added. * fast/js/sort-large-array-expected.txt: Added. * fast/js/sort-large-array.html: Added. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@23521 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
lars authored
in a HTTP redirect. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@23520 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
lars authored
get web pages to load again. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@23519 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
staikos authored
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@23518 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
staikos authored
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@23517 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
staikos authored
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@23516 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
lars authored
don't reimplement the global new/delete operators when using the system malloc. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@23515 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
darin authored
- fix <rdar://problem/5264923> Safari frequently "stalls" beneath +[NSFont fontWithName:size:] while loading a web page (searching on disk for the font) * platform/mac/WebFontCache.mm: (+[WebFontCache internalFontWithFamily:traits:size:]): Renamed from fontWithFamily. Took out the auto-activation code. (+[WebFontCache fontWithFamily:traits:size:]): Added. Calls internalFontWithFamily, then calls NSFont to trigger activation if that returned nil, then calls internalFontWithFamily again. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@23514 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
andersca authored
Reviewed by Geoff. Make sure that bindings instances get correct root objects. * JavaScriptCore.exp: * bindings/NP_jsobject.cpp: (listFromVariantArgs): (_NPN_InvokeDefault): (_NPN_Invoke): (_NPN_SetProperty): * bindings/c/c_instance.cpp: (KJS::Bindings::CInstance::invokeMethod): (KJS::Bindings::CInstance::invokeDefaultMethod): * bindings/c/c_runtime.cpp: (KJS::Bindings::CField::valueFromInstance): * bindings/c/c_utility.cpp: (KJS::Bindings::convertNPVariantToValue): * bindings/c/c_utility.h: * bindings/objc/objc_instance.mm: (ObjcInstance::invokeMethod): (ObjcInstance::invokeDefaultMethod): (ObjcInstance::getValueOfUndefinedField): * bindings/objc/objc_runtime.mm: (ObjcField::valueFromInstance): (ObjcArray::valueAt): * bindings/objc/objc_utility.h: * bindings/objc/objc_utility.mm: (KJS::Bindings::convertObjcValueToValue): * bindings/runtime.h: WebCore: Reviewed by Geoff. Pass the root object to methods that end up creating new ObjcInstance objects. * bindings/objc/WebScriptObject.mm: (listFromNSArray): (-[WebScriptObject callWebScriptMethod:withArguments:]): (-[WebScriptObject evaluateWebScript:]): (-[WebScriptObject setValue:forKey:]): (-[WebScriptObject valueForKey:]): (-[WebScriptObject removeWebScriptKey:]): (-[WebScriptObject setWebScriptValueAtIndex:value:]): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@23512 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
andersca authored
<rdar://problem/5267992> Make sure an alert doesn't allow loading to continue inside a script. Make sure to defer all loads where it's possible for a second main loop to be running. * page/Chrome.cpp: (WebCore::Chrome::runModal): (WebCore::Chrome::runBeforeUnloadConfirmPanel): (WebCore::Chrome::runJavaScriptAlert): (WebCore::Chrome::runJavaScriptConfirm): (WebCore::Chrome::runJavaScriptPrompt): (WebCore::PageGroupLoadDeferrer::PageGroupLoadDeferrer): (WebCore::PageGroupLoadDeferrer::~PageGroupLoadDeferrer): * platform/network/cf/ResourceHandleCFNet.cpp: (WebCore::ResourceHandle::setDefersLoading): Implement this. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@23510 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
sullivan authored
- fixed <rdar://problem/5267607> Clicking the "Save to Downloads" button in PDF overlay too soon results in corrupt file * WebView/WebPDFView.mm: (-[WebPDFView PDFViewSavePDFToDownloadFolder:]): Just beep if the document isn't available yet, since trying to save it as a file really isn't a good idea. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@23508 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
bdash authored
Reviewed by Rob. http://bugs.webkit.org/show_bug.cgi?id=14060 Cairo SVG support * WebCore.pro: Add new files to the build. * platform/graphics/svg/SVGPaintServerPattern.h: * platform/graphics/svg/SVGPaintServerSolid.h: * platform/graphics/svg/cairo: Added. * platform/graphics/svg/cairo/RenderPathCairo.cpp: Added. (WebCore::RenderPath::strokeContains): (WebCore::RenderPath::strokeBBox): * platform/graphics/svg/cairo/SVGPaintServerCairo.cpp: Added. (WebCore::SVGPaintServer::draw): (WebCore::SVGPaintServer::teardown): (WebCore::SVGPaintServer::renderPath): * platform/graphics/svg/cairo/SVGPaintServerGradientCairo.cpp: Added. (WebCore::SVGPaintServerGradient::setup): * platform/graphics/svg/cairo/SVGPaintServerPatternCairo.cpp: Added. (WebCore::SVGPaintServerPattern::setup): * platform/graphics/svg/cairo/SVGPaintServerSolidCairo.cpp: Added. (WebCore::SVGPaintServerSolid::setup): * platform/graphics/svg/cairo/SVGResourceClipperCairo.cpp: Added. (WebCore::SVGResourceClipper::applyClip): * platform/graphics/svg/cairo/SVGResourceMaskerCairo.cpp: Added. (WebCore::SVGResourceMasker::applyMask): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@23507 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
hausmann authored
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@23504 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
hausmann authored
WebKitQt to QtWebKit git-svn-id: http://svn.webkit.org/repository/webkit/trunk@23503 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
hausmann authored
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@23500 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
hausmann authored
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@23499 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
hausmann authored
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@23498 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
hausmann authored
Changed the QWebPage::open(const QUrl &url, const QHttpRequestHeader &httpHeader, const QByteArray &postData) overload to take a QWebNetworkRequest instead. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@23497 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
hausmann authored
of the WebCore::ResourceRequest depend on the validity of the QHttpRequestHeader but just pick the individual fields if we can use them. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@23496 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
hausmann authored
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@23495 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
hausmann authored
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@23494 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
hausmann authored
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@23493 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
hausmann authored
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@23492 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
hausmann authored
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@23491 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
hausmann authored
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@23490 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-