2009-10-15 Eric Carlson Reviewed by Adele Peterson. Fullscreen max/min volume buttons non-functional * WebView/WebVideoFullscreenHUDWindowController.mm: (-[WebVideoFullscreenHUDWindowController windowDidLoad]): Set volume buttons target and action. (-[WebVideoFullscreenHUDWindowController decrementVolume:]): New, decrement the volume by 10%. (-[WebVideoFullscreenHUDWindowController incrementVolume:]): New, increment the volume by 10%. 2009-10-15 Eric Carlson Reviewed by Simon Fraser. No way to mute/unmute a movie in full screen video mode * WebView/WebVideoFullscreenHUDWindowController.mm: (-[WebVideoFullscreenHUDWindowController setVolume:]): Unmute movie before changing volume. 2009-10-14 Kevin Decker Unbreak the world. * Plugins/WebBaseNetscapePluginView.mm: (WebHaltablePlugin::restart): 2009-10-14 Kevin Decker Reviewed by Anders Carlsson and Jon Honeycutt snapshots of halted plug-ins are missing * Plugins/WebBaseNetscapePluginView.mm: Move bodies of WebHaltablePlugin virtual functions from WebHaltablePlugin class definition. (WebHaltablePlugin::halt): Provide a substitute image to the RenderWidget for the plug-in view. (WebHaltablePlugin::restart): Clear the substitute image. 2009-10-13 Dave Hyatt Reviewed by Adam Roben. Change the order of arguments on some methods. Split removal for user stylesheets and script into separate functions based off the type of object being removed. * WebView/WebView.mm: (+[WebView _addUserScriptToGroup:worldID:source:url:whitelist:blacklist:injectionTime:]): (+[WebView _addUserStyleSheetToGroup:worldID:source:url:whitelist:blacklist:]): (+[WebView _removeUserScriptFromGroup:worldID:url:]): (+[WebView _removeUserStyleSheetFromGroup:worldID:url:]): (+[WebView _removeUserScriptsFromGroup:worldID:]): (+[WebView _removeUserStyleSheetsFromGroup:worldID:]): * WebView/WebViewPrivate.h: 2009-10-13 Anders Carlsson Reviewed by Sam Weinig. Add "privacy mode" to Netscape Plug-in API Listen for WebPreferences notifications and update the _isPrivateBrowsingEnabled ivar when the value changes. Also call -[WebBaseNetscapePluginView privateBrowsingModeDidChange] when the value changes. In process this just calls NPP_SetValue, and OOP it sends a MIG message to the plug-in host. * Plugins/Hosted/NetscapePluginHostManager.h: * Plugins/Hosted/NetscapePluginHostManager.mm: (WebKit::NetscapePluginHostManager::instantiatePlugin): * Plugins/Hosted/NetscapePluginInstanceProxy.h: * Plugins/Hosted/NetscapePluginInstanceProxy.mm: (WebKit::NetscapePluginInstanceProxy::privateBrowsingModeDidChange): * Plugins/Hosted/WebHostedNetscapePluginView.mm: (-[WebHostedNetscapePluginView createPlugin]): (-[WebHostedNetscapePluginView privateBrowsingModeDidChange]): * Plugins/Hosted/WebKitPluginHost.defs: * Plugins/WebBaseNetscapePluginView.h: * Plugins/WebBaseNetscapePluginView.mm: (-[WebBaseNetscapePluginView privateBrowsingModeDidChange]): (-[WebBaseNetscapePluginView viewDidMoveToWindow]): (-[WebBaseNetscapePluginView preferencesHaveChanged:]): * Plugins/WebNetscapePluginView.mm: (-[WebNetscapePluginView privateBrowsingModeDidChange]): (-[WebNetscapePluginView getVariable:value:]): 2009-10-12 Simon Fraser Reviewed by Darin Adler. Video keeps playing after going fullscreen, then closing window https://bugs.webkit.org/show_bug.cgi?id=30164 Clear the QTMovie on the QTMovieView when coming out of fullscreen, to fix issue where the underlying movie keeps playing. * WebView/WebVideoFullscreenController.mm: (-[WebVideoFullscreenController windowDidExitFullscreen]): 2009-10-11 Dan Bernstein Reviewed by Darin Adler. REGRESSION (r48492): Gmail voice and video chat doesn’t work https://bugs.webkit.org/show_bug.cgi?id=30295 Test: plugins/setProperty.html * Plugins/Hosted/ProxyInstance.mm: (WebKit::ProxyInstance::setFieldValue): Fixed a typo. The function should return early if m_instanceProxy is null. 2009-10-09 Adam Barth Reviewed by Darin Adler. Factor HistoryController out of FrameLoader https://bugs.webkit.org/show_bug.cgi?id=30246 Update API call. * WebCoreSupport/WebFrameLoaderClient.mm: (WebFrameLoaderClient::restoreViewState): * WebView/WebView.mm: (-[WebView _loadBackForwardListFromOtherView:]): 2009-10-09 Mark Rowe Reviewed by Brady Eidson. Crash after navigating away from a page with subframe containing plug-in At the time that -stop is called on a WebBaseNetscapePluginView that is contained within a subframe the WebFrame's data source has been zeroed out. This was causing -[WebBaseNetscapePluginView webFrame] to return nil during -stop, preventing the plug-in view from unregistering itself from the PluginHalter. We fix this by having -webFrame retrieve the frame directly rather than retrieving it from the data source. * Plugins/WebBaseNetscapePluginView.mm: (-[WebBaseNetscapePluginView dataSource]): Get the data source from the WebFrame. (-[WebBaseNetscapePluginView webFrame]): Get the Frame directly from the element's document rather than taking a windy route through the WebDataSource. 2009-10-09 Brady Eidson Reviewed by Dan Bernstein. Add SPI to specifically enable visited link tracking. * History/WebHistory.mm: (+[WebHistory _setVisitedLinkTrackingEnabled:]): * History/WebHistoryPrivate.h: 2009-10-08 Jon Honeycutt Remove the WebKitPluginHalterEnabledPreferenceKey in favor of checking for the existence of a PluginHalterDelegate. Reviewed by Dan Bernstein. * WebCoreSupport/WebPluginHalterClient.h: Add declaration for new function. * WebCoreSupport/WebPluginHalterClient.mm: (WebPluginHalterClient::enabled): Check whether the UIDelegate responds to shouldHaltPlugin. * WebView/WebPreferenceKeysPrivate.h: Remove the "enabled" preference key. * WebView/WebPreferences.mm: (+[WebPreferences initialize]): Remove the initialization of the pref. * WebView/WebPreferencesPrivate.h: Remove the getter/setter for this pref. * WebView/WebView.mm: (-[WebView _preferencesChangedNotification:]): Remove propagation of the pref. 2009-10-08 Adam Barth Reviewed by Eric Seidel. Move executeScript from FrameLoader to ScriptController https://bugs.webkit.org/show_bug.cgi?id=30200 Update API call. * WebView/WebFrame.mm: (-[WebFrame _stringByEvaluatingJavaScriptFromString:forceUserGesture:]): * WebView/WebView.mm: (-[WebView aeDescByEvaluatingJavaScriptFromString:]): 2009-10-08 Brady Eidson Reviewed by Dan Bernstein. Ask the History Delegate to populate the visited links hash. and https://webkit.org/b/29904 * History/WebHistory.mm: (+[WebHistory _removeAllVisitedLinks]): * History/WebHistoryPrivate.h: * WebCoreSupport/WebChromeClient.mm: (WebChromeClient::populateVisitedLinks): * WebView/WebDelegateImplementationCaching.h: * WebView/WebDelegateImplementationCaching.mm: (CallHistoryDelegate): * WebView/WebHistoryDelegate.h: * WebView/WebView.mm: (-[WebView _cacheHistoryDelegateImplementations]): (-[WebView addVisitedLinks:]): * WebView/WebViewPrivate.h: 2009-10-08 Anders Carlsson Reviewed by Sam Weinig. Remove the shouldLoadMediaElementURL implementation. * WebCoreSupport/WebFrameLoaderClient.h: * WebCoreSupport/WebFrameLoaderClient.mm: * WebView/WebPolicyDelegatePrivate.h: 2009-10-07 Simon Fraser Re-land 49269-49271 since reverting them did not fix the tests. * WebView/WebHTMLView.mm: (-[WebHTMLView drawRect:]): 2009-10-07 Simon Fraser Revert 49269-49271 to see if it fixes test failures on SnowLeopard that do not reproduce locally. * WebView/WebHTMLView.mm: (-[WebHTMLView drawRect:]): 2009-10-07 Adam Barth Reviewed by Darin Adler. Factor PolicyChecker out of FrameLoader https://bugs.webkit.org/show_bug.cgi?id=30155 Move the policy callback to the policy object. * WebCoreSupport/WebFrameLoaderClient.mm: (WebFrameLoaderClient::dispatchWillSubmitForm): (WebFrameLoaderClient::receivedPolicyDecison): 2009-10-07 Brady Eidson Reviewed by Darin Adler. Send title changes to the global history delegate. and https://webkit.org/b/29904 * WebCoreSupport/WebFrameLoaderClient.mm: (WebFrameLoaderClient::setTitle): * WebView/WebDelegateImplementationCaching.h: * WebView/WebHistoryDelegate.h: * WebView/WebView.mm: (-[WebView _cacheHistoryDelegateImplementations]): 2009-10-07 Darin Adler Reviewed by John Sullivan. Make the setMetadataURL function foolproof by having it remove user info https://bugs.webkit.org/show_bug.cgi?id=30178 rdar://problem/6544670 * Misc/WebNSFileManagerExtras.m: (-[NSFileManager _webkit_setMetadataURL:referrer:atPath:]): Call _web_URLByRemovingUserInfo on the passed in URL string after converting it to a URL, and then convert it back to a string. * Misc/WebNSURLExtras.h: Added _web_URLByRemovingUserInfo. * Misc/WebNSURLExtras.mm: Removed unused WebKitURLComponents struct. (-[NSURL _web_URLByTruncatingOneCharacterBeforeComponent:]): Renamed to be clearer on what this does. (-[NSURL _webkit_URLByRemovingFragment]): Changed to call new name. (-[NSURL _webkit_URLByRemovingResourceSpecifier]): Ditto. (-[NSURL _web_URLByRemovingComponentAndSubsequentCharacter:]): Added. (-[NSURL _web_URLByRemovingUserInfo]): Added. 2009-10-07 Simon Fraser Make Dan Bernstein happy. * WebView/WebHTMLView.mm: (-[WebHTMLView drawRect:]): 2009-10-07 Simon Fraser Reviewed by Dan Bernstein. Avoid Obj-C message dispatch when possible by storing accessed objects in local variables. * WebView/WebHTMLView.mm: (-[WebHTMLView drawRect:]): 2009-10-07 Simon Fraser Reviewed by Dan Bernstein. Animation stalls for a few seconds partway through https://bugs.webkit.org/show_bug.cgi?id=30182 Make sure that we only call -disableScreenUpdatesUntilFlush when a window update is actually going to happen, otherwise screen updates are disabled for too long. * WebView/WebHTMLView.mm: (-[WebHTMLView drawRect:]): 2009-10-06 Pavel Feldman Reviewed by Timothy Hatcher. Web Inspector: default to an attached inspector window on Windows (as on Mac). https://bugs.webkit.org/show_bug.cgi?id=30134 * WebCoreSupport/WebInspectorClient.mm: (-[WebInspectorWindowController showWindow:]): 2009-10-06 Adam Barth Reviewed by Eric Seidel. Move FrameLoader::canLoad to SecurityOrigin https://bugs.webkit.org/show_bug.cgi?id=30111 * Plugins/Hosted/HostedNetscapePluginStream.mm: (WebKit::HostedNetscapePluginStream::HostedNetscapePluginStream): * Plugins/Hosted/NetscapePluginInstanceProxy.mm: (WebKit::NetscapePluginInstanceProxy::loadRequest): * Plugins/WebBaseNetscapePluginStream.mm: (WebNetscapePluginStream::WebNetscapePluginStream): * Plugins/WebNetscapePluginView.mm: (-[WebNetscapePluginView loadRequest:inTarget:withNotifyData:sendNotification:]): * Plugins/WebPluginContainerCheck.mm: (-[WebPluginContainerCheck _isForbiddenFileLoad]): * WebView/WebFrame.mm: (-[WebFrame _allowsFollowingLink:]): 2009-10-06 Adam Barth Reviewed by Eric Seidel. Move setLocalLoadPolicy and friends to SecurityOrigin https://bugs.webkit.org/show_bug.cgi?id=30110 Call the new API. * WebView/WebView.mm: (-[WebView _commonInitializationWithFrameName:groupName:usesDocumentViews:]): 2009-10-06 Simon Fraser Reviewed by Mark Rowe. accessibility/media-element.html crashes (and has incorrect result) https://bugs.webkit.org/show_bug.cgi?id=30108 Fix up the accessibilty label for the newly added fullscreen button, and update the test result accordingly. * WebCoreSupport/WebViewFactory.mm: (-[WebViewFactory localizedMediaControlElementString:]): Handle "ControlsPanel" which is just an empty container, to avoid asserting in debug builds. 2009-10-06 Daniel Bates Reviewed by Eric Seidel. https://bugs.webkit.org/show_bug.cgi?id=30107 Fixes an issue where the Mac build does return the correct drop effect with respect to the HTML 5 specification when effectAllowed == "none". Currently, when effectAllowed == "none" and dropEffect == "copy" or dropEffect == "move" the resulting drop effect is "copy" and "move", respectively. However, the HTML 5 specification states that regardless of the specified dropEffect, when effectAllowed == "none" the resulting drop effect should be "none". * WebView/WebHTMLView.mm: (-[WebHTMLView draggingSourceOperationMaskForLocal:]): 2009-10-06 Pavel Feldman Reviewed by Timothy Hatcher. Web Inspector: close inspector client view on InspectorController::close API call. In order to run batch web inspector layout tests (and not affect subsequent tests) we should close inspector client's view upon InspectorController::close API call. https://bugs.webkit.org/show_bug.cgi?id=30009 * WebCoreSupport/WebInspectorClient.mm: (WebInspectorClient::createPage): 2009-10-05 Dan Bernstein Rubber-stamped by Mark Rowe. Moved a WebPluginHalterClient out of the WebCore namesapce. * WebCoreSupport/WebPluginHalterClient.h: 2009-10-05 Kevin Decker Reviewed by Dan Bernstein. Added new PluginHalter client, delegate and few more WebPreferences keys. * WebView/WebPreferenceKeysPrivate.h: Added two new keys. * WebView/WebPreferences.mm: (+[WebPreferences initialize]): Initialize newly added key. (-[WebPreferences pluginAllowedRunTime]): Added. (-[WebPreferences setPluginAllowedRunTime:]): Added. * WebView/WebPreferencesPrivate.h: Added above two methods. * WebView/WebUIDelegatePrivate.h: Added shouldHaltPlugin delegate. * WebView/WebView.mm: (-[WebView _commonInitializationWithFrameName:groupName:usesDocumentViews:]): Setup a new WebPluginHalterClient. (-[WebView _preferencesChangedNotification:]): Update WebCore settings accordingly. * WebCoreSupport/WebPluginHalterClient.h: Added. * WebCoreSupport/WebPluginHalterClient.mm: Added. (WebPluginHalterClient::WebPluginHalterClient): (WebPluginHalterClient::shouldHaltPlugin): Added, invoke the delegate. 2009-10-05 Simon Fraser More build fixes for Tiger. * WebView/WebVideoFullscreenController.mm: 2009-10-05 Simon Fraser More build fixes for Tiger. * WebView/WebVideoFullscreenController.mm: (-[WebVideoFullscreenWindow animationDidEnd:]): * WebView/WebWindowAnimation.m: 2009-10-05 Simon Fraser More build fixes for Tiger. * WebView/WebVideoFullscreenController.mm: * WebView/WebVideoFullscreenHUDWindowController.mm: (-[WebVideoFullscreenHUDWindow initWithContentRect:styleMask:backing:defer:]): (-[WebVideoFullscreenHUDWindowController scheduleTimeUpdate]): (-[WebVideoFullscreenHUDWindowController fadeWindowIn]): (-[WebVideoFullscreenHUDWindowController fadeWindowOut]): (-[WebVideoFullscreenHUDWindowController closeWindow]): 2009-10-05 Simon Fraser Build fixes for Tiger. * WebView/WebVideoFullscreenHUDWindowController.h: * WebView/WebVideoFullscreenHUDWindowController.mm: (-[WebVideoFullscreenHUDWindow initWithContentRect:styleMask:backing:defer:]): (-[WebVideoFullscreenHUDWindowController dealloc]): (-[WebVideoFullscreenHUDWindowController closeWindow]): (-[WebVideoFullscreenHUDWindowController windowDidLoad]): 2009-10-05 Simon Fraser Build fix. If you call Node::hasTagName(), you also have to include Element.h. * WebCoreSupport/WebChromeClient.mm: 2009-10-05 Pierre d'Herbemont Reviewed by Simon Fraser Support fullscreen in MediaPlayer (Mac) https://bugs.webkit.org/show_bug.cgi?id=26742 Add a fullscreen button to the