2017-08-09 Jason Marcell Cherry-pick r220459. rdar://problem/33820790 2017-08-09 Daniel Bates REGRESSION (r219013): OAuth flows are broken when redirecting back to application after authentication https://bugs.webkit.org/show_bug.cgi?id=175247 Reviewed by Brady Eidson. Plumb knowledge of whether a navigation was in response to receiving a redirect response. We do not actually make use of this knowledge in WebKitLegacy because we do not know of any clients that need to make use of this information at this time. If such a needs comes up then we can expose API/SPI similar to what we do for WebKit. * WebCoreSupport/WebFrameLoaderClient.cpp: (WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction): * WebCoreSupport/WebFrameLoaderClient.h: 2017-07-26 Jason Marcell Cherry-pick r219876. rdar://problem/33523847 2017-07-25 Said Abou-Hallawa Async image decoding for large images should be disabled after the first time a tile is painted https://bugs.webkit.org/show_bug.cgi?id=174451 Reviewed by Simon Fraser. * FullscreenVideoController.cpp: (FullscreenVideoController::LayerClient::platformCALayerPaintContents): * WebCoreSupport/AcceleratedCompositingContext.cpp: (AcceleratedCompositingContext::paintContents): * WebCoreSupport/AcceleratedCompositingContext.h: 2017-07-26 Jason Marcell Cherry-pick r219620. rdar://problem/33523847 2017-07-18 Matt Lewis Unreviewed, rolling out r219610. This caused an api failure on all platforms for the test SnapshotImageLargeAsyncDecoding Reverted changeset: "Async image decoding for large images should be disabled after the first time a tile is painted" https://bugs.webkit.org/show_bug.cgi?id=174451 http://trac.webkit.org/changeset/219610 2017-07-26 Jason Marcell Cherry-pick r219610. rdar://problem/33523847 2017-07-18 Said Abou-Hallawa Async image decoding for large images should be disabled after the first time a tile is painted https://bugs.webkit.org/show_bug.cgi?id=174451 Reviewed by Simon Fraser. * FullscreenVideoController.cpp: (FullscreenVideoController::LayerClient::platformCALayerPaintContents): * WebCoreSupport/AcceleratedCompositingContext.cpp: (AcceleratedCompositingContext::paintContents): * WebCoreSupport/AcceleratedCompositingContext.h: 2017-07-14 Basuke Suzuki [Curl] Don't start downloading more than once for same request https://bugs.webkit.org/show_bug.cgi?id=174172 Reviewed by Alex Christensen. * WebDownloadCurl.cpp: (WebDownload::init): 2017-07-12 Daniel Bates Rename NavigationInitiatedByMainFrame to InitiatedByMainFrame https://bugs.webkit.org/show_bug.cgi?id=174427 Rubber-stamped by Brady Eidson. * Plugins/PluginView.cpp: (WebCore::PluginView::start): (WebCore::PluginView::getURLNotify): (WebCore::PluginView::getURL): (WebCore::PluginView::handlePost): 2017-07-05 Don Olmstead [WTF] Move SoftLinking.h into WTF https://bugs.webkit.org/show_bug.cgi?id=174000 Reviewed by Alex Christensen. * WebKitClassFactory.cpp: * WebView.cpp: 2017-07-05 Brady Eidson Allow navigations in subframes to get a ShouldOpenExternalURLsPolicy of "ShouldAllow". and https://bugs.webkit.org/show_bug.cgi?id=174178 Reviewed by Alex Christensen. Adopt to the new constructor for FrameLoadRequest. * Plugins/PluginView.cpp: (WebCore::PluginView::start): (WebCore::PluginView::getURLNotify): (WebCore::PluginView::getURL): (WebCore::PluginView::handlePost): 2017-07-03 Brady Eidson Switch all WebKit API related to favicons from WebIconDatabase over to new WebCore::IconLoader mechanism. https://bugs.webkit.org/show_bug.cgi?id=174073 Reviewed by Andy Estes. * WebCoreSupport/WebFrameLoaderClient.cpp: (WebFrameLoaderClient::dispatchDidReceiveIcon): Deleted. (WebFrameLoaderClient::registerForIconNotification): Deleted. * WebCoreSupport/WebFrameLoaderClient.h: 2017-07-01 Ryosuke Niwa Frame.h doesn't need to include FrameLoader.h, IntRect.h, and NavigationScheduler.h https://bugs.webkit.org/show_bug.cgi?id=174004 Reviewed by Simon Fraser. * WebCoreSupport/WebFrameLoaderClient.cpp: (WebFrameLoaderClient::transitionToCommittedForNewPage): 2017-06-30 Daniel Bates API::FrameInfo should know the web page that contains the frame; add API property webView to WKFrameInfo https://bugs.webkit.org/show_bug.cgi?id=165160 Reviewed by Brady Eidson. Pass the document that is requesting the load to the loader. * Plugins/PluginView.cpp: (WebCore::PluginView::start): (WebCore::PluginView::getURLNotify): (WebCore::PluginView::getURL): (WebCore::PluginView::handlePost): 2017-06-27 Wenson Hsieh Refactor drag start codepaths to plumb a DragItem to client layers https://bugs.webkit.org/show_bug.cgi?id=173832 Work towards Reviewed by Ryosuke Niwa and Tim Horton. Adjust for changes to WebDragClient::startDrag by pulling information out of DragItem. * WebCoreSupport/WebDragClient.cpp: (WebDragClient::startDrag): * WebCoreSupport/WebDragClient.h: 2017-06-25 Konstantin Tokarev Remove excessive headers from JavaScriptCore https://bugs.webkit.org/show_bug.cgi?id=173812 Reviewed by Darin Adler. * Plugins/PluginPackage.cpp: 2017-06-22 Daniel Bates Make FrameLoadRequest a move-only type https://bugs.webkit.org/show_bug.cgi?id=173682 Reviewed by Alex Christensen and Darin Adler. A FrameLoadRequest groups together the information to perform a load into a single object that is more manageable to pass around than its constituent parts. Code that receives a FrameLoadRequest is expected to extract out the information it needs to complete its task. And it does not make sense to re-use the same FrameLoadRequest object for more than one load. Therefore, it is sufficient to make FrameLoadRequest a move-only type. * Plugins/PluginView.cpp: (WebCore::PluginView::start): (WebCore::PluginView::performRequest): (WebCore::PluginView::load): (WebCore::PluginView::getURLNotify): (WebCore::PluginView::getURL): (WebCore::PluginView::handlePost): * Plugins/PluginView.h: (WebCore::PluginRequest::PluginRequest): 2017-06-22 Daniel Bates [Win] Cleanup: Remove unnecessary include of header FrameLoadRequest.h https://bugs.webkit.org/show_bug.cgi?id=173683 Reviewed by Alex Christensen. Neither file PluginViewWin.cpp nor WebContextMenuClient.cpp need to include header FrameLoadRequest.h. The former includes FrameLoadRequest.h indirectly by including PluginView.h. The latter does not make use of the functionality provided by FrameLoadRequest.h. * Plugins/PluginViewWin.cpp: * WebCoreSupport/WebContextMenuClient.cpp: 2017-06-21 Daniel Bates Cleanup FrameLoadRequest https://bugs.webkit.org/show_bug.cgi?id=173564 Reviewed by Brent Fulgham. * Plugins/PluginView.cpp: (WebCore::PluginView::start): Explicitly pass an empty ResourceRequest (we populate it after we instantiate the FrameLoadRequest) and pass the null-string for the target frame name as we do not have one. Use C++11 brace initialization syntax. (WebCore::PluginView::getURLNotify): Explicitly pass the null-string for the target frame name as we do not have one. Use C++11 brace initialization syntax. (WebCore::PluginView::getURL): Ditto. (WebCore::PluginView::handlePost): Move instantiation of FrameLoadRequest from the top of the function to closer to where it is actually used. Explicitly pass the null-string for the target frame name as we do not have one. Use C++11 brace initialization syntax. 2017-06-20 Daniel Bates Have FrameLoadRequest takes a Frame& instead of a Frame* https://bugs.webkit.org/show_bug.cgi?id=173614 Reviewed by Brent Fulgham. * Plugins/PluginView.cpp: (WebCore::PluginView::performRequest): * WebFrame.cpp: (WebFrame::loadRequest): 2017-06-19 Chris Dumez Use WTF::Function instead of std::function in more places in WebCore/ https://bugs.webkit.org/show_bug.cgi?id=173535 Reviewed by Antti Koivisto. Use WTF::Function instead of std::function in more places in WebCore/ to avoid copying. * WebCoreSupport/WebFrameLoaderClient.cpp: (WebFrameLoaderClient::dispatchDecidePolicyForResponse): (WebFrameLoaderClient::dispatchDecidePolicyForNewWindowAction): (WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction): (WebFrameLoaderClient::dispatchWillSubmitForm): (WebFrameLoaderClient::setUpPolicyListener): (WebFrameLoaderClient::receivedPolicyDecision): * WebCoreSupport/WebFrameLoaderClient.h: 2017-05-14 Frederic Wang Add heuristic to avoid flattening "fullscreen" iframes https://bugs.webkit.org/show_bug.cgi?id=171914 Reviewed by Simon Fraser. This commit ajusts the window port to internally use the new preference type for frame flattening. However, the "partial frame flattening" value is not exposed yet. * WebView.cpp: (WebView::notifyPreferencesChanged): Use the new type for frame flattening. 2017-06-17 Chris Dumez Use WTF::Function instead of std::function in WebKit2/ https://bugs.webkit.org/show_bug.cgi?id=173504 Reviewed by Darin Adler. Use WTF::Function instead of std::function in WebKit2/ to avoid unnecessary copying. * Plugins/PluginStream.cpp: (WebCore::PluginStream::willSendRequest): * Plugins/PluginStream.h: 2017-06-16 Sam Weinig [WebIDL] Remove custom bindings for HTMLDocument https://bugs.webkit.org/show_bug.cgi?id=173444 Reviewed by Darin Adler. * DOMHTMLClasses.cpp: (DOMHTMLDocument::write): (DOMHTMLDocument::writeln): Update for new signature of write/writeln. 2017-06-16 Daniel Bates Cleanup: WebContextMenuClient::searchWithGoogle() should parse URL using URL { URL { }, ... } instead of URL { ParsedURLString, ... } https://bugs.webkit.org/show_bug.cgi?id=173495 Reviewed by Alex Christensen. URL(ParsedURLString, ...) should only be used with a string that was the result of URL::string(). Otherwise, it will cause an assertion failure if the canonicalized URL differs from the string. Although it is unlikely that the hardcoded string in WebContextMenuClient::searchWithGoogle() would differ from the canonicalized URL it is best practice to use URL(URL(), ...) to parse an arbitrary string that looks like a URL. Also modernize the code using C++14 idioms. * WebCoreSupport/WebContextMenuClient.cpp: (WebContextMenuClient::searchWithGoogle): 2017-06-15 Fujii Hironori [Win] WebKit shouldn't include the forwarding header of WebKit itself https://bugs.webkit.org/show_bug.cgi?id=173352 Reviewed by Alex Christensen. * WebKitPrefix.h: Include WebKit.h of DerivedSources/WebKit instead of DerivedSources/ForwardingHeaders. 2017-06-14 Per Arne Vollan [Win] WebKit fails to paint the bottom lines of the window at 125% scale. https://bugs.webkit.org/show_bug.cgi?id=173318 Reviewed by Darin Adler. The logical frame size is currently calculated by scaling the frame size in pixels, and rounding the coordinates to the nearest integers. The computed logical frame size will in some cases be smaller than the scaled frame size in pixels, since it is represented as an IntSize. In these cases, the bottom line will not be painted. Instead of calculating the logical frame size by rounding the scaled frame in pixels, find the enclosing rectangle of the scaled frame rectangle in pixels. * WebCoreSupport/WebFrameLoaderClient.cpp: (WebFrameLoaderClient::transitionToCommittedForNewPage): 2017-06-13 Daniel Bates Implement W3C Secure Contexts Draft Specification https://bugs.webkit.org/show_bug.cgi?id=158121 Reviewed by Brent Fulgham. Part 4 Adds a preference to toggle the runtime enabled feature flag isSecureContextAttributeEnabled. * Interfaces/IWebPreferencesPrivate.idl: Bump the version. * WebPreferenceKeysPrivate.h: * WebPreferences.cpp: (WebPreferences::initializeDefaultSettings): (WebPreferences::QueryInterface): (WebPreferences::setIsSecureContextAttributeEnabled): (WebPreferences::isSecureContextAttributeEnabled): * WebPreferences.h: * WebView.cpp: (WebView::notifyPreferencesChanged): 2017-06-13 Per Arne Vollan [Win] WebKit fails to paint the bottom lines of the window at 125% scale. https://bugs.webkit.org/show_bug.cgi?id=173318 Reviewed by Alex Christensen. The logical frame size is currently calculated by scaling the frame size in pixels, and rounding the coordinates to the nearest integers. The computed logical frame size will in some cases be smaller than the scaled frame size in pixels, since it is represented as an IntSize. In these cases, the bottom line will not be painted. Instead of calculating the logical frame size by rounding the scaled frame in pixels, find the enclosing rectangle of the scaled frame rectangle in pixels. * WebView.cpp: (WebView::sizeChanged): 2017-06-13 Sam Weinig Rename JSDOMWindowShell to JSDOMWindowProxy to match the HTML5 spec. https://bugs.webkit.org/show_bug.cgi?id=80733 Reviewed by Chris Dumez. * WebFrame.cpp: (WebFrame::stringByEvaluatingJavaScriptInScriptWorld): 2017-06-12 Daewoong Jang Remove WebCore::unloadModule and related data types https://bugs.webkit.org/show_bug.cgi?id=173231 Reviewed by Darin Adler. * Plugins/PlatformModule.h: Added. (WebCore::PlatformModuleVersion::PlatformModuleVersion): * Plugins/PluginPackage.cpp: (WebCore::PluginPackage::freeLibraryTimerFired): * Plugins/PluginPackage.h: 2017-06-09 Wenson Hsieh [iOS DnD] Add a hook to perform two-step drops in editable content https://bugs.webkit.org/show_bug.cgi?id=172992 Reviewed by Tim Horton. Add a stub implementation for performTwoStepDrop on Windows. * WebCoreSupport/WebEditorClient.h: 2017-06-04 Konstantin Tokarev Fix build of Windows-specific code with ICU 59.1 https://bugs.webkit.org/show_bug.cgi?id=172729 Reviewed by Darin Adler. Fix conversions from WTF::String to wchar_t* and vice versa. * Plugins/PluginDatabaseWin.cpp: (WebCore::addPluginPathsFromRegistry): (WebCore::PluginDatabase::getPluginPathsInDirectories): (WebCore::addMozillaPluginDirectories): (WebCore::addWindowsMediaPlayerPluginDirectory): (WebCore::addAdobeAcrobatPluginDirectory): (WebCore::addJavaPluginDirectory): (WebCore::safariPluginsDirectory): (WebCore::addMacromediaPluginDirectories): * Plugins/PluginPackageWin.cpp: (WebCore::getVersionInfo): (WebCore::PluginPackage::fetchInfo): (WebCore::PluginPackage::load): * Plugins/PluginViewWin.cpp: (WebCore::PluginView::handlePostReadFile): 2017-05-30 Per Arne Vollan [Win] fast/shadow-dom/fullscreen-in-slot-fullscreenElement.html is flaky. https://bugs.webkit.org/show_bug.cgi?id=172709 Reviewed by Brent Fulgham. Add method to exit fullscreen mode. * Interfaces/IWebViewPrivate.idl: * WebView.cpp: (WebView::exitFullscreenIfNeeded): * WebView.h: 2017-05-24 Per Arne Vollan [Win] Create unique network storage session for each DRT. https://bugs.webkit.org/show_bug.cgi?id=172540 Reviewed by Brent Fulgham. During layout testing, each DRT instance should have its own network storage session. * Interfaces/IWebPreferencesPrivate.idl: * WebPreferences.cpp: (WebPreferences::switchNetworkLoaderToNewTestingSession): * WebPreferences.h: 2017-05-24 Fujii Hironori [WinCairo] AcceleratedCompositingContext.h: error C3668: 'AcceleratedCompositingContext::paintContents': method with override specifier 'override' did not override any base class methods https://bugs.webkit.org/show_bug.cgi?id=172535 Reviewed by Konstantin Tokarev. * WebCoreSupport/AcceleratedCompositingContext.cpp: (AcceleratedCompositingContext::paintContents): Append the fifth argument. * WebCoreSupport/AcceleratedCompositingContext.h: Ditto. 2017-05-14 Per Arne Vollan [Win] fast/cookies/local-file-can-set-cookies.html is flaky. https://bugs.webkit.org/show_bug.cgi?id=172071 Reviewed by Alexey Proskuryakov. We need to delete all cookies after each test. * Interfaces/IWebPreferencesPrivate.idl: * WebPreferences.cpp: (WebPreferences::linkPreloadEnabled): (WebPreferences::clearNetworkLoaderSession): * WebPreferences.h: 2017-05-13 Chris Dumez Stop using RefPtr::release() https://bugs.webkit.org/show_bug.cgi?id=172074 Reviewed by Geoffrey Garen. * WebFrame.cpp: (WebFrame::loadPlainTextString): (WebFrame::loadHTMLString): * WebFramePolicyListener.cpp: (WebFramePolicyListener::receivedPolicyDecision): 2017-05-13 Chris Dumez Drop uses of PassRefPtr in WebKit/win https://bugs.webkit.org/show_bug.cgi?id=172067 Reviewed by Yusuke Suzuki. * DOMEventsClasses.cpp: (DOMEvent::DOMEvent): (DOMEvent::createInstance): * DOMEventsClasses.h: (DOMUIEvent::DOMUIEvent): (DOMKeyboardEvent::DOMKeyboardEvent): (DOMMouseEvent::DOMMouseEvent): (DOMMutationEvent::DOMMutationEvent): (DOMOverflowEvent::DOMOverflowEvent): (DOMWheelEvent::DOMWheelEvent): * MemoryStream.cpp: (MemoryStream::MemoryStream): (MemoryStream::createInstance): * MemoryStream.h: * Plugins/PluginDatabase.cpp: (WebCore::PluginDatabase::refresh): (WebCore::PluginDatabase::add): (WebCore::PluginDatabase::loadPersistentMetadataCache): * Plugins/PluginDatabase.h: * Plugins/PluginPackage.cpp: (WebCore::PluginPackage::createPackage): (WebCore::PluginPackage::createPackageFromCache): * Plugins/PluginPackage.h: * Plugins/PluginStream.h: (WebCore::PluginStream::create): * WebActionPropertyBag.cpp: (WebActionPropertyBag::WebActionPropertyBag): (WebActionPropertyBag::createInstance): * WebActionPropertyBag.h: * WebArchive.cpp: (WebArchive::createInstance): (WebArchive::WebArchive): * WebArchive.h: * WebBackForwardList.cpp: (WebBackForwardList::WebBackForwardList): (WebBackForwardList::createInstance): * WebBackForwardList.h: * WebCoreSupport/EmbeddedWidget.cpp: (EmbeddedWidget::create): * WebCoreSupport/EmbeddedWidget.h: * WebCoreSupport/WebChromeClient.h: * WebFrame.cpp: (WebFrame::loadData): (WebFrame::createSubframeWithOwnerElement): * WebFrame.h: * WebFramePolicyListener.cpp: (WebFramePolicyListener::WebFramePolicyListener): (WebFramePolicyListener::createInstance): * WebFramePolicyListener.h: * WebGeolocationPolicyListener.cpp: (WebGeolocationPolicyListener::createInstance): (WebGeolocationPolicyListener::WebGeolocationPolicyListener): * WebGeolocationPolicyListener.h: * WebHistoryItem.cpp: (WebHistoryItem::WebHistoryItem): (WebHistoryItem::createInstance): * WebHistoryItem.h: * WebMutableURLRequest.cpp: (WebMutableURLRequest::setFormData): (WebMutableURLRequest::formData): * WebMutableURLRequest.h: * WebResource.cpp: (WebResource::createInstance): * WebResource.h: * WebScriptWorld.cpp: (WebScriptWorld::WebScriptWorld): (WebScriptWorld::createInstance): * WebScriptWorld.h: * WebURLAuthenticationChallengeSender.cpp: (WebURLAuthenticationChallengeSender::WebURLAuthenticationChallengeSender): (WebURLAuthenticationChallengeSender::createInstance): * WebURLAuthenticationChallengeSender.h: * WebView.cpp: (WebView::setFullScreenElement): * WebView.h: 2017-05-11 Chris Dumez Drop remaining uses of PassRefPtr in WebCore https://bugs.webkit.org/show_bug.cgi?id=172013 Reviewed by Yusuke Suzuki. * Plugins/PluginView.cpp: (WebCore::PluginView::bindingInstance): 2017-05-11 Chris Dumez Stop using PassRefPtr in platform/graphics https://bugs.webkit.org/show_bug.cgi?id=171977 Reviewed by Alex Christensen. Build fix. * FullscreenVideoController.cpp: (FullscreenVideoController::enterFullscreen): * WebKitDLL.cpp: (loadResourceIntoBuffer): 2017-05-09 Sam Weinig Remove support for legacy Notifications https://bugs.webkit.org/show_bug.cgi?id=171487 Reviewed by Jon Lee. * WebCoreSupport/WebChromeClient.cpp: (WebChromeClient::WebChromeClient): * WebCoreSupport/WebChromeClient.h: * WebCoreSupport/WebDesktopNotificationsDelegate.cpp: * WebCoreSupport/WebDesktopNotificationsDelegate.h: Remove legacy notification specific code. 2017-05-09 Dean Jackson Fix Windows build. * Plugins/PluginView.h: * Plugins/PluginViewWin.cpp: (WebCore::PluginView::paint): 2017-05-06 Alexey Proskuryakov REGRESSION (r216294): The new test fails on WebKit1 https://bugs.webkit.org/show_bug.cgi?id=171780 Rolling back https://trac.webkit.org/r216294, https://trac.webkit.org/r216296, https://trac.webkit.org/216299, https://trac.webkit.org/216330 * Plugins/PluginView.h: * Plugins/PluginViewWin.cpp: (WebCore::PluginView::paint): 2017-05-06 Simon Fraser Fix Windows build after r216294. * Plugins/PluginView.h: * Plugins/PluginViewWin.cpp: (WebCore::PluginView::paint): 2017-05-04 Commit Queue Unreviewed, rolling out r216206. https://bugs.webkit.org/show_bug.cgi?id=171714 Multiple LayoutTests crashing in Document::page() (Requested by ap on #webkit). Reverted changeset: "Remove support for legacy Notifications" https://bugs.webkit.org/show_bug.cgi?id=171487 http://trac.webkit.org/changeset/216206 2017-05-04 Don Olmstead [Win] Remove redundant macros that are set in the CMake config https://bugs.webkit.org/show_bug.cgi?id=171571 Reviewed by Brent Fulgham. * COMEnumVariant.h: * COMPropertyBag.h: * WebKitPrefix.h: 2017-05-04 Sam Weinig Remove support for legacy Notifications https://bugs.webkit.org/show_bug.cgi?id=171487 Reviewed by Jon Lee. * WebCoreSupport/WebChromeClient.cpp: (WebChromeClient::WebChromeClient): * WebCoreSupport/WebChromeClient.h: * WebCoreSupport/WebDesktopNotificationsDelegate.cpp: * WebCoreSupport/WebDesktopNotificationsDelegate.h: Remove legacy notification specific code. 2017-04-27 Alex Christensen Modernize Frame.h https://bugs.webkit.org/show_bug.cgi?id=171357 Reviewed by Andy Estes. * WebCoreSupport/WebEditorClient.cpp: (WebEditorClient::isSelectTrailingWhitespaceEnabled): * WebCoreSupport/WebEditorClient.h: 2017-04-20 Fujii Hironori [WinCairo] Fix build break after updating ANGLE https://bugs.webkit.org/show_bug.cgi?id=170980 Reviewed by Brent Fulgham. * WebCoreSupport/AcceleratedCompositingContext.cpp: Define GL_GLEXT_PROTOTYPES. 2017-04-19 Brent Fulgham [Win] REGRESSION(r215486): Windows Release build is broken https://bugs.webkit.org/show_bug.cgi?id=171024 Reviewed by Mark Lam. Windows WebKit refers to a handful of JSC methods that are always inline. We need to include 'HeapInlines.h' to get the implementation of these methods. * Plugins/PluginPackage.cpp: * WebFrame.cpp: * WebView.cpp: 2017-04-15 Wenson Hsieh Unreviewed, fix the Windows build after r215385 r215385 introduced a new virtual method on ChromeClient that needs to be implemented in WebChromeClient for Windows in WebKit1. * WebCoreSupport/WebChromeClient.cpp: (WebChromeClient::createIconForFiles): * WebCoreSupport/WebChromeClient.h: 2017-04-10 Chris Dumez Drop Timer::startOneShot() overload taking a double https://bugs.webkit.org/show_bug.cgi?id=170659 Reviewed by Yusuke Suzuki. Drop Timer::startOneShot() overload taking a double as people should use Seconds type now. * Plugins/PluginMessageThrottlerWin.cpp: (WebCore::PluginMessageThrottlerWin::appendMessage): (WebCore::PluginMessageThrottlerWin::messageThrottleTimerFired): * Plugins/PluginViewWin.cpp: (WebCore::PluginView::invalidateRect): * WebCoreSupport/AcceleratedCompositingContext.cpp: (AcceleratedCompositingContext::scheduleLayerFlush): 2017-04-09 Chris Dumez Drop Timer::startRepeating() overload taking a double https://bugs.webkit.org/show_bug.cgi?id=170656 Reviewed by Yusuke Suzuki. Drop Timer::startRepeating() overload taking a double as people should use Seconds type now. * FullscreenVideoController.cpp: 2017-04-09 Chris Dumez Start dropping Timer API dealing with double https://bugs.webkit.org/show_bug.cgi?id=170649 Reviewed by Yusuke Suzuki. Start dropping Timer API dealing with double as people should use Seconds now. * Plugins/PluginPackage.cpp: (WebCore::PluginPackage::freeLibrarySoon): * Plugins/PluginStream.cpp: (WebCore::PluginStream::deliverData): * Plugins/PluginView.cpp: (WebCore::PluginView::requestTimerFired): (WebCore::PluginView::scheduleRequest): (WebCore::PluginView::setJavaScriptPaused): (WebCore::PluginView::keepAlive): * Plugins/PluginViewWin.cpp: (WebCore::PluginView::wndProc): * WebView.cpp: (WebView::closeWindowSoon): 2017-04-08 Chris Dumez Drop std::chrono support from Timer class https://bugs.webkit.org/show_bug.cgi?id=170645 Reviewed by Sam Weinig. Drop std::chrono support from Timer class now that we prefer using Seconds type. * WebView.cpp: (WebView::setCacheModel): 2017-03-31 Fujii Hironori [WinCairo] WebCore::PlatformDisplay::terminateEGLDisplay causes a crash in libGLESv2.dll while processing atexit https://bugs.webkit.org/show_bug.cgi?id=170331 Reviewed by Michael Catanzaro. * WebKitDLL.cpp: (shutDownWebKit): Call PlatformDisplay::shutDownEglDisplays in shutDownWebKit. 2017-03-30 James Craig AX: Expose a new AXSubrole for explicit ARIA "group" role https://bugs.webkit.org/show_bug.cgi?id=169810 Reviewed by Chris Fleizach. Account for Windows platform role mapping. * AccessibleBase.cpp: (MSAARole): 2017-03-24 Wenson Hsieh [WK2] Add a UI delegate SPI hook to enable or disable navigation on drop https://bugs.webkit.org/show_bug.cgi?id=169168 Reviewed by Tim Horton. Minor tweak to adjust for a changed interface. See WebKit and WebCore ChangeLogs for more information. * WebCoreSupport/WebDragClient.cpp: (WebDragClient::actionMaskForDrag): * WebCoreSupport/WebDragClient.h: 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-13 Per Arne Vollan Unreviewed Win build fix. WebCore::CookiesStrategy::addCookie has been removed, we should also remove the override. * WebCoreSupport/WebPlatformStrategies.cpp: (WebPlatformStrategies::addCookie): Deleted. (WebPlatformStrategies::addCookie): Deleted. * WebCoreSupport/WebPlatformStrategies.h: 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-03-06 Myles C. Maxfield Expand font-weight and font-stretch to take any number https://bugs.webkit.org/show_bug.cgi?id=168889 Reviewed by Simon Fraser. Migrate off old enum types. * WebKitGraphics.cpp: (makeFont): 2017-03-02 Sam Weinig Rename htmlediting.h/cpp to Editing.h/cpp https://bugs.webkit.org/show_bug.cgi?id=169103 Reviewed by Alex Christensen. * AccessibleTextImpl.cpp: 2017-03-01 Alex Christensen Actually fix Windows build. * WebFrame.cpp: (WebFrame::invalidate): r213266 changed Style::Force to ResolveStyleType::Rebuild, so I did so here. 2017-03-01 Alex Christensen Fix Windows build after r213266 https://bugs.webkit.org/show_bug.cgi?id=169049 * WebFrame.cpp: (WebFrame::invalidate): 2017-02-27 Per Arne Vollan [Win] Http preload tests are failing. https://bugs.webkit.org/show_bug.cgi?id=168910 Reviewed by Alex Christensen. The feature is not enabled. * WebView.cpp: (WebView::notifyPreferencesChanged): 2017-02-22 Carlos Garcia Campos Better handle Thread and RunLoop initialization https://bugs.webkit.org/show_bug.cgi?id=167828 Reviewed by Yusuke Suzuki. Remove unnecessary call to WTF::initializeMainThread(). * WebView.cpp: (WebView::WebView): 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-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-15 Anders Carlsson Another attempt at fixing the Windows build. * WebCoreSupport/WebDragClient.cpp: (WebDragClient::startDrag): 2017-02-15 Anders Carlsson Try to fix the Windows build. * WebCoreSupport/WebDragClient.h: 2017-02-15 Anders Carlsson Modernize DragClient::startDrag somewhat https://bugs.webkit.org/show_bug.cgi?id=168379 Reviewed by Tim Horton. Update for WebCore changes. * WebCoreSupport/WebDragClient.cpp: (WebDragClient::startDrag): 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-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-10 Joseph Pecoraro [Resource Timing] Enable Resource Timing by default in Tests https://bugs.webkit.org/show_bug.cgi?id=168145 Reviewed by Ryosuke Niwa. * Interfaces/IWebPreferencesPrivate.idl: * WebPreferenceKeysPrivate.h: * WebPreferences.cpp: (WebPreferences::initializeDefaultSettings): (WebPreferences::setResourceTimingEnabled): (WebPreferences::resourceTimingEnabled): * WebPreferences.h: * WebView.cpp: (WebView::notifyPreferencesChanged): 2017-02-06 Alex Christensen More build fixes after r211751 https://bugs.webkit.org/show_bug.cgi?id=166998 * WebDownloadCFNet.cpp: (WebDownload::didReceiveAuthenticationChallenge): 2017-02-06 Said Abou-Hallawa Rename AnimationController to CSSAnimationController https://bugs.webkit.org/show_bug.cgi?id=167829 Reviewed by Simon Fraser. * WebFrame.cpp: 2017-02-02 Wenson Hsieh Drag images should be anchored to the mouse location https://bugs.webkit.org/show_bug.cgi?id=167690 Reviewed by Enrica Casucci. Adds some plumbing for the anchor point in the WK1 client layer. * WebCoreSupport/WebDragClient.cpp: (WebDragClient::startDrag): * WebCoreSupport/WebDragClient.h: 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-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-01-28 Yoav Weiss Add Link Preload as an off-by-default experimental feature menu item. https://bugs.webkit.org/show_bug.cgi?id=167201 Reviewed by Ryosuke Niwa. * WebPreferenceKeysPrivate.h: * WebPreferences.cpp: (WebPreferences::initializeDefaultSettings): (WebPreferences::valueForKey): (WebPreferences::setLinkPreloadEnabled): (WebPreferences::linkPreloadEnabled): * WebPreferences.h: * Interfaces/IWebPreferencesPrivate.idl: 2017-01-28 Joseph Pecoraro Add User Timing Experimental Feature https://bugs.webkit.org/show_bug.cgi?id=167542 Reviewed by Ryosuke Niwa. * Interfaces/IWebPreferencesPrivate.idl: * WebPreferenceKeysPrivate.h: * WebPreferences.cpp: (WebPreferences::initializeDefaultSettings): (WebPreferences::setUserTimingEnabled): (WebPreferences::userTimingEnabled): * WebPreferences.h: * WebView.cpp: (WebView::notifyPreferencesChanged): Add setting for User Timing runtime enabled feature. 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-01-26 Keith Miller classInfo should take a VM so it is not materialized from the object on each call https://bugs.webkit.org/show_bug.cgi?id=167424 Rubber Stamped by Michael Saboff. Previously, classInfo() would get the VM from the target's MarkedBlock. Most callers already have a VM on hand, so it is wasteful to compute the VM from the marked block every time. This patch refactors some of the most common callers of classInfo(), jsDynamicCast and inherits to take a VM as well. * WebFrame.cpp: (WebFrame::stringByEvaluatingJavaScriptInScriptWorld): * WebView.cpp: (WebView::elementFromJS): 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-24 Youenn Fablet [WebRTC] Introduce libwebrtc abstraction for WK1/WK2 implementations https://bugs.webkit.org/show_bug.cgi?id=167294 Reviewed by Alex Christensen. * WebView.cpp: (WebView::initWithFrame): 2017-01-23 Chris Dumez REGRESSION (r211033): ASSERTION FAILED: m_ptr in com.apple.WebCore: WTF::RefPtr::operator* const + 70 https://bugs.webkit.org/show_bug.cgi?id=167308 Unreviewed, do a partial revert of r211033 to fix assertion. * WebCoreSupport/WebChromeClient.cpp: (WebChromeClient::exitFullScreenForElement): 2017-01-20 Darin Adler Remove PassRefPtr from "page" directory of WebCore, also deploy references https://bugs.webkit.org/show_bug.cgi?id=167224 Reviewed by Chris Dumez. * Plugins/PluginView.cpp: (WebCore::PluginView::status): Pass reference. (WebCore::PluginView::focusPluginElement): Ditto. * WebCoreSupport/WebChromeClient.cpp: (WebChromeClient::createWindow): Updated for change to ChromeClient. (WebChromeClient::runBeforeUnloadConfirmPanel): Ditto. (WebChromeClient::runJavaScriptAlert): Ditto. (WebChromeClient::runJavaScriptConfirm): Ditto. (WebChromeClient::runJavaScriptPrompt): Ditto. (WebChromeClient::contentsSizeChanged): Ditto. (WebChromeClient::unavailablePluginButtonClicked): Ditto. (WebChromeClient::print): Ditto. (WebChromeClient::exceededDatabaseQuota): Ditto. (WebChromeClient::reachedApplicationCacheOriginQuota): Ditto. (WebChromeClient::attachRootGraphicsLayer): Ditto. (WebChromeClient::attachViewOverlayGraphicsLayer): Ditto. (WebChromeClient::enterVideoFullscreenForVideoElement): Ditto. (WebChromeClient::createPopupMenu): Ditto. (WebChromeClient::createSearchPopupMenu): Ditto. (WebChromeClient::supportsFullScreenForElement): Ditto. (WebChromeClient::enterFullScreenForElement): Ditto. (WebChromeClient::exitFullScreenForElement): Ditto. (WebChromeClient::shouldUseTiledBackingForFrameView): Ditto. * WebCoreSupport/WebChromeClient.h: Ditto. 2017-01-20 Joseph Pecoraro Remove never changing IndexedDB RuntimeEnabledFeature https://bugs.webkit.org/show_bug.cgi?id=167278 Reviewed by Darin Adler. * WebView.cpp: (WebView::notifyPreferencesChanged): 2017-01-20 Joseph Pecoraro Cleanup RuntimeEnabledFeatures https://bugs.webkit.org/show_bug.cgi?id=167228 Reviewed by Simon Fraser. * WebView.cpp: (WebView::notifyPreferencesChanged): 2017-01-20 Alex Christensen Build Fix for Windows DumpRenderTree after r210976 https://bugs.webkit.org/show_bug.cgi?id=167115 * WebPreferences.h: Remove extra space. * IWebPreferencesPrivate.idl: Add new interface functions. * WebView.cpp: We use new functions that are only in IWebPreferencesPrivate4, so instantiate that COM object instead of version 3. 2017-01-20 Joseph Pecoraro Build Fix for Windows DumpRenderTree after r210976 * WebPreferenceKeysPrivate.h: * WebPreferences.cpp: (WebPreferences::initializeDefaultSettings): (WebPreferences::setWebAnimationsEnabled): (WebPreferences::webAnimationsEnabled): * WebPreferences.h: * WebView.cpp: Add toggle APIs for WebAnimations. 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): 2017-01-18 Alex Christensen Fix WinCairo build after r210845. https://bugs.webkit.org/show_bug.cgi?id=167055 * WebCoreSupport/WebFrameLoaderClient.cpp: * WebCoreSupport/WebFrameLoaderClient.h: shouldCacheResponse isn't used when loading with libcurl. It was dead code before Darin added "override". WebCore/FrameLoaderClient.h has this inside of USE(CFURLCONNECTION) macros, now we have them here, too. 2017-01-18 Andreas Kling Document::securityOrigin() should return a reference. Reviewed by Sam Weinig. * Plugins/PluginView.cpp: (WebCore::PluginView::load): * WebCoreSupport/WebChromeClient.cpp: (WebChromeClient::exceededDatabaseQuota): * WebCoreSupport/WebFrameLoaderClient.cpp: (WebFrameLoaderClient::didRunInsecureContent): * WebCoreSupport/WebFrameLoaderClient.h: * WebCoreSupport/WebGeolocationClient.cpp: (WebGeolocationClient::requestPermission): * WebFrame.cpp: (WebFrame::allowsFollowingLink): 2017-01-15 Darin Adler Remove PassRefPtr from "loader" directory of WebCore https://bugs.webkit.org/show_bug.cgi?id=167055 Reviewed by Alex Christensen. * Plugins/PluginView.cpp: (WebCore::PluginView::mediaCanStart): Fix call to dispatchDidFailToStartPlugin by calling it directly on WebFrameLoaderClient. If my theory is correct, the old call has been broken and doing nothing since r177941, two years ago, which made the argument types different between FrameLoaderClient and WebFrameLoaderClient, leaving WebFrameLoaderClient::dispatchDidFailToStartPlugin as dead code. * WebCoreSupport/WebChromeClient.cpp: (WebChromeClient::runOpenPanel): Updated for change to ChromeClient. * WebCoreSupport/WebChromeClient.h: Ditto. * WebCoreSupport/WebEditorClient.cpp: (WebEditorUndoCommand::WebEditorUndoCommand): Take a reference instead of a PassRefPtr. Also use Ref instead of RefPtr. (WebEditorClient::shouldChangeTypingStyle): Deleted. Empty function that was never called. (WebEditorClient::webViewDidChangeTypingStyle): Ditto. (WebEditorClient::webViewDidChangeSelection): Ditto. (WebEditorClient::registerUndoStep): Take reference instead of PassRefPtr. (WebEditorClient::registerRedoStep): Ditto. * WebCoreSupport/WebEditorClient.h: Updated for the above. Also marked the class and member functions final and made them all private, which will help us catch if there are any that don't correctly match WebCore. * WebCoreSupport/WebFrameLoaderClient.cpp: (WebFrameLoaderClient::dispatchDecidePolicyForNewWindowAction): Updated for change to ChromeClient. (WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction): Ditto. (WebFrameLoaderClient::dispatchWillSendSubmitEvent): Ditto. (WebFrameLoaderClient::dispatchWillSubmitForm): Ditto. (WebFrameLoaderClient::createFrame): Ditto. Also merged two functions into one because one was private and only called by the other. (WebFrameLoaderClient::createPlugin): Ditto. (WebFrameLoaderClient::createJavaAppletWidget): Ditto. (WebFrameLoaderClient::createNetworkingContext): Ditto. * WebCoreSupport/WebFrameLoaderClient.h: Ditto. * WebCoreSupport/WebFrameNetworkingContext.h: (WebFrameNetworkingContext::create): Return a Ref instead of a PassRefPtr. 2017-01-12 Joseph Pecoraro Remove unnecessary includes of Page.h https://bugs.webkit.org/show_bug.cgi?id=166996 Reviewed by Yusuke Suzuki. * AccessibleTextImpl.cpp: * BackForwardList.cpp: 2017-01-06 Darin Adler Remove PassRefPtr use from "inspector", "platform/sql", and "platform/text" https://bugs.webkit.org/show_bug.cgi?id=166797 Reviewed by Alex Christensen. * WebCoreSupport/WebEditorClient.h: Update argument to take a reference instead of a PassRefPtr. 2017-01-05 Andreas Kling Remove ChromeClient::needTouchEvents(). Rubber-stamped by Antti Koivisto. * WebCoreSupport/WebChromeClient.h: 2017-01-04 Darin Adler Remove PassRefPtr use from the "html" directory, other improvements https://bugs.webkit.org/show_bug.cgi?id=166635 Reviewed by Alex Christensen. * WebCoreSupport/WebChromeClient.cpp: (WebChromeClient::loadIconForFiles): Take a reference instead of a pointer. * WebCoreSupport/WebChromeClient.h: Updated for the above. 2016-12-30 Darin Adler Remove PassRefPtr use from the "dom" directory, related cleanup https://bugs.webkit.org/show_bug.cgi?id=166569 Reviewed by Alex Christensen. * WebCoreSupport/WebFrameLoaderClient.cpp: (WebFrameLoaderClient::dispatchDidReceiveTitle): Updated since StringWithDirection::title is now a data member, not a function member. (WebFrameLoaderClient::updateGlobalHistory): Ditto. (WebFrameLoaderClient::setTitle): Ditto. * WebDataSource.cpp: (WebDataSource::pageTitle): Ditto. 2016-12-25 Yusuke Suzuki Propagate the source origin as much as possible https://bugs.webkit.org/show_bug.cgi?id=166348 Reviewed by Darin Adler. * Plugins/PluginPackage.cpp: (WebCore::NPN_Evaluate): (WebCore::makeSource): Deleted. 2016-12-22 Andy Estes Make WebCore::EditorInsertAction an enum class https://bugs.webkit.org/show_bug.cgi?id=166424 Reviewed by Brent Fulgham. * WebCoreSupport/WebEditorClient.cpp: (kit): (WebEditorClient::shouldInsertNode): (WebEditorClient::shouldInsertText): 2016-12-19 Yusuke Suzuki [ES6] Enable ES6 Modules https://bugs.webkit.org/show_bug.cgi?id=165849 Reviewed by Geoffrey Garen. * Interfaces/IWebPreferencesPrivate.idl: * WebPreferenceKeysPrivate.h: * WebPreferences.cpp: (WebPreferences::setES6ModulesEnabled): Deleted. (WebPreferences::es6ModulesEnabled): 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 ==