2012-10-02 Anders Carlsson Build fixes. * Plugins/Hosted/NetscapePluginHostManager.mm: (WebKit::NetscapePluginHostManager::spawnPluginHost): (WebKit::NetscapePluginHostManager::didCreateWindow): * Plugins/Hosted/NetscapePluginHostProxy.h: (NetscapePluginHostProxy): * Plugins/Hosted/NetscapePluginHostProxy.mm: (WebKit::NetscapePluginHostProxy::didEnterFullscreen): (WebKit::NetscapePluginHostProxy::didExitFullscreen): (WebKit::NetscapePluginHostProxy::applicationDidBecomeActive): (WebKit::NetscapePluginHostProxy::endModal): (WebKit): (WebKit::NetscapePluginHostProxy::makeCurrentProcessFrontProcess): (WebKit::NetscapePluginHostProxy::makePluginHostProcessFrontProcess): (WebKit::NetscapePluginHostProxy::isPluginHostProcessFrontProcess): 2012-10-01 Brady Eidson Remove the Safari 2 -> Safari 3 icon database import code. https://bugs.webkit.org/show_bug.cgi?id=98113 Reviewed by Maciej Stachowiak. Nuke the performImport() IconDatabaseClient method, as well as the supporting methods. * Misc/WebIconDatabase.mm: * Misc/WebIconDatabaseInternal.h: * Misc/WebIconDatabasePrivate.h: * WebCoreSupport/WebIconDatabaseClient.h: * WebCoreSupport/WebIconDatabaseClient.mm: * WebKit.exp: 2012-09-28 Anders Carlsson Remove support for method overloading from bridge code https://bugs.webkit.org/show_bug.cgi?id=97959 Reviewed by Dan Bernstein. Update for WebCore changes; MethodList has been replaced with a single Method* everywhere. * Plugins/Hosted/ProxyInstance.h: (ProxyInstance): * Plugins/Hosted/ProxyInstance.mm: (ProxyClass): (WebKit::ProxyClass::methodNamed): (WebKit::ProxyRuntimeMethod::create): (WebKit::ProxyRuntimeMethod::ProxyRuntimeMethod): (WebKit::ProxyInstance::getMethod): (WebKit::ProxyInstance::invokeMethod): (WebKit::ProxyInstance::methodNamed): 2012-09-28 Anders Carlsson Remove Java bridge https://bugs.webkit.org/show_bug.cgi?id=97954 Reviewed by Sam Weinig. The Java bridge is not used by any port; Mac now has a NPAPI Java plug-in. * WebCoreSupport/WebFrameLoaderClient.h: * WebCoreSupport/WebFrameLoaderClient.mm: Make sure that we try to load the NPAPI Java plug-in. 2012-09-27 Anders Carlsson Get rid of more unused WK1 plug-in code https://bugs.webkit.org/show_bug.cgi?id=97835 Reviewed by Mark Rowe. * Plugins/WebBasePluginPackage.mm: Remove JavaCFMPluginFilename #define. (-[WebBasePluginPackage initWithPath:]): #ifndef __ppc__ is always true now. (-[WebBasePluginPackage isJavaPlugIn]): Remove JavaCFMPluginFilename. * Plugins/WebNetscapeDeprecatedFunctions.c: Removed. * Plugins/WebNetscapeDeprecatedFunctions.h: Removed. Remove functions that nobody calls anymore. * Plugins/WebNetscapePluginPackage.mm: Remove +initialize call, the earliest version of Shockwave we now support doesn't require us to have a valid CurApRefNum file anymore. (-[WebNetscapePluginPackage _tryLoad]): Remove more unused code. * Plugins/WebPluginDatabase.h: Remove CFM from a comment. 2012-09-27 Anders Carlsson Fix 32-bit build. * Plugins/WebNetscapePluginPackage.mm: (-[WebNetscapePluginPackage _initWithPath:]): Add back the architecture check that i accidentally. 2012-09-27 Anders Carlsson Remove support for CFM plug-ins in WebKit1 https://bugs.webkit.org/show_bug.cgi?id=97822 Reviewed by Mark Rowe. I'm pretty sure that CFM style plug-ins haven't been used for the last ten years or so, so it's safe to remove them (especially since they're PPC only). * Plugins/WebNetscapePluginPackage.h: * Plugins/WebNetscapePluginPackage.mm: (-[WebNetscapePluginPackage openResourceFile]): (-[WebNetscapePluginPackage closeResourceFile:]): (-[WebNetscapePluginPackage _initWithPath:]): (-[WebNetscapePluginPackage _tryLoad]): (-[WebNetscapePluginPackage _unloadWithShutdown:]): * Plugins/WebPluginDatabase.mm: (PluginPackageCandidates::PluginPackageCandidates): (PluginPackageCandidates::update): (PluginPackageCandidates::bestCandidate): (PluginPackageCandidates): 2012-09-26 Anders Carlsson Stop using kCFURLHFSPathStyle https://bugs.webkit.org/show_bug.cgi?id=97731 Reviewed by Tim Horton. Stop passing Carbon style paths to the plug-in. Both WebKitPluginHost, WebKit2 and Firefox pass POSIX style paths which makes more sense. * Plugins/WebNetscapePluginStream.mm: (WebNetscapePluginStream::destroyStream): 2012-09-25 Dan Bernstein WebKit/mac part of [mac] Stop using screen fonts https://bugs.webkit.org/show_bug.cgi?id=97620 Reviewed by John Sullivan. * WebView/WebPreferences.mm: (+[WebPreferences initialize]): Changed the default value of the screenFontSubstitutionEnabled preference to NO. * WebView/WebView.mm: (-[WebView _preferencesChanged:]): Changed to enable screen font substitution also if the value of the NSFontDefaultScreenFontSubstitutionEnabled user defaults key is YES. 2012-09-21 Jeffrey Pfau Add WebKit1 SPI for storage blocking preference https://bugs.webkit.org/show_bug.cgi?id=97356 Reviewed by Brady Eidson. * WebView/WebPreferenceKeysPrivate.h: * WebView/WebPreferences.mm: (+[WebPreferences initialize]): (-[WebPreferences setStorageBlockingPolicy:]): (-[WebPreferences storageBlockingPolicy]): * WebView/WebPreferencesPrivate.h: * WebView/WebView.mm: (-[WebView _preferencesChanged:]): 2012-09-24 Simon Fraser Have DumpRenderTree and WebKitTestRunner crash logs show which test crashed Reviewed by Mark Rowe. Use a new WebKitSytemInterface function to add data to crash logs about which test was running when the crash happened. * WebCoreSupport/WebSystemInterface.mm: (InitWebCoreSystemInterface): Hook up the function pointer for [wk|WK]SetCrashReportApplicationSpecificInformation. 2012-09-25 Beth Dakin https://bugs.webkit.org/show_bug.cgi?id=95397 Need to merge didFirstVisuallyNonEmptyLayout and didNewFirstVisuallyNonEmptyLayout -and corresponding- Reviewed by Sam Weinig. The new API has two parts. First, the client has to opt into which layout milestones they are interested in hearing about using [WebView _layoutMilestones]. Then, WebKit will call the WebFrameLoader delegate's didLayout(WebLayoutMilestones) callback when the specified layout milestones have fired. didLayout takes the WebLayoutMilestones bit mask, which will indicate which milestones have fired since it is possible for two to fire at the same time. Remove dispatchDidFirstLayout, dispatchDidFirstVisuallyNonEmptyLayout, and dispatchDidNewFirstVisuallyNonEmptyLayout. They are now replaced by dispatchDidLayout(LayoutMilestones) * WebCoreSupport/WebFrameLoaderClient.h: (WebFrameLoaderClient): * WebCoreSupport/WebFrameLoaderClient.mm: (WebFrameLoaderClient::dispatchDidLayout): Add new function to the delegate for didLayout. * WebView/WebDelegateImplementationCaching.h: (WebFrameLoadDelegateImplementationCache): We need a delegate template that takes an NSUInteger. * WebView/WebDelegateImplementationCaching.mm: (CallDelegate): (CallFrameLoadDelegate): Convert between WebCore and WebKit versions of the bit mask. * WebView/WebView.mm: (coreLayoutMilestones): (kitLayoutMilestones): Add new delegate, and set the appropriate layout milestones in WebCore based on old delegates having implementations. (-[WebView _cacheFrameLoadDelegateImplementations]): Call into WebCore. (-[WebView _listenForLayoutMilestones:]): (-[WebView _layoutMilestones]): * WebView/WebViewInternal.h: * WebView/WebViewPrivate.h: 2012-09-24 Benjamin Poulain Fix Geolocation error reporting in the test support https://bugs.webkit.org/show_bug.cgi?id=97386 Reviewed by Sam Weinig. * WebView/WebView.mm: (-[WebView _geolocationDidFailWithMessage:]): * WebView/WebViewPrivate.h: 2012-09-24 Ryosuke Niwa suspend/resumeWidgetHierarchyUpdates should be a RAII object https://bugs.webkit.org/show_bug.cgi?id=96706 Reviewed by Simon Fraser. * WebView/WebHTMLView.mm: (-[WebHTMLView _invalidateGStatesForTree]): 2012-09-21 Chris Rogers Add Web Audio support for deprecated/legacy APIs https://bugs.webkit.org/show_bug.cgi?id=97050 Reviewed by Eric Carlson. * Configurations/FeatureDefines.xcconfig: 2012-09-19 Dan Bernstein WebKit/mac part of adding a setting and API for disabling screen font substitution https://bugs.webkit.org/show_bug.cgi?id=97168 Reviewed by Tim Horton. * WebView/WebPreferenceKeysPrivate.h: Defined WebKitScreenFontSubstitutionEnabledKey. * WebView/WebPreferences.mm: (+[WebPreferences initialize]): Added a default value of YES for the new preference key. (-[WebPreferences setScreenFontSubstitutionEnabled:]): Added this setter. * WebView/WebPreferencesPrivate.h: * WebView/WebView.mm: (-[WebView _preferencesChanged:]): Added a call to Settings::setScreenFontSubstitutionEnabled to push the preference down to Settings. 2012-09-17 Dan Bernstein [mac WebKit1]: -[WebView _setPaginationBehavesLikeColumns:] is a no-op https://bugs.webkit.org/show_bug.cgi?id=96971 Reviewed by Sam Weinig. * WebView/WebView.mm: (-[WebView _setPaginationBehavesLikeColumns:]): Added a call to setPagination(). 2012-09-14 Adam Barth Remove webkitPostMessage https://bugs.webkit.org/show_bug.cgi?id=96577 Reviewed by Ojan Vafai. Add ENABLE_LEGACY_VENDOR_PREFIXES flag. * Configurations/FeatureDefines.xcconfig: 2012-09-14 Beth Dakin https://bugs.webkit.org/show_bug.cgi?id=96688 Put position:fixed elements in their own layers and allow them to create a stacking context -and corresponding- Reviewed by Simon Fraser. Enable these settings in WK1 too for consistency. * WebView/WebView.mm: (-[WebView _preferencesChanged:]): 2012-09-13 Sheriff Bot Unreviewed, rolling out r128552. http://trac.webkit.org/changeset/128552 https://bugs.webkit.org/show_bug.cgi?id=96729 Still breaks the test on chromium linux debug. It's quite annoying. (Requested by rniwa on #webkit). * WebView/WebHTMLView.mm: (-[WebHTMLView _invalidateGStatesForTree]): 2012-09-13 Ryosuke Niwa suspend/resumeWidgetHierarchyUpdates should be a RAII object https://bugs.webkit.org/show_bug.cgi?id=96706 Reviewed by Simon Fraser. * WebView/WebHTMLView.mm: (-[WebHTMLView _invalidateGStatesForTree]): 2012-09-13 Sheriff Bot Unreviewed, rolling out r128531. http://trac.webkit.org/changeset/128531 https://bugs.webkit.org/show_bug.cgi?id=96719 plugins/document-open.html crash on Chromium-Linux (Requested by tkent1 on #webkit). * WebView/WebHTMLView.mm: (-[WebHTMLView _invalidateGStatesForTree]): 2012-09-13 Benjamin Poulain Improve the SourceProvider hierarchy https://bugs.webkit.org/show_bug.cgi?id=95635 Reviewed by Geoffrey Garen. * Plugins/Hosted/NetscapePluginInstanceProxy.mm: Fix a #include abuse. * WebView/WebScriptDebugger.mm: (toNSString): We can now use the (faster) implicit conversion from String to NSString. 2012-09-13 Ryosuke Niwa suspend/resumeWidgetHierarchyUpdates should be a RAII object https://bugs.webkit.org/show_bug.cgi?id=96706 Reviewed by Simon Fraser. * WebView/WebHTMLView.mm: (-[WebHTMLView _invalidateGStatesForTree]): 2012-09-12 Sheriff Bot Unreviewed, rolling out r127876. http://trac.webkit.org/changeset/127876 https://bugs.webkit.org/show_bug.cgi?id=96600 mouse click doesn't work for spin button if spin button in iframe (Requested by yosin on #webkit). * WebCoreSupport/WebFrameLoaderClient.mm: (WebFrameLoaderClient::actionDictionary): * WebView/WebHTMLView.mm: (-[WebHTMLView elementAtPoint:allowShadowContent:]): 2012-09-11 Geoffrey Garen Mac build fix: Commit a file I forgot. * WebView/WebScriptDebugDelegate.mm: (-[WebScriptCallFrame functionName]): 2012-09-11 Michael Saboff Build fixed for http://trac.webkit.org/changeset/128243 Rubber stamped by Stephanie Lewis. Added missing include file needed by 96422. * icu/unicode/unorm2.h: Added. 2012-09-11 Michael Saboff Build fixed for http://trac.webkit.org/changeset/128243 Rubber stamped by Stephanie Lewis. Added missing include file needed by 96422. * icu/unicode/ptypes.h: Added. 2012-09-11 Michael Saboff Update ICU header files to more recent version https://bugs.webkit.org/show_bug.cgi?id=96422 Reviewed by Geoff Garen. Updated ICU header files to 4.6.1. Modifications made as part of the merge are: platform.h - Changed ifndef / define / endif for U_HAVE_UINT8_T, U_HAVE_UINT16_T, U_HAVE_UINT32_T, U_HAVE_UINT64_T, U_IS_BIG_ENDIAN and U_ENABLE_TRACING to match the existing platform.h putil.h (line 132) - Changes defined(U_WINDOWS) to defined(WIN32) || defined(OS2) to match existing putil.h ustring.h (line 945) - Wrapped macro argument cs with { (const UChar *)cs } to match existing ustring.h utypes.h (line 545) - Changed defined(U_WINDOWS) to defined(WIN32) to match existing utypes.h * icu/unicode/localpointer.h: Added. * icu/unicode/parseerr.h: * icu/unicode/platform.h: * icu/unicode/putil.h: * icu/unicode/uchar.h: * icu/unicode/uconfig.h: * icu/unicode/uidna.h: * icu/unicode/uiter.h: * icu/unicode/umachine.h: * icu/unicode/unorm.h: * icu/unicode/urename.h: * icu/unicode/uscript.h: * icu/unicode/ustring.h: * icu/unicode/utf.h: * icu/unicode/utf16.h: * icu/unicode/utf8.h: * icu/unicode/utypes.h: * icu/unicode/uvernum.h: Added. * icu/unicode/uversion.h: 2012-09-11 Matt Lilek OS X port should compile with newer versions of clang https://bugs.webkit.org/show_bug.cgi?id=96434 m_isTerminated is unused in the Hosted flavor of NetscapePluginStream. Reviewed by Anders Carlsson. * Plugins/Hosted/HostedNetscapePluginStream.h: (HostedNetscapePluginStream): * Plugins/Hosted/HostedNetscapePluginStream.mm: (WebKit::HostedNetscapePluginStream::HostedNetscapePluginStream): 2012-09-10 Jer Noble Unreviewed; rolling out r128081. http://trac.webkit.org/changeset/128081 https://bugs.webkit.org/show_bug.cgi?id=96134 New test http/tests/media/video-donottrack.html fails to run on Apple test bots. * WebCoreSupport/WebFrameLoaderClient.h: * WebCoreSupport/WebFrameLoaderClient.mm: * WebView/WebDelegateImplementationCaching.h: (WebFrameLoadDelegateImplementationCache): * WebView/WebDelegateImplementationCaching.mm: * WebView/WebView.mm: (-[WebView _cacheFrameLoadDelegateImplementations]): 2012-09-07 Jon Lee Update notifications to latest spec https://bugs.webkit.org/show_bug.cgi?id=91726 Reviewed by Alexey Proskuryakov. Expose lang and dir. * WebView/WebNotification.h: * WebView/WebNotification.mm: (-[WebNotification lang]): (-[WebNotification dir]): 2012-09-10 Jer Noble NSInvalidArgumentException in WebFrameLoaderClient::shouldSendDoNotTrackHTTPHeader() https://bugs.webkit.org/show_bug.cgi?id=96320 Reviewed by Geoffrey Garen. Client was being cached as the FrameLoaderClient, but requests were sent to the ResourceLoadClient. * WebCoreSupport/WebFrameLoaderClient.mm: (WebFrameLoaderClient::shouldSendDoNotTrackHTTPHeader): Send the request to the FrameLoadDelegate. * WebView/WebDelegateImplementationCaching.h: * WebView/WebDelegateImplementationCaching.mm: (CallFrameLoadDelegateReturningBoolean): Added. 2012-09-07 Jer Noble