2017-03-16 Matthew Hanson Merge r213846. rdar://problem/30983702 2017-03-13 Per Arne Vollan [Win] Compile fix. https://bugs.webkit.org/show_bug.cgi?id=169545 Reviewed by Brent Fulgham. Fix inconsistent dll linkage warnings. * WebKitDLL.cpp: * WebKitDLL.h: 2017-03-16 Matthew Hanson Merge r213737. rdar://problem/30983702 2017-03-10 Brent Fulgham [Win] Re-export a few symbols for backwards compatibility https://bugs.webkit.org/show_bug.cgi?id=169490 Reviewed by Dean Jackson. Re-introduce a workaround that re-exports a few JavaScriptCore functions that had been erroneously exported by WebKit in older builds. This is needed so that we do not break certain old software still being used. * WebKitDLL.cpp: (DllMain): Bind functions at startup. (bindJavaScriptTrampoline): Find JavaScriptCore library functions and re-export them from WebKit.dll. * WebKitDLL.h: Only advertise these functions when building WebKt itself. 2017-02-28 Per Arne Vollan [Win] REGRESSION(r211254): IWebPreferencesPrivate binary API broken https://bugs.webkit.org/show_bug.cgi?id=168928 Reviewed by Brett Fulgham. Move new methods to end of last interface. * Interfaces/IWebPreferencesPrivate.idl: * WebPreferences.h: * WebView.cpp: (WebView::notifyPreferencesChanged): 2017-02-20 Matthew Hanson Rollout r212538. rdar://problem/30541748 2017-02-20 Matthew Hanson Merge r212652. rdar://problem/30435303 2017-02-20 Per Arne Vollan [Win] Custom scale factor is not applied in all cases. https://bugs.webkit.org/show_bug.cgi?id=168117 Reviewed by Brent Fulgham. We should not call the function deviceScaleFactorForWindow directly, since this will return the system scale factor, and ignore the custom scale factor. * WebView.cpp: (WebView::handleContextMenuEvent): (WebView::handleMouseEvent): (WebView::setAcceleratedCompositing): 2017-02-17 Matthew Hanson Rollout r212500. rdar://problem/29904368 2017-02-17 Matthew Hanson Rollout r212502. rdar://problem/29904368 2017-02-16 Matthew Hanson Merge r212518. rdar://problem/30541748 2017-02-16 Daniel Bates Remove Chromium-specific code to call FrameLoaderClient::redirectDataToPlugin(nullptr) https://bugs.webkit.org/show_bug.cgi?id=168417 Reviewed by Brent Fulgham. Update override of FrameLoaderClient::redirectDataToPlugin() to take a Widget& instead of a Widget* as it is always called with a valid Widget. * WebCoreSupport/WebFrameLoaderClient.cpp: (WebFrameLoaderClient::redirectDataToPlugin): * WebCoreSupport/WebFrameLoaderClient.h: 2017-02-16 Matthew Hanson Merge r212175. rdar://problem/29904368 2017-02-10 Daniel Bates Attempt to fix the WinCairo 64-Bit Release build following (https://bugs.webkit.org/show_bug.cgi?id=166774) Touch WebKit.idl in the hopes that it will cause CMake to regenerate the COM interface files. * Interfaces/WebKit.idl: 2017-02-16 Matthew Hanson Merge r212173. rdar://problem/29904368 2017-02-10 Daniel Bates Detach frame from document when entering page cache https://bugs.webkit.org/show_bug.cgi?id=166774 Reviewed by Chris Dumez. * Interfaces/IWebPreferencesPrivate.idl: * WebPreferenceKeysPrivate.h: * WebPreferences.cpp: (WebPreferences::initializeDefaultSettings): (WebPreferences::setAllowsPageCacheWithWindowOpener): Deleted. (WebPreferences::allowsPageCacheWithWindowOpener): Deleted. * WebPreferences.h: * WebView.cpp: (WebView::notifyPreferencesChanged): 2017-02-09 Matthew Hanson Merge r211254. rdar://problem/30188490 2017-01-26 Chris Dumez Crash when navigating back to a page in PacheCache when one of its frames has been removed https://bugs.webkit.org/show_bug.cgi?id=167421 Reviewed by Darin Adler. Add a new setting allowing layout tests to enable PageCache in a window that has an opener, for convenience. * WebPreferenceKeysPrivate.h: * WebPreferences.cpp: (WebPreferences::initializeDefaultSettings): * WebPreferences.h: 2017-02-05 Matthew Hanson Merge r211569. rdar://problem/30229990 2017-02-02 Chris Dumez [Crash] com.apple.WebKit.WebContent at WebKit: WebKit::WebPage::fromCorePage() https://bugs.webkit.org/show_bug.cgi?id=167738 Reviewed by Andreas Kling. The BackForwardClient no longer needs to worry about removing HistoryItems from the PageCache now that WebCore takes care of it. * BackForwardList.cpp: (BackForwardList::close): 2017-02-05 Matthew Hanson Merge r211584. rdar://problem/29994156 2017-02-02 Per Arne Vollan [Win][HiDPI] Scale factor is applied twice in accelerated compositing mode. https://bugs.webkit.org/show_bug.cgi?id=167732 Reviewed by Brent Fulgham. Backing layer should not be scaled when CACFLayerSetContentsScale is used for scaling. * WebView.cpp: (WebView::setAcceleratedCompositing): 2017-02-05 Matthew Hanson Merge r211207. rdar://problem/30154036 2017-01-26 Per Arne Vollan Crash when setting custom scale factor. https://bugs.webkit.org/show_bug.cgi?id=167369 Reviewed by Sam Weinig. Add null pointer check. * WebView.cpp: (WebView::setCustomBackingScaleFactor): 2017-01-20 Matthew Hanson Merge r210949. rdar://problem/30108531 2017-01-19 Chris Dumez iterable<> should be enabled on WK1 https://bugs.webkit.org/show_bug.cgi?id=167221 Reviewed by Youenn Fablet. * Interfaces/IWebPreferencesPrivate.idl: * WebPreferenceKeysPrivate.h: * WebPreferences.cpp: (WebPreferences::setDOMIteratorEnabled): Deleted. (WebPreferences::domIteratorEnabled): Deleted. * WebPreferences.h: * WebView.cpp: (WebView::notifyPreferencesChanged): 2016-12-10 Filip Pizlo The DOM should have an advancing wavefront opaque root barrier https://bugs.webkit.org/show_bug.cgi?id=165712 Reviewed by Yusuke Suzuki. Propagate the JSDOMWindowBase::commonVM() -> commonVM() change. * Plugins/PluginView.cpp: (WebCore::PluginView::start): (WebCore::PluginView::stop): (WebCore::PluginView::performRequest): (WebCore::PluginView::npObject): (WebCore::PluginView::privateBrowsingStateChanged): * Plugins/PluginViewWin.cpp: (WebCore::PluginView::dispatchNPEvent): (WebCore::PluginView::handleKeyboardEvent): (WebCore::PluginView::handleMouseEvent): (WebCore::PluginView::setNPWindowRect): * WebCoreStatistics.cpp: (WebCoreStatistics::javaScriptObjectsCount): (WebCoreStatistics::javaScriptGlobalObjectsCount): (WebCoreStatistics::javaScriptProtectedObjectsCount): (WebCoreStatistics::javaScriptProtectedGlobalObjectsCount): (WebCoreStatistics::javaScriptProtectedObjectTypeCounts): (WebCoreStatistics::javaScriptObjectTypeCounts): (WebCoreStatistics::shouldPrintExceptions): (WebCoreStatistics::setShouldPrintExceptions): (WebCoreStatistics::memoryStatistics): * WebJavaScriptCollector.cpp: (WebJavaScriptCollector::objectCount): 2016-12-09 Geoffrey Garen TextPosition and OrdinalNumber should be more like idiomatic numbers https://bugs.webkit.org/show_bug.cgi?id=165678 Reviewed by Filip Pizlo. Adopt default constructor. * Plugins/PluginPackage.cpp: (WebCore::makeSource): 2016-12-08 Filip Pizlo Enable SharedArrayBuffer, remove the flag https://bugs.webkit.org/show_bug.cgi?id=165614 Rubber stamped by Geoffrey Garen. * Interfaces/IWebPreferencesPrivate.idl: 2016-11-26 Yusuke Suzuki [WTF] Import std::optional reference implementation as WTF::Optional https://bugs.webkit.org/show_bug.cgi?id=164199 Reviewed by Saam Barati and Sam Weinig. Use WTF::Optional::value_or. * Plugins/PluginView.cpp: (WebCore::PluginView::performRequest): * WebCoreSupport/WebFrameLoaderClient.cpp: (WebFrameLoaderClient::dispatchDidCommitLoad): * WebCoreSupport/WebFrameLoaderClient.h: * WebSecurityOrigin.cpp: (WebSecurityOrigin::port): 2016-11-19 Simon Fraser [iOS WK2] When zoomed in and panning on pages with fixed bars, parts of the bars are sometimes missing https://bugs.webkit.org/show_bug.cgi?id=164855 Reviewed by Sam Weinig. Remove the "inStableState" parameter from flushCompositingState() etc. * WebCoreSupport/AcceleratedCompositingContext.cpp: (AcceleratedCompositingContext::flushPendingLayerChanges): * WebView.cpp: (WebView::flushPendingGraphicsLayerChanges): 2016-11-16 Yusuke Suzuki [ES6][WebCore] Change ES6_MODULES compile time flag to runtime flag https://bugs.webkit.org/show_bug.cgi?id=164827 Reviewed by Ryosuke Niwa. * Interfaces/IWebPreferencesPrivate.idl: * WebPreferenceKeysPrivate.h: * WebPreferences.cpp: (WebPreferences::setES6ModulesEnabled): (WebPreferences::es6ModulesEnabled): * WebPreferences.h: * WebView.cpp: (WebView::notifyPreferencesChanged): 2016-11-14 Alex Christensen Move SecurityOrigin::createFromDatabaseIdentifier to SecurityOriginData https://bugs.webkit.org/show_bug.cgi?id=164720 Reviewed by Brady Eidson. * WebDatabaseManager.cpp: (DidModifyOriginData::dispatchToMainThread): (DidModifyOriginData::DidModifyOriginData): (WebDatabaseManager::dispatchDidModifyOrigin): (WebDatabaseManager::dispatchDidModifyDatabase): * WebDatabaseManager.h: * WebSecurityOrigin.cpp: (WebSecurityOrigin::usage): (WebSecurityOrigin::quota): (WebSecurityOrigin::setQuota): 2016-11-13 Darin Adler Fix exception handling in SQL database code, streamline and update code https://bugs.webkit.org/show_bug.cgi?id=164685 Reviewed by Sam Weinig. * WebDatabaseManager.cpp: (WebDatabaseManager::origins): Use DatabaseTracker. (WebDatabaseManager::databasesWithOrigin): Ditto. (WebDatabaseManager::detailsForDatabase): Use reference. (WebDatabaseManager::deleteAllDatabases): Use DatabaseTracker. (WebDatabaseManager::deleteOrigin): Ditto. (WebDatabaseManager::deleteDatabase): Ditto. (WebDatabaseManager::dispatchDidModifyOrigin): Use reference and DatabaseTracker. (WebDatabaseManager::setQuota): Ditto. (WebDatabaseManager::dispatchDidModifyDatabase): Ditto. * WebDatabaseManager.h: Updated client functions to take a reference. * WebSecurityOrigin.cpp: (WebSecurityOrigin::usage): Update to use DatabaseTracker. (WebSecurityOrigin::quota): Ditto. (WebSecurityOrigin::setQuota): Ditto. 2016-11-11 Eric Carlson [MediaStream] defer resolution of getUserMedia promise made in a background tab https://bugs.webkit.org/show_bug.cgi?id=164643 Unreviewed build fix after r208606. * Plugins/PluginView.cpp: (WebCore::PluginView::mediaCanStart): * Plugins/PluginView.h: 2016-11-11 Darin Adler Move Node from ExceptionCode to ExceptionOr https://bugs.webkit.org/show_bug.cgi?id=164515 Reviewed by Sam Weinig. * DOMCoreClasses.cpp: (DOMNode::insertBefore): Update exception handling. (DOMNode::removeChild): Ditto. 2016-10-14 Carlos Garcia Campos MemoryPressureHandler shouldn't know how to release WebCore memory https://bugs.webkit.org/show_bug.cgi?id=160497 Reviewed by Michael Catanzaro. Set the low memory handler before installing the memory pressure handler. * WebView.cpp: (WebView::initWithFrame): 2016-11-09 Alex Christensen Fix Windows build after r208499 https://bugs.webkit.org/show_bug.cgi?id=164562 * WebKitDLL.cpp: (shutDownWebKit): 2016-11-09 Darin Adler Move Range from ExceptionCode to ExceptionOr https://bugs.webkit.org/show_bug.cgi?id=164457 Reviewed by Alex Christensen. * WebView.cpp: (WebView::onIMERequestCharPosition): Updated for new exception handling. 2016-11-09 Darin Adler Move EventTarget from ExceptionCode to ExceptionOr https://bugs.webkit.org/show_bug.cgi?id=164465 Reviewed by Youenn Fablet. * DOMCoreClasses.cpp: (DOMNode::dispatchEvent): Updated exception handling. (DOMWindow::dispatchEvent): Ditto. 2016-11-04 Wenson Hsieh Safari does not emit composition end if blurred for dead key / Japanese IME https://bugs.webkit.org/show_bug.cgi?id=164369 Reviewed by Ryosuke Niwa. Add a stub implementation of canceledComposition. * WebCoreSupport/WebEditorClient.cpp: (WebEditorClient::canceledComposition): * WebCoreSupport/WebEditorClient.h: 2016-11-04 Per Arne Vollan [Win] Page visibility tests are timing out. https://bugs.webkit.org/show_bug.cgi?id=164363 Reviewed by Brent Fulgham. Add method to set page visibility. * Interfaces/IWebViewPrivate.idl: * WebView.cpp: (WebView::QueryInterface): (WebView::findString): (WebView::setVisibilityState): * WebView.h: 2016-11-01 Ryosuke Niwa Remove CUSTOM_ELEMENTS build flag https://bugs.webkit.org/show_bug.cgi?id=164267 Reviewed by Antti Koivisto. Removed the build flag. * WebView.cpp: (WebView::notifyPreferencesChanged): 2016-10-29 Filip Pizlo JSC should support SharedArrayBuffer https://bugs.webkit.org/show_bug.cgi?id=163986 Reviewed by Keith Miller. Support the RuntimeFlag. * Interfaces/IWebPreferencesPrivate.idl: 2016-10-31 Joseph Pecoraro Use #pragma once in WebCore https://bugs.webkit.org/show_bug.cgi?id=164194 Rubber-stamped by Sam Weinig. * WebCoreSupport/WebContextMenuClient.cpp: (WebContextMenuClient::isSpeaking): (WebContextMenuClient::shareMenuItem): Deleted. * WebCoreSupport/WebContextMenuClient.h: Remove this dead code since r192333. 2016-10-31 Darin Adler Convert Document from ExceptionCode to Exception https://bugs.webkit.org/show_bug.cgi?id=164212 Reviewed by Alex Christensen. * DOMCoreClasses.cpp: (DOMDocument::createElement): Updated exception handling. (DOMDocument::createEvent): Ditto. 2016-10-30 Darin Adler Move Element, NamedNodeMap, and DOMStringMap from ExceptionCode to Exception https://bugs.webkit.org/show_bug.cgi?id=164206 Reviewed by Chris Dumez. * DOMCoreClasses.cpp: (DOMElement::setAttribute): Updated exception handling. * DOMHTMLClasses.cpp: (DOMHTMLElement::setInnerHTML): Ditto. 2016-10-30 Brent Fulgham Unreviewed build fix (Direct2D) * WebView.cpp: (WebView::paintWithDirect2D): Update for revised GraphicsContext begin/end draw behavior. 2016-10-28 Darin Adler Move all classes in the HTML directory from ExceptionCode to Exception https://bugs.webkit.org/show_bug.cgi?id=163876 Reviewed by Sam Weinig. * DOMHTMLClasses.cpp: (DOMHTMLElement::setInnerText): Update exception handling. * FullscreenVideoController.cpp: (FullscreenVideoController::setVolume): Ditto. 2016-10-27 Brent Fulgham Unreviewed build fix. * WebView.cpp: (WebView::paintWithDirect2D): Correct merge error. 2016-10-25 Brent Fulgham [Win][Direct2D] Create a RAII Helper Class for the Render Target https://bugs.webkit.org/show_bug.cgi?id=164005 Reviewed by Alex Christensen. * WebView.cpp: (WebView::sizeChanged): Construct RenderTarget with higher-resolution display timer. (WebView::paintWithDirect2D): Revise to use new RenderTargetHelper class. 2016-10-27 Wenson Hsieh Support "insertFromDrop" and "deleteByDrag" for the InputEvent spec https://bugs.webkit.org/show_bug.cgi?id=163948 Reviewed by Darin Adler. Add support for new drag and drop-related EditAction enum values. * WebCoreSupport/WebEditorClient.cpp: (undoNameForEditAction): 2016-10-26 Brian Burg Web Inspector: remove unused bool return value from FrontendChannel::sendMessageToFrontend https://bugs.webkit.org/show_bug.cgi?id=164046 Reviewed by Joseph Pecoraro. * WebCoreSupport/WebInspectorClient.h: 2016-10-19 Alex Christensen Revert r207151 https://bugs.webkit.org/show_bug.cgi?id=163675 Reviewed by Brent Fulgham. * DefaultDownloadDelegate.h: * WebCoreSupport/WebFrameLoaderClient.cpp: (WebFrameLoaderClient::savePlatformDataToCachedFrame): * WebCoreSupport/WebFrameNetworkingContext.cpp: (WebFrameNetworkingContext::ensurePrivateBrowsingSession): * WebCoreSupport/WebFrameNetworkingContext.h: * WebCoreSupport/WebPlatformStrategies.cpp: * WebDownload.h: * WebError.cpp: (WebError::localizedDescription): (WebError::sslPeerCertificate): * WebError.h: * WebMutableURLRequest.cpp: (WebMutableURLRequest::mutableCopy): * WebURLAuthenticationChallenge.cpp: (WebURLAuthenticationChallenge::initWithProtectionSpace): (WebURLAuthenticationChallenge::initWithAuthenticationChallenge): * WebURLResponse.cpp: (WebURLResponse::sslPeerCertificate): * WebURLResponse.h: * WebView.cpp: (WebView::setCacheModel): (WebView::canHandleRequest): (WebView::notifyPreferencesChanged): (updateSharedSettingsFromPreferencesIfNeeded): 2016-10-18 Darin Adler Move many miscellaneous classes from ExceptionCode to Exception https://bugs.webkit.org/show_bug.cgi?id=163645 Reviewed by Ryosuke Niwa. * DOMCoreClasses.cpp: (DOMDocument::getComputedStyle): Use ptr instead of get since the return value is now Ref instead of RefPtr. 2016-10-18 Anders Carlsson Try to fix the Windows build. * WebHistoryItem.cpp: (WebHistoryItem::redirectURLs): 2016-10-18 Anders Carlsson Move some history specific HistoryItem code to WebHistoryItem https://bugs.webkit.org/show_bug.cgi?id=163567 Reviewed by Tim Horton. Remove these, they aren't used. * WebCoreSupport/WebFrameLoaderClient.cpp: (WebFrameLoaderClient::updateGlobalHistoryRedirectLinks): * WebHistory.cpp: (WebHistory::visitedURL): * WebHistoryItem.cpp: (WebHistoryItem::initFromDictionaryRepresentation): (WebHistoryItem::dictionaryRepresentation): 2016-10-16 Darin Adler Move CSS classes from ExceptionCode to Exception https://bugs.webkit.org/show_bug.cgi?id=163494 Reviewed by Sam Weinig. * DOMCSSClasses.cpp: (DOMCSSStyleDeclaration::setCssText): Remove ExceptionCode handling. (DOMCSSStyleDeclaration::setProperty): Ditto. 2016-10-12 Anders Carlsson Copy BackForwardList from WebCore to WebKit/win https://bugs.webkit.org/show_bug.cgi?id=163360 Reviewed by Alex Christensen. Use our local BackForwardList class instead of WebCore::BackForwardList. * BackForwardList.cpp: Added. * BackForwardList.h: Added. * WebBackForwardList.h: * WebView.cpp: (WebView::initWithFrame): (WebView::backForwardList): 2016-10-13 Anders Carlsson Get rid of the HistoryItemVector typedef https://bugs.webkit.org/show_bug.cgi?id=163398 Reviewed by Beth Dakin. Expand the HistoryitemVector typedef instead to make it more clear what types we are dealing with. * WebBackForwardList.cpp: (WebBackForwardList::backListWithLimit): (WebBackForwardList::forwardListWithLimit): * WebHistoryItem.cpp: (WebHistoryItem::children): 2016-10-12 Brent Fulgham [Win] Unreviewed build fix after r207218. The CQ-landed patch used the old USE(CFNETWORK) compiler guard. It should be using USE(CFURLCONNECTION). * WebCache.cpp: Missed one! 2016-10-12 Brent Fulgham [Win] Unreviewed build fix after r207218. The CQ-landed patch used the old USE(CFNETWORK) compiler guard. It should be using USE(CFURLCONNECTION). * WebCache.cpp: (WebCache::cacheFolder): (WebCache::setCacheFolder): 2016-10-12 Per Arne Vollan [Win] Parallel DRTs are sharing preferences and cache. https://bugs.webkit.org/show_bug.cgi?id=163013 Reviewed by Brent Fulgham. Make it possible for a WebKit client to use separate preferences and cache. * Interfaces/IWebPreferencesPrivate.idl: * WebApplicationCache.cpp: (applicationCachePath): * WebCache.cpp: (WebCache::cacheFolder): (WebCache::setCacheFolder): * WebDatabaseManager.cpp: (databasesDirectory): * WebPreferences.cpp: (WebPreferences::applicationId): (WebPreferences::valueForKey): (WebPreferences::setValueForKey): (WebPreferences::save): (WebPreferences::QueryInterface): (WebPreferences::modernMediaControlsEnabled): (WebPreferences::setApplicationId): * WebPreferences.h: * WebView.cpp: (WebView::setCacheModel): 2016-10-11 Alex Christensen Remove dead networking code https://bugs.webkit.org/show_bug.cgi?id=163263 Reviewed by Daniel Bates. * DefaultDownloadDelegate.h: * WebCoreSupport/WebFrameLoaderClient.cpp: (WebFrameLoaderClient::savePlatformDataToCachedFrame): * WebCoreSupport/WebFrameNetworkingContext.cpp: (WebFrameNetworkingContext::ensurePrivateBrowsingSession): * WebCoreSupport/WebFrameNetworkingContext.h: * WebCoreSupport/WebPlatformStrategies.cpp: * WebDownload.h: * WebError.cpp: (WebError::localizedDescription): (WebError::sslPeerCertificate): * WebError.h: * WebMutableURLRequest.cpp: (WebMutableURLRequest::mutableCopy): * WebURLAuthenticationChallenge.cpp: (WebURLAuthenticationChallenge::initWithProtectionSpace): (WebURLAuthenticationChallenge::initWithAuthenticationChallenge): * WebURLResponse.cpp: (WebURLResponse::sslPeerCertificate): * WebURLResponse.h: * WebView.cpp: (WebView::setCacheModel): (WebView::canHandleRequest): (WebView::notifyPreferencesChanged): (updateSharedSettingsFromPreferencesIfNeeded): 2016-10-11 Ryan Haddad Unreviewed, rolling out r207067. This change caused webkitpy test failures. Reverted changeset: "[Win] Parallel DRTs are sharing preferences and cache." https://bugs.webkit.org/show_bug.cgi?id=163013 http://trac.webkit.org/changeset/207067 2016-10-11 Per Arne Vollan [Win] Parallel DRTs are sharing preferences and cache. https://bugs.webkit.org/show_bug.cgi?id=163013 Reviewed by Brent Fulgham. Make it possible for a WebKit client to use separate preferences and cache. * Interfaces/IWebPreferencesPrivate.idl: * WebApplicationCache.cpp: (applicationCachePath): * WebCache.cpp: (WebCache::cacheFolder): (WebCache::setCacheFolder): * WebDatabaseManager.cpp: (databasesDirectory): * WebPreferences.cpp: (WebPreferences::applicationId): (WebPreferences::valueForKey): (WebPreferences::setValueForKey): (WebPreferences::save): (WebPreferences::QueryInterface): (WebPreferences::modernMediaControlsEnabled): (WebPreferences::setApplicationId): * WebPreferences.h: * WebView.cpp: (WebView::setCacheModel): 2016-10-09 Wenson Hsieh Support InputEvent.inputType for the new InputEvent spec https://bugs.webkit.org/show_bug.cgi?id=163025 Reviewed by Darin Adler. * WebCoreSupport/WebEditorClient.cpp: (undoNameForEditAction): 2016-10-04 Brent Fulgham [Win][Direct2D] Connect WebCore/WebKit Drawing https://bugs.webkit.org/show_bug.cgi?id=162924 Reviewed by Alex Christensen. Update the Windows WebKit layer to optionally use the Direct2D backend. * FullscreenVideoController.cpp: Disable some CoreAnimation-based accelerated compositing logic. * FullscreenVideoController.h: * WebFrame.cpp: (WebFrame::spoolPages): Disable in Direct2D. * WebView.cpp: (WebView::ensureBackingStore): Add Direct2D logic. (WebView::scrollBackingStore): Ditto. (WebView::sizeChanged): Ditto. (WebView::paintWithDirect2D): Added. (WebView::WebViewWndProc): Call Direct2D paint routine. * WebView.h: 2016-10-02 Darin Adler Rename ExceptionCode-based exception handling to "legacy" https://bugs.webkit.org/show_bug.cgi?id=162859 Reviewed by Chris Dumez. * Interfaces/DOMEvents.idl: Let the script rename here (in a comment). 2016-09-29 Konstantin Tokarev Fixed compilation of PluginView when NETSCAPE_PLUGIN_API is disabled https://bugs.webkit.org/show_bug.cgi?id=162725 Reviewed by Alex Christensen. Fix for r206460, streamDidFinishLoading() does not override anything when NETSCAPE_PLUGIN_API is disabled because PlugivView does not inherit PluginStreamClient in this case. * Plugins/PluginView.h: 2016-09-27 Konstantin Tokarev Use override specifiers in PluginView https://bugs.webkit.org/show_bug.cgi?id=162628 Reviewed by Alex Christensen. * Plugins/PluginView.h: 2016-09-23 Antoine Quint Add a new runtime flag for work on modern media controls (off by default) https://bugs.webkit.org/show_bug.cgi?id=162420 Reviewed by Eric Carlson. * Interfaces/IWebPreferencesPrivate.idl: * WebPreferenceKeysPrivate.h: * WebPreferences.cpp: (WebPreferences::setModernMediaControlsEnabled): (WebPreferences::modernMediaControlsEnabled): (WebPreferences::setCustomElementsEnabled): Deleted. * WebPreferences.h: * WebView.cpp: (WebView::notifyPreferencesChanged): 2016-09-15 Brady Eidson WKWebView.hasOnlySecureContent always returns "YES" after going back to a CachedPage (even if it has http resources). and https://bugs.webkit.org/show_bug.cgi?id=162043 Reviewed by Brent Fulgham. * WebCoreSupport/WebFrameLoaderClient.cpp: (WebFrameLoaderClient::dispatchDidCommitLoad): * WebCoreSupport/WebFrameLoaderClient.h: 2016-09-07 Mark Lam Add CatchScope and force all exception checks to be via ThrowScope or CatchScope. https://bugs.webkit.org/show_bug.cgi?id=161498 Reviewed by Geoffrey Garen. * Plugins/PluginPackage.cpp: (WebCore::NPN_Evaluate): (WebCore::NPN_Invoke): 2016-09-06 Per Arne Vollan [Win] Null pointer crash under WebView::scrollOffset. https://bugs.webkit.org/show_bug.cgi?id=161620 Reviewed by Darin Adler. Added null pointer checks. * WebView.cpp: (WebView::scrollOffset): (WebView::scrollBy): (WebView::visibleContentRect): 2016-09-03 Darin Adler Streamline DOMImplementation, and move it to our new DOM exception system https://bugs.webkit.org/show_bug.cgi?id=161295 Reviewed by Ryosuke Niwa. * WebFrame.cpp: (WebFrame::canProvideDocumentSource): Updated to use isXMLMIMEType in its new location in MIMETypeRegistry instead of in DOMImplementation. 2016-09-02 Ryosuke Niwa Build fix attempt after r205381. * WebCoreSupport/WebEditorClient.h: 2016-08-31 Keith Rollin WebKit should set a subsystem for os_log so it's easier to filter for WebKit log messages https://bugs.webkit.org/show_bug.cgi?id=160969 Reviewed by Simon Fraser. Enable subsystem- and channel-related data and functions when using RELEASE_LOG macros. Use the DECLARE_LOG_CHANNEL, DEFINE_LOG_CHANNEL, and LOG_CHANNEL_ADDRESS macros that are now defined in WTF. * WebKitLogging.cpp: * WebKitLogging.h: * WebView.cpp: (WebView::initWithFrame): 2016-08-16 Carlos Garcia Campos [GTK] Accelerated compositing does not work in Wayland https://bugs.webkit.org/show_bug.cgi?id=115803 Reviewed by Michael Catanzaro. Update to the new GLContext API. * WebCoreSupport/AcceleratedCompositingContext.cpp: (AcceleratedCompositingContext::initialize): (AcceleratedCompositingContext::acceleratedCompositingAvailable): 2016-08-21 Alex Christensen Use Document& instead of Document* when getting cookies https://bugs.webkit.org/show_bug.cgi?id=161011 Reviewed by Darin Adler. * Plugins/PluginView.cpp: (WebCore::PluginView::getValueForURL): 2016-08-16 Simon Fraser Rename didLayout(LayoutMilestones) to didReachLayoutMilestone(), and related WK2 functions https://bugs.webkit.org/show_bug.cgi?id=160923 Reviewed by Tim Horton. didLayout(LayoutMilestones) -> didReachLayoutMilestone(LayoutMilestones) dispatchDidLayout(LayoutMilestones) -> dispatchDidReachLayoutMilestone(LayoutMilestones) * WebCoreSupport/WebFrameLoaderClient.cpp: (WebFrameLoaderClient::dispatchDidReachLayoutMilestone): (WebFrameLoaderClient::dispatchDidLayout): Deleted. * WebCoreSupport/WebFrameLoaderClient.h: 2016-08-18 Anders Carlsson Move an NPAPI-only function from WebCore to WebKit https://bugs.webkit.org/show_bug.cgi?id=160967 Reviewed by Sam Weinig. * Plugins/PluginView.cpp: (WebCore::PluginView::~PluginView): (WebCore::PluginView::PluginView): (WebCore::PluginView::getValue): * Plugins/PluginView.h: 2016-08-15 Joseph Pecoraro Remove unused includes of wtf headers https://bugs.webkit.org/show_bug.cgi?id=160839 Reviewed by Alex Christensen. * WebFrame.h: 2016-08-09 Alex Christensen Move NetworkStorageSession management to WebCore https://bugs.webkit.org/show_bug.cgi?id=160173 Reviewed by Brady Eidson. * WebCoreSupport/WebFrameNetworkingContext.cpp: (identifierBase): (WebFrameNetworkingContext::setCookieAcceptPolicyForAllContexts): (WebFrameNetworkingContext::ensurePrivateBrowsingSession): (WebFrameNetworkingContext::destroyPrivateBrowsingSession): (WebFrameNetworkingContext::blockedError): (WebFrameNetworkingContext::storageSession): (privateSession): Deleted. * WebCoreSupport/WebPlatformStrategies.cpp: (WebPlatformStrategies::createPasteboardStrategy): (WebPlatformStrategies::createBlobRegistry): 2016-08-09 Anders Carlsson Instantiate WebKit plug-ins at layout time, instead of at style resolution time https://bugs.webkit.org/show_bug.cgi?id=160715 Reviewed by Tim Horton. * WebCoreSupport/WebFrameLoaderClient.cpp: (WebFrameLoaderClient::objectContentType): 2016-08-09 Per Arne Vollan [Win] Crash in MiniBrowser. https://bugs.webkit.org/show_bug.cgi?id=160686 Reviewed by Sam Weinig. We need to specify a plugin info provider object in the page configuration. * WebView.cpp: (WebView::initWithFrame): 2016-08-09 Anders Carlsson Fix build. * WebCoreSupport/WebPlatformStrategies.h: 2016-08-09 Anders Carlsson Get rid of PluginStrategy https://bugs.webkit.org/show_bug.cgi?id=160696 Reviewed by Dan Bernstein. * WebCoreSupport/WebPlatformStrategies.cpp: (WebPlatformStrategies::createPluginStrategy): Deleted. 2016-08-09 Anders Carlsson Move plug-in enumeration from WebPlatformStrategies to WebPluginInfoProvider https://bugs.webkit.org/show_bug.cgi?id=160694 Reviewed by Dan Bernstein. * WebCoreSupport/WebPlatformStrategies.cpp: (WebPlatformStrategies::createPluginStrategy): (WebPlatformStrategies::refreshPlugins): Deleted. (WebPlatformStrategies::getPluginInfo): Deleted. (WebPlatformStrategies::getWebVisiblePluginInfo): Deleted. * WebCoreSupport/WebPlatformStrategies.h: * WebCoreSupport/WebPluginInfoProvider.cpp: (WebPluginInfoProvider::refreshPlugins): (WebPluginInfoProvider::getPluginInfo): (WebPluginInfoProvider::getWebVisiblePluginInfo): 2016-08-08 Anders Carlsson Add a new PluginInfoProvider class, to replace PluginStrategy https://bugs.webkit.org/show_bug.cgi?id=160670 Reviewed by Sam Weinig. Add a new WebPluginInfoProvider - it just calls through to the plug-in strategy for now. * WebCoreSupport/WebPluginInfoProvider.cpp: Added. (WebPluginInfoProvider::singleton): (WebPluginInfoProvider::WebPluginInfoProvider): (WebPluginInfoProvider::~WebPluginInfoProvider): (WebPluginInfoProvider::refreshPlugins): (WebPluginInfoProvider::getPluginInfo): (WebPluginInfoProvider::getWebVisiblePluginInfo): * WebCoreSupport/WebPluginInfoProvider.h: Added. 2016-07-29 Csaba Osztrogonác Remove PassRef.h after r177259 https://bugs.webkit.org/show_bug.cgi?id=160348 Reviewed by Andreas Kling. * WebCoreSupport/WebVisitedLinkStore.h: 2016-07-27 Alex Christensen Fix Win debug build after r203749. * WebView.cpp: 2016-07-26 Simon Fraser Allow LOG macros to be used outside the namespace, and other logging cleanup https://bugs.webkit.org/show_bug.cgi?id=160216 Reviewed by Anders Carlsson. Fix some issues with the LOG macros. First, they were not usable outside the WebKit namespace in WebKit2 code. Fix by moving its log channels outside of the namespace (they are protected by a unique prefix anyway). Second, allow LOG_WITH_STREAM to be used in WebKit2 by moving that and a helper macro into LogMacros.h, which is exported from WebCore as a private header. Third, split the Logging.h header into two. Logging.h remains for framework-internal log channels and log macros. Add LogInitialization.h which is external, and used to initialize the channels. Finally unify "initializeLogChannels" and "initializeLoggingChannels" terminology everywhere. * WebKitLogging.cpp: * WebKitLogging.h: * WebView.cpp: (WebView::initWithFrame): 2016-07-23 Chris Dumez Unreviewed, fix Windows build after r203623. * DOMCoreClasses.cpp: (DOMDocument::getComputedStyle): 2016-07-22 Per Arne Vollan IWebView::mainFrame crashes if called after IWebView::close https://bugs.webkit.org/show_bug.cgi?id=32868 Reviewed by Brent Fulgham. After deleting the page in WebView::close the mainframe object may be deleted. Test: Tools/TestWebKitAPI/Tests/WebKit/win/WebViewDestruction.cpp (CloseThenGetMainFrame). * WebView.cpp: (WebView::close): set mainframe pointer member to null. 2016-07-19 Per Arne Vollan [Win] The test fast/scrolling/overflow-scroll-past-max.html is timing out. https://bugs.webkit.org/show_bug.cgi?id=159342 Reviewed by Darin Adler. * WebFrame.h: Link fix. 2016-07-17 Sam Weinig [WebKit API] Add SPI to track multiple navigations caused by a single user gesture https://bugs.webkit.org/show_bug.cgi?id=159856 Reviewed by Dan Bernstein. * Plugins/PluginView.cpp: (WebCore::PluginView::performRequest): * WebCoreSupport/WebContextMenuClient.cpp: (WebContextMenuClient::searchWithGoogle): Update for new UserGestureIndicator interface. 2016-07-16 Ryosuke Niwa Rename fastGetAttribute to attributeWithoutSynchronization https://bugs.webkit.org/show_bug.cgi?id=159852 Reviewed by Darin Adler. * DOMHTMLClasses.cpp: (DOMHTMLElement::idName): 2016-07-15 Chris Dumez Use fastGetAttribute() / setAttributeWithoutSynchronization() when possible https://bugs.webkit.org/show_bug.cgi?id=159793 Reviewed by Ryosuke Niwa. Use fastGetAttribute() / setAttributeWithoutSynchronization() when possible, for performance. * DOMHTMLClasses.cpp: (DOMHTMLElement::idName): 2016-07-14 Chris Dumez Use emptyString() instead of "" when possible https://bugs.webkit.org/show_bug.cgi?id=159789 Reviewed by Alex Christensen. Use emptyString() instead of "" when possible to reduce String allocations. * Plugins/PluginView.cpp: (WebCore::parseRFC822HeaderFields): 2016-07-14 Alex Christensen Use SocketProvider to create SocketStreamHandles https://bugs.webkit.org/show_bug.cgi?id=159774 Reviewed by Brady Eidson. * WebSocketProvider.cpp: Removed. * WebSocketProvider.h: Removed. * WebView.cpp: Replaced WebSocketProvider with SocketProvider as we did in WebCore. 2016-07-14 Csaba Osztrogonác Fix the !ENABLE(WEB_SOCKETS) build after r202930 https://bugs.webkit.org/show_bug.cgi?id=159768 Reviewed by Alex Christensen. * WebSocketProvider.h: 2016-07-11 Enrica Casucci Build fix. Unreviewed. * WebDropSource.cpp: (generateMouseEvent): 2016-07-11 Enrica Casucci Add synthetic click origin to WKNavigationAction. https://bugs.webkit.org/show_bug.cgi?id=159584 rdar://problem/25610422 Reviewed by Tim Horton. * WebDropSource.cpp: (generateMouseEvent): 2016-07-07 Alex Christensen Fix Windows build after r202930. https://bugs.webkit.org/show_bug.cgi?id=158776 * WebView.cpp: (WebView::initWithFrame): 2016-07-07 Alex Christensen Use SocketProvider to create WebSocketChannels https://bugs.webkit.org/show_bug.cgi?id=158776 Reviewed by Brent Fulgham. * WebSocketProvider.cpp: Copied from Source/WebCore/Modules/websockets/ThreadableWebSocketChannel.cpp. (WebSocketProvider::createWebSocketChannel): (WebCore::ThreadableWebSocketChannel::create): Deleted. * WebSocketProvider.h: 2016-07-06 Per Arne Vollan [Win] Add null pointer check in gesture handling. https://bugs.webkit.org/show_bug.cgi?id=159454 Reviewed by Brent Fulgham. * WebView.cpp: (WebView::gesture): 2016-07-01 Per Arne Vollan ASSERTION FAILED: info.bmBitsPixel == 32 https://bugs.webkit.org/show_bug.cgi?id=17737 Reviewed by Brent Fulgham. The ::SelectObject call will fail if m_backingStoreBitmap is already selected into a device context. This happens when this method is called indirectly from WebView::updateBackingStore during normal painting. There is no point continuing, since we would just be scrolling a 1x1 bitmap which is selected into the device context by default. We can just scroll by repainting the scroll rectangle. * WebView.cpp: (WebView::scrollBackingStore): Invalidate the scroll rectangle if the ::SelectObject call fails. 2016-07-01 Youenn Fablet Add a runtime flag for DOM iterators https://bugs.webkit.org/show_bug.cgi?id=159300 Reviewed by Alex Christensen. * WebPreferenceKeysPrivate.h: * WebPreferences.cpp: (WebPreferences::domIteratorEnabled): (WebPreferences::setDOMIteratorEnabled): (WebView::notifyPreferencesChanged): * WebPreferencesreferences.h: * WebView.cpp: (WebView::notifyPreferencesChanged): 2016-06-28 Per Arne Vollan [Win] Custom elements tests are failing. https://bugs.webkit.org/show_bug.cgi?id=159139 Reviewed by Alex Christensen. Add preference for enabling custom element API. * Interfaces/IWebPreferencesPrivate.idl: * WebPreferenceKeysPrivate.h: * WebPreferences.cpp: (WebPreferences::initializeDefaultSettings): (WebPreferences::customElementsEnabled): (WebPreferences::setCustomElementsEnabled): * WebPreferences.h: * WebView.cpp: (WebView::notifyPreferencesChanged): 2016-06-23 Per Arne Vollan [Win] The test accessibility/aria-labelledby-overrides-label.html is failing. https://bugs.webkit.org/show_bug.cgi?id=159057 Reviewed by Brent Fulgham. The test expects the label to have a static text role, but currently it has a group role. * AccessibleBase.cpp: (MSAARole): Change the role of labels to static text. 2016-06-23 Alex Christensen Remove unused didCancelAuthenticationChallenge https://bugs.webkit.org/show_bug.cgi?id=158819 Reviewed by David Kilzer. * WebCoreSupport/WebFrameLoaderClient.cpp: (WebFrameLoaderClient::dispatchDidCancelAuthenticationChallenge): Deleted. * WebCoreSupport/WebFrameLoaderClient.h: 2016-06-22 Per Arne Vollan [Win] The test storage/indexeddb/modern/handle-user-delete.html is timing out. https://bugs.webkit.org/show_bug.cgi?id=158934 Reviewed by Brent Fulgham. Add a method to delete all indexed databases. * Interfaces/IWebDatabaseManager.idl: * WebDatabaseManager.cpp: (WebDatabaseManager::QueryInterface): (WebDatabaseManager::deleteAllIndexedDatabases): * WebDatabaseManager.h: 2016-06-17 Per Arne Vollan [Win] Rendering is not scaled correctly if process is DPI aware. https://bugs.webkit.org/show_bug.cgi?id=158781 Reviewed by Brent Fulgham. Scale the root graphics layer with the device scale factor. * WebView.cpp: (WebView::setAcceleratedCompositing): 2016-06-15 Chris Dumez Drop some unnecessary header includes https://bugs.webkit.org/show_bug.cgi?id=158788 Reviewed by Alexey Proskuryakov. Drop some unnecessary header includes in headers to speed up build time. * Plugins/PluginView.cpp: 2016-06-15 Romain Bellessort Enabling Shadow DOM for all platforms https://bugs.webkit.org/show_bug.cgi?id=158738 Reviewed by Ryosuke Niwa. Removed Shadow DOM from options (enabled by default) (comprises removal of corresponding preprocessor directives) * WebView.cpp: 2016-06-13 Alex Christensen Add WebSocketProvider stub https://bugs.webkit.org/show_bug.cgi?id=158702 Reviewed by Brady Eidson. * WebSocketProvider.h: Added. * WebView.cpp: (WebView::initWithFrame): 2016-06-10 Alex Christensen Introduce WTF::UniqueRef https://bugs.webkit.org/show_bug.cgi?id=158596 Reviewed by Brady Eidson. * WebView.cpp: (WebView::initWithFrame): 2016-06-09 Alex Christensen Fix Windows build. * WebKit.resources/resource.h: Removed. * resource.h: Copied from WebKit.resources/resource.h. 2016-06-09 Alex Christensen Actually fix Windows build after r201894 https://bugs.webkit.org/show_bug.cgi?id=158588 * WebView.cpp: (WebView::initWithFrame): 2016-06-09 Alex Christensen Clean up WebKit.vcxproj directory after switching to CMake. * WebKit.resources/resource.h: Copied from WebKit.vcxproj/WebKit/resource.h. 2016-06-09 Alex Christensen Unreviewed build fix after r201894 https://bugs.webkit.org/show_bug.cgi?id=158588 * WebCoreSupport/WebEditorClient.cpp: (WebEditorClient::~WebEditorClient): (WebEditorClient::isContinuousSpellCheckingEnabled): (WebEditorClient::pageDestroyed): Deleted. * WebCoreSupport/WebEditorClient.h: * WebView.cpp: (WebView::initWithFrame): 2016-06-08 Per Arne Vollan [Win] Shadow DOM tests are failing. https://bugs.webkit.org/show_bug.cgi?id=158524 Reviewed by Brent Fulgham. Add preference for enabling Shadow DOM. * Interfaces/IWebPreferencesPrivate.idl: * WebPreferenceKeysPrivate.h: * WebPreferences.cpp: (WebPreferences::initializeDefaultSettings): (WebPreferences::shadowDOMEnabled): (WebPreferences::setShadowDOMEnabled): * WebPreferences.h: * WebView.cpp: (WebView::notifyPreferencesChanged): 2016-06-07 Per Arne Vollan [Win][IndexedDB] Crash when running worker test. https://bugs.webkit.org/show_bug.cgi?id=158434 Reviewed by Alex Christensen. Initialize main runloop, otherwise RunLoop::main() will return nullptr. * WebView.cpp: (WebView::WebView): 2016-06-03 Chris Dumez Unreviewed, roll out r196633 as it broke PageCache on iOS for WebKit.org * WebCoreSupport/WebVisitedLinkStore.cpp: (WebVisitedLinkStore::removeAllVisitedLinks): (WebVisitedLinkStore::addVisitedLinkHash): 2016-06-03 Per Arne Vollan [Win] Implement WebView::removeAllUserContentFromGroup https://bugs.webkit.org/show_bug.cgi?id=158343 Reviewed by Brent Fulgham. * WebView.cpp: (WebView::removeAllUserContentFromGroup): 2016-06-02 Per Arne Vollan [Win] Fetch API tests are failing. https://bugs.webkit.org/show_bug.cgi?id=158296 Reviewed by Alex Christensen. Add preference for enabling Fetch API. * Interfaces/IWebPreferencesPrivate.idl: * WebPreferenceKeysPrivate.h: * WebPreferences.cpp: (WebPreferences::initializeDefaultSettings): (WebPreferences::fetchAPIEnabled): (WebPreferences::setFetchAPIEnabled): * WebPreferences.h: * WebView.cpp: (WebView::notifyPreferencesChanged): 2016-06-02 Youenn Fablet Use more references in ResourceLoader related code https://bugs.webkit.org/show_bug.cgi?id=158222 Reviewed by Darin Adler. * Plugins/PluginStream.cpp: (WebCore::PluginStream::start): 2016-06-01 Per Arne Vollan [Win] Potential null pointer crash when setting cursor. https://bugs.webkit.org/show_bug.cgi?id=158225 Reviewed by Alex Christensen. Check return value of Cursor::platformCursor(). * WebCoreSupport/WebChromeClient.cpp: (WebChromeClient::setCursor): 2016-05-31 Yusuke Suzuki Unreviewed, roll out r201481, r201523: 0.3% regression in Octane code-load https://bugs.webkit.org/show_bug.cgi?id=158249 * Interfaces/IWebPreferencesPrivate.idl: 2016-05-27 Caitlin Potter [JSC] implement async functions proposal https://bugs.webkit.org/show_bug.cgi?id=156147 Reviewed by Yusuke Suzuki. * Interfaces/IWebPreferencesPrivate.idl: 2016-05-23 Chris Dumez Generate bindings code for EventTarget.addEventListener() / removeEventListener() https://bugs.webkit.org/show_bug.cgi?id=157882 Reviewed by Darin Adler. Generate bindings code for EventTarget.addEventListener() / removeEventListener() instead of hardcoding them in the bindings generator. * DOMEventsClasses.cpp: (WebEventListener::operator==): * DOMEventsClasses.h: 2016-05-20 Joseph Pecoraro Remove LegacyProfiler https://bugs.webkit.org/show_bug.cgi?id=153565 Reviewed by Saam Barati. * Interfaces/IWebInspector.idl: * WebCoreStatistics.cpp: * WebInspector.cpp: (WebInspector::isJavaScriptProfilingEnabled): Deleted. (WebInspector::setJavaScriptProfilingEnabled): Deleted. * WebInspector.h: * WebView.cpp: 2016-05-16 Joseph Pecoraro Unreviewed rollout r200924. Caused js/regress/string-replace-generic.html to fail. * Interfaces/IWebInspector.idl: * WebCoreStatistics.cpp: * WebInspector.cpp: (WebInspector::isJavaScriptProfilingEnabled): (WebInspector::setJavaScriptProfilingEnabled): * WebInspector.h: * WebView.cpp: 2016-05-14 Joseph Pecoraro Remove LegacyProfiler https://bugs.webkit.org/show_bug.cgi?id=153565 Reviewed by Mark Lam. * Interfaces/IWebInspector.idl: * WebView.cpp: * WebInspector.cpp: (WebInspector::isJavaScriptProfilingEnabled): Deleted. (WebInspector::setJavaScriptProfilingEnabled): Deleted. * WebInspector.h: 2016-05-12 Konstantin Tokarev Use reference instead of pointer in FrameLoaderClient::saveViewStateToItem. https://bugs.webkit.org/show_bug.cgi?id=157624 Reviewed by Darin Adler. * WebCoreSupport/WebFrameLoaderClient.cpp: (WebFrameLoaderClient::saveViewStateToItem): * WebCoreSupport/WebFrameLoaderClient.h: 2016-05-11 Chris Dumez Update Node::appendChild() / replaceChild() / removeChild() / insertBefore() to take references instead of pointers https://bugs.webkit.org/show_bug.cgi?id=157556 Reviewed by Darin Adler. * DOMCoreClasses.cpp: (DOMNode::insertBefore): (DOMNode::removeChild): 2016-05-11 Joanmarie Diggs [GTK] accessibility/aria-readonly.html is failing https://bugs.webkit.org/show_bug.cgi?id=98357 Reviewed by Chris Fleizach. Call AccessibilityNode::canSetValueAttribute() to determine if STATE_SYSTEM_READONLY should be added and if editable text should be supported. * AccessibleBase.cpp: (AccessibleBase::state): * AccessibleTextImpl.cpp: (AccessibleText::deleteText): (AccessibleText::insertText): (AccessibleText::cutText): (AccessibleText::pasteText): (AccessibleText::replaceText): 2016-05-09 Fujii Hironori [wincairo] web inspector failed to launch in MiniBrowser https://bugs.webkit.org/show_bug.cgi?id=156184 Reviewed by Alex Christensen. * WebCoreSupport/WebInspectorClient.cpp: (WebInspectorClient::openLocalFrontend): Enable AllowFileAccessFromFileURLs and AllowUniversalAccessFromFileURLs of WebPreferences for Web Inspector. 2016-05-06 Joseph Pecoraro Rename HitTestRequest DisallowShadowContent to DisallowUserAgentShadowContent https://bugs.webkit.org/show_bug.cgi?id=157447 Reviewed by Ryosuke Niwa. * WebView.cpp: (WebView::gestureNotify): 2016-05-04 Joanmarie Diggs AX: ARIA 'region' role is now a landmark; HTML 'section' element should be a landmark only if named https://bugs.webkit.org/show_bug.cgi?id=157331 Reviewed by Chris Fleizach. As part of this change, the WebCore DocumentRegionRole AccessibilityRole has been renamed to LandmarkRegionRole. Update MSAARole() to use the new name. * AccessibleBase.cpp: (MSAARole): 2016-04-25 Per Arne Vollan [Win][IndexedDB] Fix build errors. https://bugs.webkit.org/show_bug.cgi?id=156713 Reviewed by Alex Christensen. Fix compile and link errors when building with IndexedDB enabled. * WebView.cpp: (WebView::notifyPreferencesChanged): * storage: Added. * storage/WebDatabaseProvider.cpp: Added. (WebDatabaseProvider::indexedDatabaseDirectoryPath): 2016-04-22 Brent Fulgham Unreviewed build fix after 4199841. * WebApplicationCache.cpp: (WebApplicationCache::WebApplicationCache): Provide missing preference key definition. 2016-04-21 Anders Carlsson Add a missing space, as noticed by Darin. * WebApplicationCache.cpp: (applicationCachePath): 2016-04-21 Anders Carlsson Stop using ApplicationCacheStorage::singleton() on Windows https://bugs.webkit.org/show_bug.cgi?id=156861 Reviewed by Darin Adler. * WebApplicationCache.cpp: (applicationCachePath): (WebApplicationCache::storage): * WebApplicationCache.h: * WebCache.cpp: (WebCache::empty): * WebView.cpp: (WebView::initWithFrame): (WebKitSetApplicationCachePathIfNecessary): Deleted. 2016-04-15 Brent Fulgham CSP: Make dynamically-added favicons (via link rel="icon") obey Content-Security-Policy https://bugs.webkit.org/show_bug.cgi?id=153151 Reviewed by Darin Adler. Remove the unused dynamic favicon code and tests. * WebCoreSupport/WebFrameLoaderClient.cpp: (WebFrameLoaderClient::dispatchDidChangeIcons): Deleted. * WebCoreSupport/WebFrameLoaderClient.h: 2016-04-15 Darin Adler Reduce use of Deprecated::ScriptXXX classes https://bugs.webkit.org/show_bug.cgi?id=156632 Reviewed by Alex Christensen. * Plugins/PluginView.cpp: (WebCore::PluginView::performRequest): Use JSValue. * WebFrame.cpp: (WebFrame::stringByEvaluatingJavaScriptInScriptWorld): Ditto. * WebView.cpp: (WebView::stringByEvaluatingJavaScriptFromString): Ditto. 2016-04-11 Darin Adler Remove UsePointersEvenForNonNullableObjectArguments from HTMLSelectElement https://bugs.webkit.org/show_bug.cgi?id=156458 Reviewed by Chris Dumez. * DOMCoreClasses.cpp: Added now-needed include. 2016-04-11 Gavin Barraclough WebKit should adopt journal_mode=wal for all SQLite databases. https://bugs.webkit.org/show_bug.cgi?id=133496 Reviewed by Darin Adler. * WebDatabaseManager.cpp: (WebDatabaseManager::deleteAllDatabases): - renamed deleteAllDatabases -> deleteAllDatabasesImmediately. 2016-04-08 Joanmarie Diggs AX: "AXLandmarkApplication" is an inappropriate subrole for ARIA "application" since it's no longer a landmark https://bugs.webkit.org/show_bug.cgi?id=155403 Reviewed by Chris Fleizach. The new subrole is AXWebApplication and the new role description is "web application". As part of the fix, the WebCore AccessibilityRole for ARIA's "application" role was renamed from LandmarkApplicationRole to WebApplicationRole. The roles-exposed.html and aria-grouping-roles.html test expectations were also updated. * AccessibleBase.cpp: Update the rolename (MSAARole): 2016-04-07 Brian Burg CookieJar should support adding synthetic cookies for developer tools https://bugs.webkit.org/show_bug.cgi?id=156091 Reviewed by Timothy Hatcher. * WebCoreSupport/WebPlatformStrategies.h: * WebCoreSupport/WebPlatformStrategies.cpp: Add new method override. 2016-03-24 Said Abou-Hallawa Change NativeImagePtr for CG to be RetainPtr https://bugs.webkit.org/show_bug.cgi?id=155412 Reviewed by Darin Adler. * Plugins/PluginView.h: * Plugins/PluginViewWin.cpp: (WebCore::PluginView::snapshot): Replace PassRefPtr with RefPtr. 2016-03-22 Per Arne Vollan [Win] [64-bit] Remove MSVC 2013 FMA3 Bug Workaround https://bugs.webkit.org/show_bug.cgi?id=141499 Reviewed by Brent Fulgham. As we have moved on to VS2015, this workaround is no longer needed. * WebKitDLL.cpp: (DllMain): 2016-03-21 Hyungwook Lee [Win] Connect layoutTestController.findString() to support testing https://bugs.webkit.org/show_bug.cgi?id=50234 Reviewed by Alex Christensen. Implement WebView::findString to support testing efforts. * Interfaces/IWebViewPrivate.idl: Add API declaration. * WebView.cpp: * WebView.h: 2016-03-16 Carlos Garcia Campos Unreviewed, rolling out r196951 and r197031. Revert also WinCairo follow ups after r196803 Reverted changesets: "[WinCairo] Compile fix." https://bugs.webkit.org/show_bug.cgi?id=154545 http://trac.webkit.org/changeset/196951 "[WinCairo] Mark layer as non composited." https://bugs.webkit.org/show_bug.cgi?id=154640 http://trac.webkit.org/changeset/197031 2016-03-16 Carlos Garcia Campos Unreviewed, rolling out r197693. 197031 Reverted changeset: "[WinCairo][AcceleratedCompositing] Rendering issues on www.bbc.com." https://bugs.webkit.org/show_bug.cgi?id=154912 http://trac.webkit.org/changeset/197693 2016-03-15 Brent Fulgham [Win] Correct double-release of CFURLConnectionRef https://bugs.webkit.org/show_bug.cgi?id=155515 Reviewed by Tim Horton. Tested by http/tests/download suite. * WebDownloadCFNet.cpp: Remove extra CFRelease. 2016-03-14 Per Arne Vollan [WinCairo] Compile fix. https://bugs.webkit.org/show_bug.cgi?id=155463 Reviewed by Alex Christensen. Get the NetworkStorageSession object from the document in the same way as other platforms do. * WebCoreSupport/WebFrameNetworkingContext.cpp: (WebFrameNetworkingContext::storageSession): * WebCoreSupport/WebFrameNetworkingContext.h: (WebFrameNetworkingContext::storageSession): 2016-03-14 Joonghun Park Purge PassRefPtr from ArrayBuffer, ArchiveResource, Pasteboard, LegacyWebArchive and DataObjectGtk https://bugs.webkit.org/show_bug.cgi?id=150497 Reviewed by Darin Adler. * WebArchive.cpp: (WebArchive::initWithNode): 2016-03-12 Sam Weinig WebKit can easily crash below NetworkSession::dataTaskForIdentifier() with NSURLSession enabled https://bugs.webkit.org/show_bug.cgi?id=155401 Reviewed by Alex Christensen. * WebCoreSupport/WebFrameNetworkingContext.cpp: (WebFrameNetworkingContext::ensurePrivateBrowsingSession): Pass a SessionID to NetworkStorageSession::createPrivateBrowsingSession(). 2016-03-10 Jer Noble Unreviewed build fix after r197953; correct the settings added in r197953. * WebView.cpp: (WebView::notifyPreferencesChanged): 2016-03-10 Jer Noble Add separate WK and WK2 preferences for requiring user gestures for video media, distinct from user gestures for media generally https://bugs.webkit.org/show_bug.cgi?id=155141 Reviewed by Beth Dakin. * WebView.cpp: (WebView::notifyPreferencesChanged): 2016-03-07 Per Arne Vollan [WinCairo][AcceleratedCompositing] Rendering issues on www.bbc.com. https://bugs.webkit.org/show_bug.cgi?id=154912 Reviewed by Michael Catanzaro. If we have a scroll layer, we should not include the scroll position in the visible rectangle, since the scroll position is already reflected in the position of the scroll layer. * WebCoreSupport/AcceleratedCompositingContext.cpp: (AcceleratedCompositingContext::flushPendingLayerChanges): 2016-03-06 Gavin Barraclough Convert DOMTimer to std::chrono::milliseconds https://bugs.webkit.org/show_bug.cgi?id=155085 Reviewed by Andreas Kling. DOMTimer currently uses a mix of millisecond (was int, now std::chrono) and second (as double) time values. Constant conversion back and forth is a complete mess. Stop that. * WebView.cpp: (WebView::setMinimumTimerInterval): - Convert double argument into std::chrono::milliseconds. 2016-03-05 Yusuke Suzuki [ES6] Support Reflect.construct https://bugs.webkit.org/show_bug.cgi?id=147330 Reviewed by Saam Barati. * Plugins/PluginPackage.cpp: (WebCore::NPN_Invoke): 2016-02-24 Per Arne Vollan [WinCairo] Mark layer as non composited. https://bugs.webkit.org/show_bug.cgi?id=154640 Reviewed by Alex Christensen. We need to mark the non composited layer as being non composited. * WebCoreSupport/AcceleratedCompositingContext.cpp: (AcceleratedCompositingContext::initialize): (AcceleratedCompositingContext::flushPendingLayerChanges): 2016-02-22 Per Arne Vollan [WinCairo] Compile fix. https://bugs.webkit.org/show_bug.cgi?id=154545 Reviewed by Alex Christensen. Add missing parameter to GraphicsLayerTextureMapper::updateBackingStoreIncludingSubLayers(). * WebCoreSupport/AcceleratedCompositingContext.cpp: (AcceleratedCompositingContext::flushPendingLayerChanges): 2016-02-21 Darin Adler Refactor LazyEventListener creation to separate Element and Document cases https://bugs.webkit.org/show_bug.cgi?id=154231 Reviewed by Andreas Kling. * WebView.h: Forward declare KeyboardEvent. 2016-02-16 Andreas Kling Drop StyleResolver and SelectorQueryCache when entering PageCache. Reviewed by Antti Koivisto. * WebCoreSupport/WebVisitedLinkStore.cpp: (WebVisitedLinkStore::removeAllVisitedLinks): Deleted. (WebVisitedLinkStore::addVisitedLinkHash): Deleted. 2016-02-14 Chris Dumez Unreviewed Window build fix. * WebCoreStatistics.cpp: * WebJavaScriptCollector.cpp: 2016-02-12 Jiewen Tan WebKit should expose the DOM 4 Event.isTrusted property https://bugs.webkit.org/show_bug.cgi?id=76121 Reviewed by Darin Adler. * DOMCoreClasses.cpp: (DOMNode::dispatchEvent): (DOMWindow::dispatchEvent): 2016-02-11 Antti Koivisto Try to fix windows build. * DOMCoreClasses.cpp: (DOMElement::style): (DOMElement::offsetLeft): 2016-02-06 Darin Adler Finish auditing call sites of upper() and lower(), eliminate many, and rename the functions https://bugs.webkit.org/show_bug.cgi?id=153905 Reviewed by Sam Weinig. * Plugins/PluginDatabase.cpp: (WebCore::PluginDatabase::pluginForMIMEType): Use ASCII case-insensitive map rather than lowercasing the MIME type. (WebCore::PluginDatabase::setPreferredPluginForMIMEType): Ditto. * Plugins/PluginDatabase.h: Make m_preferredPlugins use an ASCII case-insensitive hash. * Plugins/PluginPackage.h: Use ASCII case-insensitive hash for maps keyed by MIME type. * Plugins/PluginPackageWin.cpp: (WebCore::PluginPackage::fetchInfo): Use convertToASCIILowercase to lowercase a MIME type. 2016-02-04 Joseph Pecoraro Web Inspector: InspectorTimelineAgent doesn't need to recompile functions because it now uses the sampling profiler https://bugs.webkit.org/show_bug.cgi?id=153500 Reviewed by Timothy Hatcher. * WebInspector.cpp: (WebInspector::isJavaScriptProfilingEnabled): (WebInspector::setJavaScriptProfilingEnabled): Switch to the new API names. 2016-01-31 Darin Adler Replace CaseFoldingHash with ASCIICaseInsensitiveHash https://bugs.webkit.org/show_bug.cgi?id=153639 Reviewed by Filip Pizlo. * WebCoreStatistics.cpp: (WebCoreStatistics::memoryStatistics): Use ASCIICaseInsensitiveHash for field names. These names are all ASCII. * WebURLResponse.cpp: (WebURLResponse::allHeaderFields): Use ASCIICaseInsensitiveHash for HTTP header field names. These names are all ASCII. 2016-01-30 Commit Queue Unreviewed, rolling out r195911. https://bugs.webkit.org/show_bug.cgi?id=153723 Caused frequent assertion failures on bots (Requested by ap on #webkit). Reverted changeset: "Replace CaseFoldingHash with ASCIICaseInsensitiveHash" https://bugs.webkit.org/show_bug.cgi?id=153639 http://trac.webkit.org/changeset/195911 2016-01-30 Commit Queue Unreviewed, rolling out r195799 and r195828. https://bugs.webkit.org/show_bug.cgi?id=153722 Caused assertion failures, severely affecting EWS (Requested by ap on #webkit). Reverted changesets: "Web Inspector: InspectorTimelineAgent doesn't need to recompile functions because it now uses the sampling profiler" https://bugs.webkit.org/show_bug.cgi?id=153500 http://trac.webkit.org/changeset/195799 "Attempt to fix the Windows build after r195799" http://trac.webkit.org/changeset/195828 2016-01-30 Darin Adler Replace CaseFoldingHash with ASCIICaseInsensitiveHash https://bugs.webkit.org/show_bug.cgi?id=153639 Reviewed by Filip Pizlo. * WebCoreStatistics.cpp: (WebCoreStatistics::memoryStatistics): Use ASCIICaseInsensitiveHash for field names. These names are all ASCII. * WebURLResponse.cpp: (WebURLResponse::allHeaderFields): Use ASCIICaseInsensitiveHash for HTTP header field names. These names are all ASCII. 2016-01-29 Ryan Haddad Attempt to fix the Windows build after r195799 Unreviewed build fix. * WebInspector.cpp: (WebInspector::isJavaScriptProfilingEnabled): (WebInspector::setJavaScriptProfilingEnabled): 2016-01-28 Darin Adler Remove equalIgnoringCase since all callers really wanted equalIgnoringASCIICase https://bugs.webkit.org/show_bug.cgi?id=153411 Reviewed by Ryosuke Niwa. * Plugins/PluginDatabase.cpp: (WebCore::PluginDatabase::MIMETypeForExtension): Use equalIgnoringASCIICase to compare file extensions. * Plugins/PluginDatabaseWin.cpp: (WebCore::PluginDatabase::getPluginPathsInDirectories): Use equalLettersIgnoringASCIICase to compare filenames. * Plugins/PluginPackageWin.cpp: (WebCore::PluginPackage::isPluginBlacklisted): Use equalLettersIgnoringASCIICase to compare DLL filenames. * Plugins/PluginStream.cpp: (WebCore::PluginStream::destroyStream): Use equalLettersIgnoringASCIICase to check HTTP method. * Plugins/PluginView.cpp: (WebCore::PluginView::setParameters): Use equalLettersIgnoringASCIICase to check plug-in parameter name. * WebView.cpp: (WebView::canHandleRequest): Use URL::protocolIs instead of equalIgnoringCase. 2016-01-22 Ryosuke Niwa document.createElement should be able to create a custom element https://bugs.webkit.org/show_bug.cgi?id=153173 Reviewed by Darin Adler. Use createElementForBindings here since this is a C++ binding for Windows. * DOMCoreClasses.cpp: (DOMDocument::createElement): 2016-01-24 Gyuyoung Kim Reduce PassRefPtr uses in dom - 4 https://bugs.webkit.org/show_bug.cgi?id=153270 Reviewed by Darin Adler. As a step to remove PassRefPtr uses, this patch reduces the uses in WebCore/dom. * Plugins/PluginView.cpp: (WebCore::PluginView::focusPluginElement): 2016-01-17 Ada Chan Add a mode parameter to MediaControllerInterface::supportsFullscreen() and ChromeClient::supportsVideoFullscreen(). https://bugs.webkit.org/show_bug.cgi?id=153220 Reviewed by Eric Carlson. * WebCoreSupport/WebChromeClient.cpp: (WebChromeClient::supportsVideoFullscreen): * WebCoreSupport/WebChromeClient.h: 2016-01-22 Youenn Fablet Remove PassRefPtr from ResourceRequest and FormData https://bugs.webkit.org/show_bug.cgi?id=153229 Reviewed by Chris Dumez. * WebMutableURLRequest.cpp: (WebMutableURLRequest::setHTTPBody): 2016-01-15 Simon Fraser Remove GraphicsContext::drawConvexPolygon() and GraphicsContext::clipConvexPolygon() https://bugs.webkit.org/show_bug.cgi?id=153174 Reviewed by Zalan Bujtas. GraphicsContext::drawConvexPolygon() and GraphicsContext::clipConvexPolygon() were poorly named (non-convex polygons are allowed), and just syntactic sugar over clipPath() and drawPath(). Remove them, but add a convenience function to create a Path from a Vector of points. For CG, we can use the more efficient CGPathAddLines(). * FullscreenVideoController.cpp: (HUDSlider::draw): 2016-01-05 Per Arne Vollan [WinCairo] Download should use header values from provided request object. https://bugs.webkit.org/show_bug.cgi?id=152694 Reviewed by Alex Christensen. Copy header values from request object parameter. * WebDownloadCurl.cpp: (WebDownload::initWithRequest): 2015-12-31 Andy Estes Replace WTF::move with WTFMove https://bugs.webkit.org/show_bug.cgi?id=152601 Reviewed by Brady Eidson. * Plugins/PluginStream.cpp: (WebCore::PluginStream::willSendRequest): * Plugins/PluginView.cpp: (WebCore::PluginView::requestTimerFired): (WebCore::PluginView::scheduleRequest): (WebCore::PluginView::handlePost): * WebCoreSupport/WebFrameLoaderClient.cpp: (WebFrameLoaderClient::createDocumentLoader): * WebCoreSupport/WebInspectorClient.cpp: (WebInspectorFrontendClient::WebInspectorFrontendClient): * WebHistory.cpp: (createUserInfoFromArray): * WebHistoryItem.cpp: (WebHistoryItem::initFromDictionaryRepresentation): * WebView.cpp: (WebView::addToDirtyRegion): (WebView::scrollBackingStore): (WebView::loadBackForwardListFromOtherView): (WebView::addUserScriptToGroup): (WebView::addUserStyleSheetToGroup): 2015-12-29 Simon Fraser Fix Windows build. * WebView.cpp: (WebView::scrollOffset): 2015-12-25 David Kilzer ResourceError should store failingURL as URL instead of String to avoid reparsing and to address FIXME comments in ResourceErrorCF.cpp and ResourceErrorMac.mm Reviewed by Antti Koivisto. * WebCoreSupport/WebFrameLoaderClient.cpp: (WebFrameLoaderClient::cancelledError): (WebFrameLoaderClient::blockedError): (WebFrameLoaderClient::cannotShowURLError): (WebFrameLoaderClient::interruptedForPolicyChangeError): (WebFrameLoaderClient::cannotShowMIMETypeError): (WebFrameLoaderClient::fileDoesNotExistError): (WebFrameLoaderClient::pluginWillHandleLoadError): (WebFrameLoaderClient::dispatchDidFailToStartPlugin): (WebFrameLoaderClient::createJavaAppletWidget): * WebDownloadCFNet.cpp: (WebDownload::cancelAuthenticationChallenge): * WebError.cpp: (WebError::init): - Update for type change of 'failingURL' argument to ResourceError(). 2015-12-23 Brent Fulgham Web Inspector: add support for running protocol-test.js tests on Windows https://bugs.webkit.org/show_bug.cgi?id=148037 Reviewed by Simon Fraser. Provide API for WebKit.dll clients to request its CFBundleRef. * WebKitCOMAPI.cpp: (webKitBundle): Added. * WebKitCOMAPI.h: 2015-12-20 Dan Bernstein Remove unused setToolbarHeight https://bugs.webkit.org/show_bug.cgi?id=152466 Reviewed by Darin Adler. * WebCoreSupport/WebInspectorClient.cpp: (WebInspectorFrontendClient::setToolbarHeight): Deleted. * WebCoreSupport/WebInspectorClient.h: 2015-12-15 Zan Dobersek [TexMap] Operate with a reference to the TextureMapper wherever possible https://bugs.webkit.org/show_bug.cgi?id=152118 Reviewed by Martin Robinson. * WebCoreSupport/AcceleratedCompositingContext.cpp: (AcceleratedCompositingContext::compositeLayersToContext): TextureMapper object is now operated with through a reference. 2015-12-01 Darin Adler Fix anomaly where isMouseEvent returns false for wheel events https://bugs.webkit.org/show_bug.cgi?id=151685 Reviewed by Alexey Proskuryakov. * DOMEventsClasses.cpp: (DOMEvent::createInstance): Use eventInterface instead of isMouseEvent to create the appropriate wrapper class. 2015-11-24 Per Arne Vollan [Win] Implement methods to get and set inner html. https://bugs.webkit.org/show_bug.cgi?id=151569 Reviewed by Alex Christensen. * DOMHTMLClasses.cpp: (DOMHTMLElement::innerHTML): (DOMHTMLElement::setInnerHTML): (DOMHTMLElement::innerText): == Rolled over to ChangeLog-2015-11-21 ==