1. 27 Dec, 2013 1 commit
    • dbates@webkit.org's avatar
      [iOS] Upstream WebCore/page changes · 4da1af80
      dbates@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=126180
      
      Reviewed by Darin Adler.
      
      Source/WebCore:
      
      * WebCore.xcodeproj/project.pbxproj:
      * dom/EventNames.h:
      (WebCore::EventNames::isGestureEventType): Added.
      * page/AlternativeTextClient.h: Do not define WTF_USE_DICTATION_ALTERNATIVES when building for iOS.
      * page/Chrome.cpp:
      (WebCore::Chrome::Chrome):
      (WebCore::Chrome::dispatchViewportPropertiesDidChange): Added; guarded by PLATFORM(IOS).
      (WebCore::Chrome::setCursor): Make this an empty function when building for iOS.
      (WebCore::Chrome::setCursorHiddenUntilMouseMoves): Ditto.
      (WebCore::Chrome::didReceiveDocType): Added; iOS-specific.
      * page/Chrome.h:
      (WebCore::Chrome::setDispatchViewportDataDidChangeSuppressed): Added; guarded by PLATFORM(IOS).
      * page/ChromeClient.h:
      (WebCore::ChromeClient::didFlushCompositingLayers): Added; guarded by PLATFORM(IOS).
      (WebCore::ChromeClient::fetchCustomFixedPositionLayoutRect): Added; guarded by PLATFORM(IOS).
      (WebCore::ChromeClient::updateViewportConstrainedLayers): Added; guarded by PLATFORM(IOS).
      * page/DOMTimer.cpp:
      (WebCore::DOMTimer::install): Added iOS-specific code.
      (WebCore::DOMTimer::fired): Ditto.
      * page/DOMWindow.cpp:
      (WebCore::DOMWindow::DOMWindow): Ditto.
      (WebCore::DOMWindow::innerHeight): Ditto.
      (WebCore::DOMWindow::innerWidth): Ditto.
      (WebCore::DOMWindow::scrollX): Ditto.
      (WebCore::DOMWindow::scrollY): Ditto.
      (WebCore::DOMWindow::scrollBy): Ditto.
      (WebCore::DOMWindow::scrollTo): Ditto.
      (WebCore::DOMWindow::clearTimeout): Ditto.
      (WebCore::DOMWindow::addEventListener): Ditto.
      (WebCore::DOMWindow::incrementScrollEventListenersCount): Added; guarded by PLATFORM(IOS).
      (WebCore::DOMWindow::decrementScrollEventListenersCount): Added; guarded by PLATFORM(IOS).
      (WebCore::DOMWindow::resetAllGeolocationPermission): Added; Also added FIXME comment.
      (WebCore::DOMWindow::removeEventListener): Added iOS-specific code.
      (WebCore::DOMWindow::dispatchEvent): Modified to prevent dispatching duplicate pageshow and pagehide
      events per <http://www.whatwg.org/specs/web-apps/current-work/multipage/history.html#event-pageshow>.
      (WebCore::DOMWindow::removeAllEventListeners): Added iOS-specific code.
      * page/DOMWindow.h:
      * page/DOMWindow.idl: Added IOS_GESTURE_EVENTS-guarded attributes: ongesture{change, end, start}. Also
      added IOS_TOUCH_EVENTS-guarded attributes: {Touch, TouchList}Constructor.
      * page/EditorClient.h:
      * page/EventHandler.cpp:
      (WebCore::EventHandler::EventHandler): Added iOS-specific code.
      (WebCore::EventHandler::clear): Ditto.
      (WebCore::EventHandler::startPanScrolling): Make this an empty function when building for iOS.
      (WebCore::EventHandler::handleMousePressEvent): Modified to invalidate a click when the clicked node is
      null. Also, opt out of code for updating the scrollbars as UIKit manages scrollbars on iOS.
      (WebCore::EventHandler::handleMouseMoveEvent): Opt of code for updating the scrollbars and cursor when building on iOS.
      (WebCore::hitTestResultInFrame): Made this a file-local static function since it's only used in EventHandler.cpp.
      (WebCore::EventHandler::dispatchSyntheticTouchEventIfEnabled): Added iOS-specific code.
      * page/EventHandler.h:
      * page/FocusController.h:
      * page/Frame.cpp:
      (WebCore::Frame::Frame): Added iOS-specific code.
      (WebCore::Frame::scrollOverflowLayer): Added; iOS-specific.
      (WebCore::Frame::overflowAutoScrollTimerFired): Added; iOS-specific.
      (WebCore::Frame::startOverflowAutoScroll): Added; iOS-specific.
      (WebCore::Frame::checkOverflowScroll): Added; iOS-specific.
      (WebCore::Frame::willDetachPage): Added iOS-specific code.
      (WebCore::Frame::createView): Ditto.
      (WebCore::Frame::setSelectionChangeCallbacksDisabled): Added; iOS-specific.
      (WebCore::Frame::selectionChangeCallbacksDisabled): Added; iOS-specific.
      * page/Frame.h:
      (WebCore::Frame::timersPaused): Added; guarded by PLATFORM(IOS).
      * page/FrameView.cpp:
      (WebCore::FrameView::FrameView): Added iOS-specific code.
      (WebCore::FrameView::clear): Ditto.
      (WebCore::FrameView::flushCompositingStateForThisFrame): Ditto.
      (WebCore::FrameView::graphicsLayerForPlatformWidget): Added.
      (WebCore::FrameView::scheduleLayerFlushAllowingThrottling): Added.
      (WebCore::FrameView::layout): Added iOS-specific code.
      (WebCore::countRenderedCharactersInRenderObjectWithThreshold): Added; helper function used by FrameView::renderedCharactersExceed().
      Also added FIXME comment.
      (WebCore::FrameView::renderedCharactersExceed): Added.
      (WebCore::FrameView::visibleContentsResized): Added iOS-specific code.
      (WebCore::FrameView::adjustTiledBackingCoverage): Ditto.
      (WebCore::FrameView::performPostLayoutTasks): Ditto.
      (WebCore::FrameView::sendResizeEventIfNeeded): Ditto.
      (WebCore::FrameView::paintContents): Added iOS-specific code. Also added FIXME comments.
      (WebCore::FrameView::setUseCustomFixedPositionLayoutRect): Added; iOS-specific.
      (WebCore::FrameView::setCustomFixedPositionLayoutRect): Added; iOS-specific.
      (WebCore::FrameView::updateFixedPositionLayoutRect): Added; iOS-specific.
      * page/FrameView.h:
      * page/Navigator.cpp:
      (WebCore::Navigator::standalone): Added; iOS-specific.
      * page/Navigator.h:
      * page/Navigator.idl: Added WTF_PLATFORM_IOS-guarded attribute: standalone. Also added FIXME comment.
      * page/NavigatorBase.cpp:
      (WebCore::NavigatorBase::platform): Added iOS-specific code.
      * page/Page.h:
      (WebCore::Page::hasCustomHTMLTokenizerTimeDelay): Added; guarded by PLATFORM(IOS). Also added FIXME comment
      to remove this method.
      (WebCore::Page::customHTMLTokenizerTimeDelay): Added; guarded by PLATFORM(IOS). Also added FIXME comment
      to remove this method.
      * page/PageGroup.cpp:
      (WebCore::PageGroup::removeVisitedLink): Added.
      * page/PageGroup.h:
      * page/Settings.cpp:
      (WebCore::Settings::Settings):
      (WebCore::Settings::setScriptEnabled): Added; guarded by PLATFORM(IOS).
      (WebCore::Settings::setStandalone): Added; guarded by PLATFORM(IOS).
      (WebCore::Settings::setAudioSessionCategoryOverride): Added; guarded by PLATFORM(IOS).
      (WebCore::Settings::audioSessionCategoryOverride): Added; guarded by PLATFORM(IOS).
      (WebCore::Settings::setNetworkDataUsageTrackingEnabled): Added; guarded by PLATFORM(IOS).
      (WebCore::Settings::networkDataUsageTrackingEnabled): Added; guarded by PLATFORM(IOS).
      (WebCore::sharedNetworkInterfaceNameGlobal): Added; guarded by PLATFORM(IOS).
      (WebCore::Settings::setNetworkInterfaceName): Added; guarded by PLATFORM(IOS).
      (WebCore::Settings::networkInterfaceName): Added; guarded by PLATFORM(IOS).
      * page/Settings.h:
      (WebCore::Settings::setMaxParseDuration): Added; guarded by PLATFORM(IOS). Also added FIXME comment.
      (WebCore::Settings::maxParseDuration): Added; guarded by PLATFORM(IOS). Also added FIXME comment.
      (WebCore::Settings::standalone): Added; guarded by PLATFORM(IOS).
      (WebCore::Settings::setTelephoneNumberParsingEnabled): Added; guarded by PLATFORM(IOS).
      (WebCore::Settings::telephoneNumberParsingEnabled): Added; guarded by PLATFORM(IOS).
      (WebCore::Settings::setMediaDataLoadsAutomatically): Added; guarded by PLATFORM(IOS).
      (WebCore::Settings::mediaDataLoadsAutomatically): Added; guarded by PLATFORM(IOS).
      (WebCore::Settings::setShouldTransformsAffectOverflow): Added; guarded by PLATFORM(IOS).
      (WebCore::Settings::shouldTransformsAffectOverflow): Added; guarded by PLATFORM(IOS).
      (WebCore::Settings::setShouldDispatchJavaScriptWindowOnErrorEvents): Added; guarded by PLATFORM(IOS).
      (WebCore::Settings::shouldDispatchJavaScriptWindowOnErrorEvents): Added; guarded by PLATFORM(IOS).
      (WebCore::Settings::setAlwaysUseBaselineOfPrimaryFont): Added; guarded by PLATFORM(IOS).
      (WebCore::Settings::alwaysUseBaselineOfPrimaryFont): Added; guarded by PLATFORM(IOS).
      (WebCore::Settings::setAlwaysUseAcceleratedOverflowScroll): Added; guarded by PLATFORM(IOS).
      (WebCore::Settings::alwaysUseAcceleratedOverflowScroll): Added; guarded by PLATFORM(IOS).
      * page/Settings.in: Added IOS_AIRPLAY-guarded setting: mediaPlaybackAllowsAirPlay.
      * page/animation/CSSPropertyAnimation.cpp:
      (WebCore::CSSPropertyAnimationWrapperMap::CSSPropertyAnimationWrapperMap): Added iOS-specific code and FIXME comment.
      * page/ios/EventHandlerIOS.mm: Added.
      * page/ios/FrameIOS.mm: Added.
      * page/mac/ChromeMac.mm:
      * page/mac/PageMac.cpp:
      (WebCore::Page::addSchedulePair): Opt out of code when building for iOS.
      (WebCore::Page::removeSchedulePair): Ditto.
      * page/mac/SettingsMac.mm:
      (WebCore::Settings::shouldEnableScreenFontSubstitutionByDefault): Added iOS-specific code.
      * page/mac/WebCoreFrameView.h:
      
      Source/WebKit/ios:
      
      * WebCoreSupport/WebChromeClientIOS.mm: Substitute ENABLE(IOS_TOUCH_EVENTS) for ENABLE(TOUCH_EVENTS).
      
      Source/WebKit2:
      
      * WebProcess/WebCoreSupport/WebChromeClient.h:
      * WebProcess/WebCoreSupport/ios/WebChromeClientIOS.mm: Added.
      * WebProcess/WebPage/WebPage.cpp: Include header <WebCore/HitTestResult.h>.
      
      Source/WTF:
      
      * wtf/FeatureDefines.h: Define ENABLE_IOS_TOUCH_EVENTS to be enabled by default
      when building iOS with ENABLE(TOUCH_EVENTS).
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@161106 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4da1af80
  2. 17 Aug, 2013 1 commit
  3. 16 Aug, 2013 1 commit
    • psolanki@apple.com's avatar
      <https://webkit.org/b/119852> Frame::scriptController() should return a reference · c5b5dad7
      psolanki@apple.com authored
      Reviewed by Andreas Kling.
      
      m_script is never NULL so we can just return a reference. Also remove some pointless null
      checks as a result of doing this.
      
      Source/WebCore:
      
      * Modules/websockets/WebSocket.cpp:
      (WebCore::WebSocket::connect):
      * bindings/js/JSDOMWindowBase.cpp:
      (WebCore::toJS):
      (WebCore::toJSDOMWindow):
      * bindings/js/JSDOMWindowShell.cpp:
      (WebCore::toJS):
      (WebCore::toJSDOMWindowShell):
      * bindings/js/JSEventListener.cpp:
      (WebCore::JSEventListener::handleEvent):
      * bindings/js/JSLazyEventListener.cpp:
      (WebCore::JSLazyEventListener::initializeJSFunction):
      * bindings/js/PageScriptDebugServer.cpp:
      (WebCore::PageScriptDebugServer::setJavaScriptPaused):
      * bindings/js/ScheduledAction.cpp:
      (WebCore::ScheduledAction::execute):
      * bindings/js/ScriptCachedFrameData.cpp:
      (WebCore::ScriptCachedFrameData::ScriptCachedFrameData):
      (WebCore::ScriptCachedFrameData::restore):
      * bindings/js/ScriptEventListener.cpp:
      (WebCore::createAttributeEventListener):
      (WebCore::eventListenerHandlerScriptState):
      * bindings/js/ScriptState.cpp:
      (WebCore::mainWorldScriptState):
      (WebCore::scriptStateFromNode):
      (WebCore::scriptStateFromPage):
      * bindings/objc/DOM.mm:
      (-[DOMNode JSC::Bindings::]):
      * bindings/objc/DOMInternal.mm:
      (-[WebScriptObject _initializeScriptDOMNodeImp]):
      * dom/Document.cpp:
      (WebCore::Document::disableEval):
      (WebCore::Document::ensurePlugInsInjectedScript):
      * dom/ScriptElement.cpp:
      (WebCore::ScriptElement::prepareScript):
      (WebCore::ScriptElement::executeScript):
      * history/CachedFrame.cpp:
      (WebCore::CachedFrameBase::restore):
      * html/HTMLCanvasElement.cpp:
      (WebCore::HTMLCanvasElement::createRenderer):
      * html/HTMLElement.cpp:
      (WebCore::HTMLElement::rendererIsNeeded):
      * html/HTMLMediaElement.cpp:
      (WebCore::HTMLMediaElement::controls):
      * html/HTMLPlugInElement.cpp:
      (WebCore::HTMLPlugInElement::getInstance):
      (WebCore::HTMLPlugInElement::getNPObject):
      * html/HTMLPlugInImageElement.cpp:
      (WebCore::HTMLPlugInImageElement::didAddUserAgentShadowRoot):
      * html/parser/HTMLParserOptions.cpp:
      (WebCore::HTMLParserOptions::HTMLParserOptions):
      * inspector/InspectorAgent.cpp:
      (WebCore::InspectorAgent::didClearWindowObjectInWorld):
      * inspector/InspectorClient.cpp:
      (WebCore::InspectorClient::doDispatchMessageOnFrontendPage):
      * inspector/InspectorFrontendClientLocal.cpp:
      (WebCore::InspectorFrontendClientLocal::evaluateAsBoolean):
      (WebCore::InspectorFrontendClientLocal::evaluateOnLoad):
      * inspector/InspectorOverlay.cpp:
      (WebCore::InspectorOverlay::evaluateInOverlay):
      * inspector/InspectorPageAgent.cpp:
      (WebCore::InspectorPageAgent::getScriptExecutionStatus):
      (WebCore::InspectorPageAgent::didClearWindowObjectInWorld):
      * inspector/PageRuntimeAgent.cpp:
      (WebCore::PageRuntimeAgent::reportExecutionContextCreation):
      * loader/DocumentWriter.cpp:
      (WebCore::DocumentWriter::begin):
      * loader/FrameLoader.cpp:
      (WebCore::FrameLoader::urlSelected):
      (WebCore::FrameLoader::submitForm):
      (WebCore::FrameLoader::cancelAndClear):
      (WebCore::FrameLoader::clear):
      (WebCore::FrameLoader::prepareForCachedPageRestore):
      (WebCore::FrameLoader::dispatchDidClearWindowObjectsInAllWorlds):
      (WebCore::FrameLoader::dispatchDidClearWindowObjectInWorld):
      * loader/SubframeLoader.cpp:
      (WebCore::SubframeLoader::requestFrame):
      * loader/cache/CachedResourceLoader.cpp:
      (WebCore::CachedResourceLoader::canRequest):
      * page/EventSource.cpp:
      (WebCore::EventSource::create):
      * page/Frame.cpp:
      (WebCore::Frame::willDetachPage):
      * page/Frame.h:
      (WebCore::Frame::script):
      * page/Navigator.cpp:
      (WebCore::shouldHideFourDot):
      * page/Page.cpp:
      (WebCore::Page::setDebugger):
      * platform/graphics/wince/MediaPlayerProxy.cpp:
      (WebCore::WebMediaPlayerProxy::pluginInstance):
      (WebCore::WebMediaPlayerProxy::invokeMethod):
      * plugins/PluginView.cpp:
      (WebCore::PluginView::~PluginView):
      (WebCore::PluginView::performRequest):
      (WebCore::PluginView::load):
      (WebCore::PluginView::bindingInstance):
      (WebCore::PluginView::getValue):
      * plugins/efl/PluginViewEfl.cpp:
      (WebCore::PluginView::platformGetValue):
      * xml/XMLHttpRequest.cpp:
      (WebCore::XMLHttpRequest::open):
      * xml/XMLTreeViewer.cpp:
      (WebCore::XMLTreeViewer::transformDocumentToTreeView):
      
      Source/WebKit/blackberry:
      
      * Api/WebPage.cpp:
      (BlackBerry::WebKit::WebPagePrivate::load):
      (BlackBerry::WebKit::WebPagePrivate::executeJavaScript):
      (BlackBerry::WebKit::WebPagePrivate::executeJavaScriptInIsolatedWorld):
      (BlackBerry::WebKit::WebPage::executeJavaScriptFunction):
      (BlackBerry::WebKit::WebPage::globalContext):
      * WebCoreSupport/FrameLoaderClientBlackBerry.cpp:
      (WebCore::FrameLoaderClientBlackBerry::dispatchDidClearWindowObjectInWorld):
      
      Source/WebKit/efl:
      
      * WebCoreSupport/DumpRenderTreeSupportEfl.cpp:
      (DumpRenderTreeSupportEfl::evaluateScriptInIsolatedWorld):
      (DumpRenderTreeSupportEfl::globalContextRefForFrame):
      * WebCoreSupport/FrameLoaderClientEfl.cpp:
      (WebCore::FrameLoaderClientEfl::dispatchDidClearWindowObjectInWorld):
      * ewk/ewk_frame.cpp:
      (ewk_frame_script_execute):
      * ewk/ewk_view.cpp:
      (ewk_view_js_object_add):
      
      Source/WebKit/gtk:
      
      * WebCoreSupport/FrameLoaderClientGtk.cpp:
      (WebKit::FrameLoaderClient::dispatchDidClearWindowObjectInWorld):
      * webkit/webkitwebframe.cpp:
      (webkit_web_frame_get_global_context):
      * webkit/webkitwebview.cpp:
      (webkit_web_view_execute_script):
      
      Source/WebKit/mac:
      
      * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
      (WebKit::NetscapePluginInstanceProxy::cleanup):
      (WebKit::NetscapePluginInstanceProxy::getWindowNPObject):
      (WebKit::NetscapePluginInstanceProxy::getPluginElementNPObject):
      (WebKit::NetscapePluginInstanceProxy::evaluate):
      (WebKit::NetscapePluginInstanceProxy::invoke):
      (WebKit::NetscapePluginInstanceProxy::invokeDefault):
      (WebKit::NetscapePluginInstanceProxy::construct):
      (WebKit::NetscapePluginInstanceProxy::getProperty):
      (WebKit::NetscapePluginInstanceProxy::setProperty):
      (WebKit::NetscapePluginInstanceProxy::removeProperty):
      (WebKit::NetscapePluginInstanceProxy::hasProperty):
      (WebKit::NetscapePluginInstanceProxy::hasMethod):
      (WebKit::NetscapePluginInstanceProxy::enumerate):
      (WebKit::NetscapePluginInstanceProxy::demarshalValueFromArray):
      * Plugins/WebNetscapePluginView.mm:
      (-[WebNetscapePluginView getVariable:value:]):
      (-[WebNetscapePluginView _destroyPlugin]):
      * Plugins/WebPluginController.mm:
      * WebCoreSupport/WebFrameLoaderClient.mm:
      * WebCoreSupport/WebInspectorClient.mm:
      (WebInspectorFrontendClient::save):
      (WebInspectorFrontendClient::append):
      * WebView/WebFrame.mm:
      (-[WebFrame _attachScriptDebugger]):
      (-[WebFrame _stringByEvaluatingJavaScriptFromString:forceUserGesture:]):
      (-[WebFrame _stringByEvaluatingJavaScriptFromString:withGlobalObject:inScriptWorld:]):
      (-[WebFrame _globalContextForScriptWorld:]):
      (-[WebFrame jsWrapperForNode:inScriptWorld:]):
      (-[WebFrame windowObject]):
      (-[WebFrame globalContext]):
      (-[WebFrame javaScriptContext]):
      * WebView/WebScriptDebugger.mm:
      (WebScriptDebugger::initGlobalCallFrame):
      (WebScriptDebugger::callEvent):
      * WebView/WebView.mm:
      (-[WebView windowScriptObject]):
      (-[WebView aeDescByEvaluatingJavaScriptFromString:]):
      
      Source/WebKit/qt:
      
      * Api/qwebelement.cpp:
      (setupScriptContext):
      (QWebElement::evaluateJavaScript):
      * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
      (DumpRenderTreeSupportQt::evaluateScriptInIsolatedWorld):
      * WebCoreSupport/QWebFrameAdapter.cpp:
      (QWebFrameAdapter::evaluateJavaScript):
      (QWebFrameAdapter::addToJavaScriptWindowObject):
      
      Source/WebKit/win:
      
      * WebFrame.cpp:
      (WebFrame::globalContext):
      (WebFrame::globalContextForScriptWorld):
      (WebFrame::dispatchDidClearWindowObjectInWorld):
      (WebFrame::stringByEvaluatingJavaScriptInScriptWorld):
      * WebView.cpp:
      (WebView::stringByEvaluatingJavaScriptFromString):
      
      Source/WebKit2:
      
      * WebProcess/Plugins/Netscape/NPRuntimeObjectMap.cpp:
      (WebKit::NPRuntimeObjectMap::globalObject):
      * WebProcess/Plugins/PluginView.cpp:
      (WebKit::PluginView::performJavaScriptURLRequest):
      (WebKit::PluginView::windowScriptNPObject):
      (WebKit::PluginView::pluginElementNPObject):
      * WebProcess/WebPage/WebFrame.cpp:
      (WebKit::WebFrame::jsContext):
      (WebKit::WebFrame::jsContextForWorld):
      (WebKit::WebFrame::jsWrapperForWorld):
      * WebProcess/WebPage/WebInspector.cpp:
      (WebKit::WebInspector::didSave):
      (WebKit::WebInspector::didAppend):
      * WebProcess/WebPage/WebPage.cpp:
      (WebKit::WebPage::runJavaScriptInMainFrame):
      
      Tools:
      
      * DumpRenderTree/blackberry/DumpRenderTree.cpp:
      (BlackBerry::WebKit::DumpRenderTree::resetToConsistentStateBeforeTesting):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@154192 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c5b5dad7
  4. 15 Aug, 2013 1 commit
    • andersca@apple.com's avatar
      <https://webkit.org/b/119859> Frame::loader() should return a reference · df550b96
      andersca@apple.com authored
      Reviewed by Andreas Kling.
      
      Source/WebCore:
      
      * Modules/websockets/WebSocketChannel.cpp:
      (WebCore::WebSocketChannel::willOpenSocketStream):
      * WebCore.xcodeproj/project.pbxproj:
      * accessibility/AccessibilityObject.cpp:
      (WebCore::AccessibilityObject::press):
      * accessibility/mac/WebAccessibilityObjectWrapperMac.mm:
      (-[WebAccessibilityObjectWrapper remoteAccessibilityParentObject]):
      * bindings/ScriptControllerBase.cpp:
      (WebCore::ScriptController::canExecuteScripts):
      * bindings/js/ScriptController.cpp:
      (WebCore::ScriptController::initScript):
      * css/CSSFontSelector.cpp:
      (WebCore::CSSFontSelector::beginLoadTimerFired):
      * dom/DOMImplementation.cpp:
      (WebCore::DOMImplementation::createDocument):
      * dom/Document.cpp:
      (WebCore::Document::Document):
      (WebCore::Document::setVisualUpdatesAllowed):
      (WebCore::Document::updateTitle):
      (WebCore::Document::open):
      (WebCore::Document::explicitClose):
      (WebCore::Document::implicitClose):
      (WebCore::Document::userAgent):
      (WebCore::Document::canNavigate):
      (WebCore::Document::processHttpEquiv):
      (WebCore::Document::referrer):
      (WebCore::Document::documentDidResumeFromPageCache):
      (WebCore::Document::openSearchDescriptionURL):
      (WebCore::Document::finishedParsing):
      (WebCore::Document::addIconURL):
      (WebCore::Document::initSecurityContext):
      (WebCore::Document::updateURLForPushOrReplaceState):
      (WebCore::Document::loadEventDelayTimerFired):
      (WebCore::Document::loader):
      (WebCore::Document::decrementActiveParserCount):
      * history/CachedFrame.cpp:
      (WebCore::CachedFrameBase::CachedFrameBase):
      (WebCore::CachedFrameBase::restore):
      (WebCore::CachedFrame::CachedFrame):
      (WebCore::CachedFrame::open):
      (WebCore::CachedFrame::destroy):
      * history/PageCache.cpp:
      (WebCore::logCanCacheFrameDecision):
      (WebCore::logCanCachePageDecision):
      (WebCore::PageCache::canCachePageContainingThisFrame):
      (WebCore::PageCache::canCache):
      * html/HTMLAnchorElement.cpp:
      (WebCore::HTMLAnchorElement::handleClick):
      * html/HTMLAppletElement.cpp:
      (WebCore::HTMLAppletElement::updateWidget):
      * html/HTMLElement.cpp:
      (WebCore::HTMLElement::rendererIsNeeded):
      * html/HTMLEmbedElement.cpp:
      (WebCore::HTMLEmbedElement::updateWidget):
      * html/HTMLFormElement.cpp:
      (WebCore::HTMLFormElement::prepareForSubmission):
      (WebCore::HTMLFormElement::submit):
      * html/HTMLFrameElementBase.cpp:
      (WebCore::HTMLFrameElementBase::openURL):
      * html/HTMLFrameOwnerElement.cpp:
      (WebCore::HTMLFrameOwnerElement::disconnectContentFrame):
      * html/HTMLFrameSetElement.cpp:
      (WebCore::HTMLFrameSetElement::insertedInto):
      (WebCore::HTMLFrameSetElement::removedFrom):
      * html/HTMLHtmlElement.cpp:
      (WebCore::HTMLHtmlElement::insertedByParser):
      * html/HTMLMediaElement.cpp:
      (WebCore::HTMLMediaElement::createRenderer):
      (WebCore::HTMLMediaElement::attach):
      (WebCore::HTMLMediaElement::loadResource):
      (WebCore::HTMLMediaElement::getPluginProxyParams):
      (WebCore::HTMLMediaElement::createMediaPlayerProxy):
      (WebCore::HTMLMediaElement::updateWidget):
      (WebCore::HTMLMediaElement::mediaPlayerReferrer):
      (WebCore::HTMLMediaElement::mediaPlayerUserAgent):
      * html/HTMLObjectElement.cpp:
      (WebCore::HTMLObjectElement::parametersForPlugin):
      (WebCore::HTMLObjectElement::updateWidget):
      * html/HTMLPlugInImageElement.cpp:
      (WebCore::HTMLPlugInImageElement::isImageType):
      (WebCore::HTMLPlugInImageElement::wouldLoadAsNetscapePlugin):
      (WebCore::HTMLPlugInImageElement::restartSimilarPlugIns):
      * html/HTMLVideoElement.cpp:
      (WebCore::HTMLVideoElement::setDisplayMode):
      * html/ImageDocument.cpp:
      (WebCore::ImageDocumentParser::appendBytes):
      (WebCore::ImageDocumentParser::finish):
      (WebCore::ImageDocument::createDocumentStructure):
      * html/MediaDocument.cpp:
      (WebCore::MediaDocumentParser::createDocumentStructure):
      * html/PluginDocument.cpp:
      (WebCore::PluginDocumentParser::createDocumentStructure):
      (WebCore::PluginDocumentParser::appendBytes):
      (WebCore::PluginDocument::detach):
      (WebCore::PluginDocument::cancelManualPluginLoad):
      * html/canvas/WebGLRenderingContext.cpp:
      (WebCore::WebGLRenderingContext::create):
      (WebCore::WebGLRenderingContext::loseContextImpl):
      (WebCore::WebGLRenderingContext::maybeRestoreContext):
      * html/parser/HTMLConstructionSite.cpp:
      (WebCore::HTMLConstructionSite::dispatchDocumentElementAvailableIfNeeded):
      (WebCore::HTMLConstructionSite::insertHTMLBodyElement):
      * html/parser/HTMLParserOptions.cpp:
      (WebCore::HTMLParserOptions::HTMLParserOptions):
      * html/parser/XSSAuditor.cpp:
      (WebCore::XSSAuditor::init):
      * html/parser/XSSAuditorDelegate.cpp:
      (WebCore::XSSAuditorDelegate::generateViolationReport):
      (WebCore::XSSAuditorDelegate::didBlockScript):
      * inspector/InspectorApplicationCacheAgent.cpp:
      (WebCore::InspectorApplicationCacheAgent::updateApplicationCacheStatus):
      (WebCore::InspectorApplicationCacheAgent::getFramesWithManifests):
      * inspector/InspectorFrontendClientLocal.cpp:
      (WebCore::InspectorFrontendClientLocal::openInNewTab):
      * inspector/InspectorFrontendHost.cpp:
      (WebCore::InspectorFrontendHost::loadResourceSynchronously):
      * inspector/InspectorOverlay.cpp:
      (WebCore::InspectorOverlay::overlayPage):
      * inspector/InspectorPageAgent.cpp:
      (WebCore::InspectorPageAgent::mainResourceContent):
      (WebCore::InspectorPageAgent::reload):
      (WebCore::InspectorPageAgent::navigate):
      (WebCore::allResourcesURLsForFrame):
      (WebCore::InspectorPageAgent::searchInResource):
      (WebCore::InspectorPageAgent::assertDocumentLoader):
      (WebCore::InspectorPageAgent::buildObjectForFrame):
      * inspector/InspectorResourceAgent.cpp:
      (WebCore::InspectorResourceAgent::didFailLoading):
      * loader/CookieJar.cpp:
      (WebCore::networkingContext):
      * loader/DocumentLoader.cpp:
      (WebCore::DocumentLoader::frameLoader):
      (WebCore::DocumentLoader::document):
      (WebCore::DocumentLoader::stopLoading):
      (WebCore::DocumentLoader::removeSubresourceLoader):
      (WebCore::DocumentLoader::subresourceLoaderFinishedLoadingOnePart):
      (WebCore::DocumentLoader::iconLoadDecisionAvailable):
      (WebCore::DocumentLoader::continueIconLoadWithDecision):
      * loader/DocumentThreadableLoader.cpp:
      (WebCore::DocumentThreadableLoader::didReceiveResponse):
      (WebCore::DocumentThreadableLoader::didFinishLoading):
      (WebCore::DocumentThreadableLoader::didFail):
      (WebCore::DocumentThreadableLoader::preflightFailure):
      (WebCore::DocumentThreadableLoader::loadRequest):
      * loader/DocumentWriter.cpp:
      (WebCore::DocumentWriter::replaceDocument):
      (WebCore::DocumentWriter::createDocument):
      (WebCore::DocumentWriter::begin):
      * loader/FrameLoader.cpp:
      (WebCore::FrameLoader::~FrameLoader):
      (WebCore::FrameLoader::allChildrenAreComplete):
      (WebCore::FrameLoader::allAncestorsAreComplete):
      (WebCore::FrameLoader::loadURLIntoChildFrame):
      (WebCore::FrameLoader::outgoingReferrer):
      (WebCore::FrameLoader::setOpener):
      (WebCore::FrameLoader::completed):
      (WebCore::FrameLoader::started):
      (WebCore::FrameLoader::loadFrameRequest):
      (WebCore::FrameLoader::loadURL):
      (WebCore::FrameLoader::load):
      (WebCore::FrameLoader::loadWithDocumentLoader):
      (WebCore::FrameLoader::stopAllLoaders):
      (WebCore::FrameLoader::closeOldDataSources):
      (WebCore::FrameLoader::subframeIsLoading):
      (WebCore::FrameLoader::subresourceCachePolicy):
      (WebCore::FrameLoader::checkLoadCompleteForThisFrame):
      (WebCore::FrameLoader::detachChildren):
      (WebCore::FrameLoader::checkLoadComplete):
      (WebCore::FrameLoader::detachFromParent):
      (WebCore::FrameLoader::loadPostRequest):
      (WebCore::FrameLoader::loadResourceSynchronously):
      (WebCore::FrameLoader::shouldClose):
      (WebCore::FrameLoader::handleBeforeUnloadEvent):
      (WebCore::FrameLoader::continueLoadAfterNavigationPolicy):
      (WebCore::FrameLoader::continueLoadAfterNewWindowPolicy):
      (WebCore::createWindow):
      * loader/HistoryController.cpp:
      (WebCore::HistoryController::saveScrollPositionAndViewStateToItem):
      (WebCore::HistoryController::restoreScrollPositionAndViewState):
      (WebCore::HistoryController::saveDocumentState):
      (WebCore::HistoryController::saveDocumentAndScrollState):
      (WebCore::isAssociatedToRequestedHistoryItem):
      (WebCore::HistoryController::restoreDocumentState):
      (WebCore::HistoryController::shouldStopLoadingForHistoryItem):
      (WebCore::HistoryController::goToItem):
      (WebCore::HistoryController::updateForBackForwardNavigation):
      (WebCore::HistoryController::updateForReload):
      (WebCore::HistoryController::updateForStandardLoad):
      (WebCore::HistoryController::updateForRedirectWithLockedBackForwardList):
      (WebCore::HistoryController::updateForClientRedirect):
      (WebCore::HistoryController::updateForCommit):
      (WebCore::HistoryController::recursiveUpdateForCommit):
      (WebCore::HistoryController::updateForSameDocumentNavigation):
      (WebCore::HistoryController::recursiveUpdateForSameDocumentNavigation):
      (WebCore::HistoryController::initializeItem):
      (WebCore::HistoryController::createItemTree):
      (WebCore::HistoryController::recursiveSetProvisionalItem):
      (WebCore::HistoryController::recursiveGoToItem):
      (WebCore::HistoryController::updateBackForwardListClippedAtTarget):
      (WebCore::HistoryController::updateCurrentItem):
      (WebCore::HistoryController::pushState):
      (WebCore::HistoryController::replaceState):
      * loader/ImageLoader.cpp:
      (WebCore::pageIsBeingDismissed):
      * loader/MixedContentChecker.cpp:
      (WebCore::MixedContentChecker::client):
      * loader/NavigationScheduler.cpp:
      (WebCore::ScheduledURLNavigation::fire):
      (WebCore::ScheduledURLNavigation::didStartTimer):
      (WebCore::ScheduledURLNavigation::didStopTimer):
      (WebCore::ScheduledRedirect::shouldStartTimer):
      (WebCore::ScheduledRedirect::fire):
      (WebCore::ScheduledRefresh::fire):
      (WebCore::ScheduledHistoryNavigation::fire):
      (WebCore::ScheduledFormSubmission::fire):
      (WebCore::ScheduledFormSubmission::didStartTimer):
      (WebCore::ScheduledFormSubmission::didStopTimer):
      (WebCore::NavigationScheduler::mustLockBackForwardList):
      (WebCore::NavigationScheduler::scheduleLocationChange):
      (WebCore::NavigationScheduler::scheduleFormSubmission):
      (WebCore::NavigationScheduler::scheduleRefresh):
      (WebCore::NavigationScheduler::schedule):
      * loader/PingLoader.cpp:
      (WebCore::PingLoader::loadImage):
      (WebCore::PingLoader::sendPing):
      (WebCore::PingLoader::sendViolationReport):
      (WebCore::PingLoader::PingLoader):
      * loader/PolicyChecker.cpp:
      (WebCore::PolicyChecker::checkNavigationPolicy):
      (WebCore::PolicyChecker::checkNewWindowPolicy):
      (WebCore::PolicyChecker::checkContentPolicy):
      (WebCore::PolicyChecker::cancelCheck):
      (WebCore::PolicyChecker::stopCheck):
      (WebCore::PolicyChecker::cannotShowMIMEType):
      (WebCore::PolicyChecker::continueLoadAfterWillSubmitForm):
      (WebCore::PolicyChecker::continueAfterNavigationPolicy):
      (WebCore::PolicyChecker::continueAfterNewWindowPolicy):
      (WebCore::PolicyChecker::handleUnimplementablePolicy):
      * loader/ProgressTracker.cpp:
      (WebCore::ProgressTracker::progressStarted):
      (WebCore::ProgressTracker::progressCompleted):
      (WebCore::ProgressTracker::finalProgressComplete):
      (WebCore::ProgressTracker::incrementProgress):
      (WebCore::ProgressTracker::progressHeartbeatTimerFired):
      * loader/ResourceLoadNotifier.cpp:
      (WebCore::ResourceLoadNotifier::didReceiveAuthenticationChallenge):
      (WebCore::ResourceLoadNotifier::didCancelAuthenticationChallenge):
      (WebCore::ResourceLoadNotifier::willSendRequest):
      (WebCore::ResourceLoadNotifier::didFailToLoad):
      (WebCore::ResourceLoadNotifier::assignIdentifierToInitialRequest):
      (WebCore::ResourceLoadNotifier::dispatchWillSendRequest):
      (WebCore::ResourceLoadNotifier::dispatchDidReceiveResponse):
      (WebCore::ResourceLoadNotifier::dispatchDidReceiveData):
      (WebCore::ResourceLoadNotifier::dispatchDidFinishLoading):
      (WebCore::ResourceLoadNotifier::dispatchDidFailLoading):
      * loader/ResourceLoader.cpp:
      (WebCore::ResourceLoader::ResourceLoader):
      (WebCore::ResourceLoader::start):
      (WebCore::ResourceLoader::frameLoader):
      (WebCore::ResourceLoader::willSendRequest):
      * loader/SubframeLoader.cpp:
      (WebCore::SubframeLoader::pluginIsLoadable):
      (WebCore::SubframeLoader::loadMediaPlayerProxyPlugin):
      (WebCore::SubframeLoader::createJavaAppletWidget):
      (WebCore::SubframeLoader::loadOrRedirectSubframe):
      (WebCore::SubframeLoader::loadSubframe):
      (WebCore::SubframeLoader::allowPlugins):
      (WebCore::SubframeLoader::shouldUsePlugin):
      (WebCore::SubframeLoader::loadPlugin):
      * loader/appcache/ApplicationCacheGroup.cpp:
      (WebCore::ApplicationCacheGroup::selectCache):
      (WebCore::ApplicationCacheGroup::selectCacheWithoutManifestURL):
      (WebCore::ApplicationCacheGroup::update):
      (WebCore::ApplicationCacheGroup::createResourceHandle):
      (WebCore::ApplicationCacheGroup::didReceiveResponse):
      (WebCore::ApplicationCacheGroup::didFinishLoading):
      (WebCore::ApplicationCacheGroup::didFail):
      (WebCore::ApplicationCacheGroup::addEntry):
      (WebCore::CallCacheListenerTask::performTask):
      (WebCore::ApplicationCacheGroup::postListenerTask):
      * loader/appcache/DOMApplicationCache.cpp:
      (WebCore::DOMApplicationCache::applicationCacheHost):
      * loader/archive/cf/LegacyWebArchive.cpp:
      (WebCore::LegacyWebArchive::create):
      (WebCore::LegacyWebArchive::createFromSelection):
      * loader/cache/CachedResource.cpp:
      (WebCore::CachedResource::addAdditionalRequestHeaders):
      (WebCore::CachedResource::load):
      * loader/cache/CachedResourceLoader.cpp:
      (WebCore::CachedResourceLoader::requestImage):
      (WebCore::CachedResourceLoader::checkInsecureContent):
      (WebCore::CachedResourceLoader::canRequest):
      (WebCore::CachedResourceLoader::shouldContinueAfterNotifyingLoadedFromMemoryCache):
      (WebCore::CachedResourceLoader::requestResource):
      (WebCore::CachedResourceLoader::clientDefersImage):
      (WebCore::CachedResourceLoader::cachePolicy):
      (WebCore::CachedResourceLoader::loadDone):
      * loader/icon/IconController.cpp:
      (WebCore::IconController::commitToDatabase):
      (WebCore::IconController::startLoader):
      (WebCore::IconController::continueLoadWithDecision):
      * loader/icon/IconLoader.cpp:
      (WebCore::IconLoader::startLoading):
      (WebCore::IconLoader::notifyFinished):
      * page/Chrome.cpp:
      (WebCore::canRunModalIfDuringPageDismissal):
      * page/ContextMenuController.cpp:
      (WebCore::openNewWindow):
      (WebCore::ContextMenuController::contextMenuItemSelected):
      (WebCore::ContextMenuController::populate):
      (WebCore::ContextMenuController::checkOrEnableIfNeeded):
      * page/DOMWindow.cpp:
      (WebCore::DOMWindow::dispatchAllPendingBeforeUnloadEvents):
      (WebCore::DOMWindow::postMessageTimerFired):
      (WebCore::DOMWindow::close):
      (WebCore::DOMWindow::print):
      (WebCore::DOMWindow::stop):
      (WebCore::DOMWindow::setName):
      (WebCore::DOMWindow::opener):
      (WebCore::DOMWindow::dispatchLoadEvent):
      (WebCore::DOMWindow::setLocation):
      (WebCore::DOMWindow::createWindow):
      (WebCore::DOMWindow::open):
      * page/DOMWindowExtension.cpp:
      (WebCore::DOMWindowExtension::disconnectFrameForPageCache):
      (WebCore::DOMWindowExtension::reconnectFrameFromPageCache):
      (WebCore::DOMWindowExtension::willDestroyGlobalObjectInCachedFrame):
      (WebCore::DOMWindowExtension::willDestroyGlobalObjectInFrame):
      (WebCore::DOMWindowExtension::willDetachGlobalObjectFromFrame):
      * page/DragController.cpp:
      (WebCore::DragController::performDrag):
      * page/EventHandler.cpp:
      (WebCore::EventHandler::handleMousePressEvent):
      (WebCore::EventHandler::keyEvent):
      * page/Frame.cpp:
      (WebCore::Frame::~Frame):
      (WebCore::Frame::setView):
      (WebCore::Frame::injectUserScripts):
      (WebCore::Frame::willDetachPage):
      * page/Frame.h:
      (WebCore::Frame::loader):
      * page/FrameView.cpp:
      (WebCore::FrameView::mediaType):
      (WebCore::FrameView::setFixedVisibleContentRect):
      (WebCore::FrameView::shouldUseLoadTimeDeferredRepaintDelay):
      (WebCore::FrameView::performPostLayoutTasks):
      (WebCore::FrameView::autoSizeIfEnabled):
      (WebCore::FrameView::scrollTo):
      (WebCore::FrameView::shouldSuspendScrollAnimations):
      (WebCore::FrameView::qualifiesAsVisuallyNonEmpty):
      (WebCore::FrameView::wheelEvent):
      (WebCore::FrameView::firePaintRelatedMilestones):
      * page/History.cpp:
      (WebCore::History::stateInternal):
      (WebCore::History::stateObjectAdded):
      * page/Location.cpp:
      (WebCore::Location::setLocation):
      * page/Navigator.cpp:
      (WebCore::Navigator::userAgent):
      * page/Page.cpp:
      (WebCore::Page::goToItem):
      (WebCore::Page::refreshPlugins):
      (WebCore::Page::setDefersLoading):
      (WebCore::Page::setMemoryCacheClientCallsEnabled):
      (WebCore::Page::addRelevantRepaintedObject):
      * page/Performance.cpp:
      (WebCore::Performance::now):
      * page/PerformanceNavigation.cpp:
      (WebCore::PerformanceNavigation::type):
      (WebCore::PerformanceNavigation::redirectCount):
      * page/PerformanceResourceTiming.cpp:
      (WebCore::monotonicTimeToDocumentMilliseconds):
      * page/mac/PageMac.cpp:
      (WebCore::Page::addSchedulePair):
      (WebCore::Page::removeSchedulePair):
      * platform/ios/PasteboardIOS.mm:
      (WebCore::documentFragmentWithImageResource):
      (WebCore::documentFragmentWithRTF):
      (WebCore::Pasteboard::documentFragmentForPasteboardItemAtIndex):
      * platform/mac/HTMLConverter.mm:
      (-[WebHTMLConverter _addAttachmentForElement:URL:needsParagraph:usePlaceholder:]):
      (-[WebHTMLConverter _loadFromDOMRange]):
      * platform/mac/PasteboardMac.mm:
      (WebCore::documentFragmentWithImageResource):
      (WebCore::documentFragmentWithRTF):
      (WebCore::fragmentFromWebArchive):
      * plugins/DOMMimeType.cpp:
      (WebCore::DOMMimeType::enabledPlugin):
      * rendering/RenderLayer.cpp:
      (WebCore::RenderLayer::scrollTo):
      * svg/SVGAElement.cpp:
      (WebCore::SVGAElement::defaultEventHandler):
      * svg/graphics/SVGImage.cpp:
      (WebCore::SVGImage::~SVGImage):
      (WebCore::SVGImage::dataChanged):
      * testing/Internals.cpp:
      (WebCore::Internals::formControlStateOfPreviousHistoryItem):
      (WebCore::Internals::setFormControlStateOfPreviousHistoryItem):
      (WebCore::Internals::getReferencedFilePaths):
      (WebCore::Internals::forceReload):
      * xml/XSLTProcessorLibxslt.cpp:
      (WebCore::docLoaderFunc):
      * xml/parser/XMLDocumentParserLibxml2.cpp:
      (WebCore::openFunc):
      (WebCore::XMLDocumentParser::startElementNs):
      
      Source/WebKit/blackberry:
      
      * Api/WebPage.cpp:
      (BlackBerry::WebKit::WebPagePrivate::load):
      (BlackBerry::WebKit::WebPagePrivate::loadString):
      (BlackBerry::WebKit::WebPagePrivate::stopCurrentLoad):
      (BlackBerry::WebKit::closeURLRecursively):
      (BlackBerry::WebKit::WebPage::dispatchBeforeUnloadEvent):
      (BlackBerry::WebKit::WebPagePrivate::shouldSendResizeEvent):
      (BlackBerry::WebKit::WebPagePrivate::zoomToInitialScaleOnLoad):
      (BlackBerry::WebKit::WebPage::reload):
      (BlackBerry::WebKit::WebPage::reloadFromCache):
      (BlackBerry::WebKit::WebPage::textEncoding):
      (BlackBerry::WebKit::WebPage::forcedTextEncoding):
      (BlackBerry::WebKit::WebPage::setForcedTextEncoding):
      (BlackBerry::WebKit::WebPage::title):
      * WebCoreSupport/ChromeClientBlackBerry.cpp:
      (WebCore::ChromeClientBlackBerry::createWindow):
      * WebCoreSupport/FrameLoaderClientBlackBerry.cpp:
      (WebCore::FrameLoaderClientBlackBerry::dispatchDidChangeLocationWithinPage):
      (WebCore::FrameLoaderClientBlackBerry::dispatchDecidePolicyForResponse):
      (WebCore::FrameLoaderClientBlackBerry::dispatchDecidePolicyForNavigationAction):
      (WebCore::FrameLoaderClientBlackBerry::delayPolicyCheckUntilFragmentExists):
      (WebCore::FrameLoaderClientBlackBerry::dispatchDecidePolicyForNewWindowAction):
      (WebCore::FrameLoaderClientBlackBerry::createPlugin):
      (WebCore::FrameLoaderClientBlackBerry::receivedData):
      (WebCore::FrameLoaderClientBlackBerry::createDocumentLoader):
      (WebCore::FrameLoaderClientBlackBerry::dispatchDidCommitLoad):
      (WebCore::FrameLoaderClientBlackBerry::dispatchDidFailProvisionalLoad):
      (WebCore::FrameLoaderClientBlackBerry::dispatchWillSubmitForm):
      (WebCore::FrameLoaderClientBlackBerry::createFrame):
      (WebCore::FrameLoaderClientBlackBerry::dispatchDidLayout):
      (WebCore::FrameLoaderClientBlackBerry::dispatchWillSendRequest):
      (WebCore::FrameLoaderClientBlackBerry::restoreViewState):
      (WebCore::FrameLoaderClientBlackBerry::startDownload):
      (WebCore::FrameLoaderClientBlackBerry::canCachePage):
      (WebCore::FrameLoaderClientBlackBerry::didRestoreFromPageCache):
      * WebKitSupport/PagePopup.cpp:
      (BlackBerry::WebKit::PagePopup::initialize):
      
      Source/WebKit/efl:
      
      * WebCoreSupport/ChromeClientEfl.cpp:
      (kit):
      * WebCoreSupport/DumpRenderTreeSupportEfl.cpp:
      (DumpRenderTreeSupportEfl::callShouldCloseOnWebView):
      (DumpRenderTreeSupportEfl::clearOpener):
      (DumpRenderTreeSupportEfl::frameChildren):
      (DumpRenderTreeSupportEfl::responseMimeType):
      (DumpRenderTreeSupportEfl::provisionalURL):
      * WebCoreSupport/FrameLoaderClientEfl.cpp:
      (WebCore::FrameLoaderClientEfl::callPolicyFunction):
      (WebCore::FrameLoaderClientEfl::dispatchDecidePolicyForNewWindowAction):
      (WebCore::FrameLoaderClientEfl::dispatchDecidePolicyForNavigationAction):
      (WebCore::FrameLoaderClientEfl::updateGlobalHistoryRedirectLinks):
      (WebCore::FrameLoaderClientEfl::updateGlobalHistory):
      * ewk/ewk_frame.cpp:
      (_ewk_frame_loader_efl_get):
      (_ewk_frame_smart_del):
      (_ewk_frame_contents_set_internal):
      (ewk_frame_stop):
      (ewk_frame_reload):
      (ewk_frame_reload_full):
      (ewk_frame_child_add):
      * ewk/ewk_view.cpp:
      (ewk_view_frame_focused_get):
      (ewk_view_setting_user_agent_set):
      (ewk_view_setting_encoding_custom_get):
      (ewk_view_setting_encoding_custom_set):
      
      Source/WebKit/gtk:
      
      * WebCoreSupport/DumpRenderTreeSupportGtk.cpp:
      (DumpRenderTreeSupportGtk::clearOpener):
      (DumpRenderTreeSupportGtk::shouldClose):
      * WebCoreSupport/FrameLoaderClientGtk.cpp:
      (WebKit::FrameLoaderClient::dispatchWillSubmitForm):
      (WebKit::FrameLoaderClient::committedLoad):
      (WebKit::FrameLoaderClient::dispatchDecidePolicyForResponse):
      (WebKit::FrameLoaderClient::dispatchDecidePolicyForNewWindowAction):
      (WebKit::FrameLoaderClient::dispatchDecidePolicyForNavigationAction):
      (WebKit::FrameLoaderClient::createFrame):
      (WebKit::FrameLoaderClient::dispatchDidCommitLoad):
      * webkit/webkitwebframe.cpp:
      (webkit_web_frame_finalize):
      (webkit_web_frame_load_uri):
      (webkit_web_frame_load_data):
      (webkit_web_frame_load_request):
      (webkit_web_frame_stop_loading):
      (webkit_web_frame_reload):
      (webkit_web_frame_get_data_source):
      (webkit_web_frame_get_provisional_data_source):
      (webkit_web_frame_get_response_mime_type):
      (webkit_web_frame_get_network_response):
      (WebKit::kit):
      * webkit/webkitwebpolicydecision.cpp:
      (webkit_web_policy_decision_use):
      (webkit_web_policy_decision_ignore):
      (webkit_web_policy_decision_download):
      * webkit/webkitwebview.cpp:
      (webkit_web_view_dispose):
      (webkit_web_view_reload):
      (webkit_web_view_reload_bypass_cache):
      (webkit_web_view_stop_loading):
      (webkit_web_view_can_show_mime_type):
      (webkit_web_view_set_custom_encoding):
      (webkit_web_view_get_custom_encoding):
      (webkit_web_view_get_subresources):
      
      Source/WebKit/mac:
      
      * Plugins/Hosted/HostedNetscapePluginStream.mm:
      (WebKit::HostedNetscapePluginStream::HostedNetscapePluginStream):
      * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
      (WebKit::NetscapePluginInstanceProxy::performRequest):
      (WebKit::NetscapePluginInstanceProxy::loadRequest):
      * Plugins/Hosted/WebHostedNetscapePluginView.mm:
      (-[WebHostedNetscapePluginView pluginView:receivedResponse:]):
      * Plugins/WebBaseNetscapePluginView.mm:
      (-[WebBaseNetscapePluginView requestWithURLCString:]):
      * Plugins/WebNetscapePluginStream.mm:
      (WebNetscapePluginStream::WebNetscapePluginStream):
      * Plugins/WebNetscapePluginView.mm:
      (-[WebNetscapePluginView loadStream]):
      (-[WebNetscapePluginView pluginView:receivedResponse:]):
      (-[WebNetscapePluginView loadPluginRequest:]):
      (-[WebNetscapePluginView loadRequest:inTarget:withNotifyData:sendNotification:]):
      * Plugins/WebPluginController.mm:
      * WebCoreSupport/WebFrameLoaderClient.mm:
      (WebFrameLoaderClient::dispatchDidReceiveServerRedirectForProvisionalLoad):
      (WebFrameLoaderClient::dispatchDidStartProvisionalLoad):
      (WebFrameLoaderClient::dispatchWillSubmitForm):
      (WebFrameLoaderClient::updateGlobalHistory):
      (WebFrameLoaderClient::updateGlobalHistoryRedirectLinks):
      (WebFrameLoaderClient::restoreViewState):
      (WebFrameLoaderClient::transitionToCommittedForNewPage):
      (WebFrameLoaderClient::createFrame):
      * WebCoreSupport/WebFrameNetworkingContext.mm:
      (WebFrameNetworkingContext::blockedError):
      * WebCoreSupport/WebPlatformStrategies.mm:
      (WebPlatformStrategies::getPluginInfo):
      * WebView/WebFrame.mm:
      (kit):
      (-[WebFrame _dataSource]):
      (-[WebFrame _canProvideDocumentSource]):
      (-[WebFrame _commitData:]):
      (-[WebFrame _firstLayoutDone]):
      (-[WebFrame _loadType]):
      (-[WebFrame _cacheabilityDictionary]):
      (-[WebFrame _clearOpener]):
      (-[WebFrame provisionalDataSource]):
      (-[WebFrame dataSource]):
      (-[WebFrame loadRequest:]):
      (-[WebFrame _loadData:MIMEType:textEncodingName:baseURL:unreachableURL:]):
      (-[WebFrame loadArchive:]):
      (-[WebFrame stopLoading]):
      (-[WebFrame reload]):
      (-[WebFrame reloadFromOrigin]):
      * WebView/WebHTMLRepresentation.mm:
      (-[WebHTMLRepresentation receivedData:withDataSource:]):
      * WebView/WebHTMLView.mm:
      (-[WebHTMLView validateUserInterfaceItemWithoutDelegate:]):
      * WebView/WebPDFView.mm:
      (-[WebPDFView PDFViewWillClickOnLink:withURL:]):
      * WebView/WebRenderLayer.mm:
      (-[WebRenderLayer initWithWebFrame:]):
      * WebView/WebRenderNode.mm:
      (-[WebRenderNode _initWithCoreFrame:]):
      * WebView/WebView.mm:
      (-[WebView _close]):
      (-[WebView _loadBackForwardListFromOtherView:]):
      (-[WebView _cachedResponseForURL:]):
      (-[WebView setCustomTextEncodingName:]):
      (-[WebView shouldClose]):
      
      Source/WebKit/qt:
      
      * WebCoreSupport/ChromeClientQt.cpp:
      (WebCore::ChromeClientQt::closeWindowSoon):
      * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
      (DumpRenderTreeSupportQt::shouldClose):
      (DumpRenderTreeSupportQt::responseMimeType):
      (DumpRenderTreeSupportQt::clearOpener):
      (DumpRenderTreeSupportQt::thirdPartyCookiePolicyAllows):
      (DumpRenderTreeSupportQt::setAlternateHtml):
      * WebCoreSupport/FrameLoaderClientQt.cpp:
      (WebCore::FrameLoaderClientQt::callPolicyFunction):
      (WebCore::FrameLoaderClientQt::dispatchDidStartProvisionalLoad):
      (WebCore::FrameLoaderClientQt::updateGlobalHistory):
      (WebCore::FrameLoaderClientQt::updateGlobalHistoryRedirectLinks):
      (WebCore::FrameLoaderClientQt::callErrorPageExtension):
      (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNewWindowAction):
      (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
      (WebCore::FrameLoaderClientQt::startDownload):
      (WebCore::FrameLoaderClientQt::createFrame):
      (WebCore::FrameLoaderClientQt::objectContentType):
      * WebCoreSupport/QWebFrameAdapter.cpp:
      (QWebFrameAdapter::load):
      (QWebFrameAdapter::setContent):
      (QWebFrameAdapter::setHtml):
      (QWebFrameAdapter::kit):
      (QWebFrameAdapter::title):
      (QWebFrameAdapter::clearCoreFrame):
      * WebCoreSupport/QWebPageAdapter.cpp:
      (frameLoadRequest):
      (openNewWindow):
      (QWebPageAdapter::triggerAction):
      (QWebPageAdapter::currentFrame):
      
      Source/WebKit/win:
      
      * WebCoreSupport/WebContextMenuClient.cpp:
      (WebContextMenuClient::searchWithGoogle):
      * WebCoreSupport/WebFrameLoaderClient.cpp:
      (WebFrameLoaderClient::updateGlobalHistory):
      (WebFrameLoaderClient::updateGlobalHistoryRedirectLinks):
      (WebFrameLoaderClient::savePlatformDataToCachedFrame):
      (WebFrameLoaderClient::createFrame):
      (WebFrameLoaderClient::dispatchDidFailToStartPlugin):
      * WebCoreSupport/WebFrameNetworkingContext.cpp:
      (WebFrameNetworkingContext::blockedError):
      (WebFrameNetworkingContext::referrer):
      * WebElementPropertyBag.cpp:
      (WebElementPropertyBag::Read):
      * WebFrame.cpp:
      (kit):
      (WebFrame::reloadFromOrigin):
      (WebFrame::loadRequest):
      (WebFrame::loadData):
      (WebFrame::dataSource):
      (WebFrame::provisionalDataSource):
      (WebFrame::stopLoading):
      (WebFrame::reload):
      (WebFrame::firstLayoutDone):
      (WebFrame::loadType):
      (WebFrame::clearOpener):
      (WebFrame::dispatchWillSubmitForm):
      (WebFrame::receivedPolicyDecision):
      (WebFrame::dispatchDecidePolicyForResponse):
      (WebFrame::dispatchDecidePolicyForNewWindowAction):
      (WebFrame::dispatchDecidePolicyForNavigationAction):
      (WebFrame::createJavaAppletWidget):
      * WebFramePolicyListener.cpp:
      (WebFramePolicyListener::receivedPolicyDecision):
      * WebView.cpp:
      (WebView::close):
      (WebView::canShowMIMEType):
      (WebView::setCustomTextEncodingName):
      (WebView::loadBackForwardListFromOtherView):
      (WebView::shouldClose):
      
      Source/WebKit/wince:
      
      * WebCoreSupport/FrameLoaderClientWinCE.cpp:
      (WebKit::FrameLoaderClientWinCE::dispatchDecidePolicyForResponse):
      (WebKit::FrameLoaderClientWinCE::dispatchDecidePolicyForNewWindowAction):
      (WebKit::FrameLoaderClientWinCE::dispatchDecidePolicyForNavigationAction):
      (WebKit::FrameLoaderClientWinCE::dispatchWillSubmitForm):
      * WebCoreSupport/FrameNetworkingContextWinCE.cpp:
      (WebKit::FrameNetworkingContextWinCE::referrer):
      * WebView.cpp:
      (WebView::createFrame):
      (WebView::load):
      (WebView::reload):
      (WebView::stop):
      
      Source/WebKit2:
      
      * Shared/WebRenderLayer.cpp:
      (WebKit::WebRenderLayer::create):
      * Shared/WebRenderObject.cpp:
      (WebKit::WebRenderObject::create):
      * WebProcess/Geolocation/GeolocationPermissionRequestManager.cpp:
      (WebKit::GeolocationPermissionRequestManager::startRequestForGeolocation):
      * WebProcess/InjectedBundle/API/c/WKBundleFrame.cpp:
      (WKBundleFrameGetFrameLoadState):
      (WKBundleFrameClearOpener):
      (WKBundleFrameCallShouldCloseOnWebView):
      * WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.cpp:
      (WebKit::InjectedBundleNodeHandle::documentFrame):
      (WebKit::InjectedBundleNodeHandle::htmlFrameElementContentFrame):
      (WebKit::InjectedBundleNodeHandle::htmlIFrameElementContentFrame):
      * WebProcess/InjectedBundle/InjectedBundle.cpp:
      (WebKit::InjectedBundle::overrideBoolPreferenceForTestRunner):
      * WebProcess/InjectedBundle/InjectedBundleDOMWindowExtension.cpp:
      (WebKit::InjectedBundleDOMWindowExtension::frame):
      * WebProcess/InjectedBundle/InjectedBundleHitTestResult.cpp:
      (WebKit::InjectedBundleHitTestResult::frame):
      (WebKit::InjectedBundleHitTestResult::targetFrame):
      * WebProcess/Plugins/PDF/PDFPlugin.mm:
      (WebKit::PDFPlugin::clickedLink):
      * WebProcess/Plugins/PluginView.cpp:
      (WebKit::webPage):
      (WebKit::PluginView::didFailToInitializePlugin):
      (WebKit::PluginView::performFrameLoadURLRequest):
      (WebKit::PluginView::userAgent):
      (WebKit::PluginView::loadURL):
      (WebKit::PluginView::cancelManualStreamLoad):
      (WebKit::PluginView::proxiesForURL):
      * WebProcess/WebCoreSupport/WebChromeClient.cpp:
      (WebKit::WebChromeClient::focusedElementChanged):
      (WebKit::WebChromeClient::focusedFrameChanged):
      (WebKit::WebChromeClient::runBeforeUnloadConfirmPanel):
      (WebKit::WebChromeClient::closeWindowSoon):
      (WebKit::WebChromeClient::runJavaScriptAlert):
      (WebKit::WebChromeClient::runJavaScriptConfirm):
      (WebKit::WebChromeClient::runJavaScriptPrompt):
      (WebKit::WebChromeClient::unavailablePluginButtonClicked):
      (WebKit::WebChromeClient::print):
      (WebKit::WebChromeClient::exceededDatabaseQuota):
      (WebKit::WebChromeClient::runOpenPanel):
      * WebProcess/WebCoreSupport/WebContextMenuClient.cpp:
      (WebKit::WebContextMenuClient::searchWithGoogle):
      * WebProcess/WebCoreSupport/WebEditorClient.cpp:
      (WebKit::WebEditorClient::textFieldDidBeginEditing):
      (WebKit::WebEditorClient::textFieldDidEndEditing):
      (WebKit::WebEditorClient::textDidChangeInTextField):
      (WebKit::WebEditorClient::textDidChangeInTextArea):
      (WebKit::WebEditorClient::doTextFieldCommandFromEvent):
      (WebKit::WebEditorClient::textWillBeDeletedInTextField):
      * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
      (WebKit::WebFrameLoaderClient::dispatchDidReceiveServerRedirectForProvisionalLoad):
      (WebKit::WebFrameLoaderClient::dispatchDidStartProvisionalLoad):
      (WebKit::WebFrameLoaderClient::dispatchDidCommitLoad):
      (WebKit::WebFrameLoaderClient::dispatchDecidePolicyForResponse):
      (WebKit::WebFrameLoaderClient::dispatchDecidePolicyForNewWindowAction):
      (WebKit::WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction):
      (WebKit::WebFrameLoaderClient::dispatchWillSendSubmitEvent):
      (WebKit::WebFrameLoaderClient::dispatchWillSubmitForm):
      (WebKit::WebFrameLoaderClient::updateGlobalHistory):
      (WebKit::WebFrameLoaderClient::updateGlobalHistoryRedirectLinks):
      (WebKit::WebFrameLoaderClient::restoreViewState):
      (WebKit::WebFrameLoaderClient::createFrame):
      (WebKit::WebFrameLoaderClient::createJavaAppletWidget):
      (WebKit::WebFrameLoaderClient::objectContentType):
      * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
      (WebKit::WebPlatformStrategies::getPluginInfo):
      * WebProcess/WebCoreSupport/mac/WebFrameNetworkingContext.mm:
      (WebKit::WebFrameNetworkingContext::blockedError):
      * WebProcess/WebPage/WebFrame.cpp:
      (WebKit::WebFrame::didReceivePolicyDecision):
      (WebKit::WebFrame::startDownload):
      (WebKit::WebFrame::source):
      (WebKit::WebFrame::contentsAsString):
      (WebKit::WebFrame::url):
      (WebKit::WebFrame::parentFrame):
      (WebKit::WebFrame::childFrames):
      (WebKit::WebFrame::stopLoading):
      (WebKit::WebFrame::frameForContext):
      (WebKit::WebFrame::provisionalURL):
      (WebKit::WebFrame::suggestedFilenameForResourceWithURL):
      (WebKit::WebFrame::mimeTypeForResourceWithURL):
      (WebKit::WebFrameFilter::shouldIncludeSubframe):
      * WebProcess/WebPage/WebPage.cpp:
      (WebKit::WebPage::createPlugin):
      (WebKit::WebPage::close):
      (WebKit::WebPage::tryClose):
      (WebKit::WebPage::loadURLRequest):
      (WebKit::WebPage::loadDataImpl):
      (WebKit::WebPage::linkClicked):
      (WebKit::WebPage::stopLoadingFrame):
      (WebKit::WebPage::stopLoading):
      (WebKit::WebPage::reload):
      (WebKit::WebPage::tryRestoreScrollPosition):
      (WebKit::WebPage::getMainResourceDataOfFrame):
      (WebKit::resourceDataForFrame):
      (WebKit::shouldReuseCommittedSandboxExtension):
      (WebKit::WebPage::SandboxExtensionTracker::didStartProvisionalLoad):
      (WebKit::WebPage::hasLocalDataForURL):
      (WebKit::WebPage::setCustomTextEncodingName):
      (WebKit::WebPage::canPluginHandleResponse):
      (WebKit::WebPage::canShowMIMEType):
      (WebKit::WebPage::didCommitLoad):
      * WebProcess/WebPage/mac/WebPageMac.mm:
      (WebKit::WebPage::platformHasLocalDataForURL):
      (WebKit::cachedResponseForURL):
      * WebProcess/WebProcess.cpp:
      (WebKit::WebProcess::downloadRequest):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@154142 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      df550b96
  5. 11 Aug, 2013 1 commit
  6. 14 Apr, 2013 1 commit
    • weinig@apple.com's avatar
      Make Frame's ScriptController an OwnPtr and remove the #include · 123e4aae
      weinig@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=114105
      
      Reviewed by Dean Jackson.
      
      Source/WebCore: 
      
      * Modules/websockets/WebSocket.cpp:
      * bindings/generic/BindingSecurity.cpp:
      * bindings/js/JSEventListener.cpp:
      * bindings/js/JSLazyEventListener.cpp:
      * bindings/js/PageScriptDebugServer.cpp:
      * bindings/js/ScriptEventListener.cpp:
      * bindings/js/ScriptState.cpp:
      * bindings/objc/DOM.mm:
      * bindings/objc/DOMAbstractView.mm:
      * bindings/objc/DOMInternal.mm:
      * dom/DocumentStyleSheetCollection.cpp:
      * dom/EventTarget.cpp:
      * dom/ScriptElement.cpp:
      * history/CachedFrame.cpp:
      * html/HTMLCanvasElement.cpp:
      * html/HTMLDocument.cpp:
      * html/HTMLElement.cpp:
      * html/HTMLFormElement.cpp:
      * html/HTMLPlugInElement.cpp:
      * html/HTMLPlugInImageElement.cpp:
      * html/parser/HTMLParserOptions.cpp:
      * inspector/InspectorAgent.cpp:
      * inspector/InspectorController.cpp:
      * inspector/InspectorFrontendClientLocal.cpp:
      * inspector/InspectorFrontendHost.cpp:
      * inspector/InspectorInstrumentation.cpp:
      * inspector/InspectorOverlay.cpp:
      * inspector/InspectorPageAgent.cpp:
      * inspector/PageRuntimeAgent.cpp:
      * loader/DocumentWriter.cpp:
      * loader/NavigationScheduler.cpp:
      * loader/SubframeLoader.cpp:
      * loader/cache/CachedResourceLoader.cpp:
      * page/DOMWindow.cpp:
      * page/EventSource.cpp:
      * page/Frame.cpp:
      * page/Frame.h:
      * page/Navigator.cpp:
      * page/Page.cpp:
      * page/PageGroup.cpp:
      * xml/XMLHttpRequest.cpp:
      * xml/XMLTreeViewer.cpp:
      
      Source/WebKit/mac: 
      
      * Plugins/Hosted/HostedNetscapePluginStream.mm:
      * Plugins/WebNetscapePluginStream.mm:
      * Plugins/WebPluginContainerCheck.mm:
      * WebCoreSupport/WebGeolocationClient.mm:
      * WebCoreSupport/WebInspectorClient.mm:
      * WebView/WebFrame.mm:
      
      Source/WebKit2: 
      
      * Shared/WebHitTestResult.cpp:
      * Shared/WebHitTestResult.h:
      * UIProcess/Plugins/PlugInAutoStartProvider.cpp:
      * UIProcess/WebContext.h:
      * UIProcess/WebPageProxy.h:
      * WebProcess/InjectedBundle/API/c/WKBundleFrame.cpp:
      * WebProcess/InjectedBundle/InjectedBundleDOMWindowExtension.cpp:
      * WebProcess/Plugins/Netscape/NPJSObject.cpp:
      * WebProcess/Plugins/Netscape/NPRuntimeObjectMap.cpp:
      * WebProcess/Plugins/PDF/PDFPlugin.h:
      * WebProcess/Plugins/PluginView.cpp:
      * WebProcess/Storage/StorageAreaImpl.cpp:
      * WebProcess/Storage/StorageAreaMap.cpp:
      * WebProcess/WebPage/WebFrame.cpp:
      * WebProcess/WebPage/WebPage.cpp:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148373 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      123e4aae
  7. 02 Aug, 2012 1 commit
    • scheib@chromium.org's avatar
      Remove old Pointer Lock API. · 03edde3b
      scheib@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=88892
      
      Reviewed by Adam Barth.
      
      Source/WebCore:
      
      Removing the old Pointer Lock API as one of the final cleanup
      changes for the Update to Fullscreen style locking Spec meta
      bug https://bugs.webkit.org/show_bug.cgi?id=84402.
      
      This change primarily removes idl, access in navigator,
      one event, and supporting infrastructure in page/PointerLock.
      
      In PointerLockController changes were already noted clearly with
      TODOs differentiating old and new api sections.
      
      Test: pointer-lock/pointerlockchange-event-on-lock-lost.html
      
      * WebCore.gypi:
      * dom/Element.cpp:
      (WebCore::Element::webkitRequestPointerLock):
      * dom/EventNames.h:
      (WebCore):
      * page/Navigator.cpp:
      * page/Navigator.h:
      (WebCore):
      (Navigator):
      * page/Navigator.idl:
      * page/PointerLock.cpp: Removed.
      * page/PointerLock.h: Removed.
      * page/PointerLock.idl: Removed.
      * page/PointerLockController.cpp:
      (WebCore::PointerLockController::requestPointerLock):
      (WebCore::PointerLockController::didAcquirePointerLock):
      (WebCore::PointerLockController::didNotAcquirePointerLock):
      (WebCore::PointerLockController::didLosePointerLock):
      * page/PointerLockController.h:
      (PointerLockController):
      
      Source/WebKit/chromium:
      
      * src/WebViewImpl.cpp:
          Removed #include to old API header.
      
      LayoutTests:
      
      Tests for old API removed, and most remaining tests required only small
      changes.
      
      * platform/chromium/fast/dom/navigator-detached-no-crash-expected.txt:
      * pointer-lock/lock-already-locked-expected.txt:
      * pointer-lock/lock-already-locked.html:
      * pointer-lock/lock-fail-responses-expected.txt: Removed.
      * pointer-lock/lock-fail-responses.html: Removed.
          This test only covered the old API. The related concept is tested
          for the new api in pointerlockchange-pointerlockerror-events.html.
      * pointer-lock/pointer-lock-api-expected.txt:
      * pointer-lock/pointer-lock-api.html:
      * pointer-lock/pointerlockchange-event-on-lock-lost-expected.txt: Added.
      * pointer-lock/pointerlockchange-event-on-lock-lost.html: Added.
      * pointer-lock/pointerlocklost-event-expected.txt: Removed.
      * pointer-lock/pointerlocklost-event.html: Removed.
          pointerlocklost-event.html renamed to pointerlockchange-event-on-lock-lost.html.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@124535 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      03edde3b
  8. 20 Jun, 2012 1 commit
    • commit-queue@webkit.org's avatar
      Source/WebCore: Moving cookieEnabled/setCookieEnabled from Page to Settings. · c8870dbd
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=89545
      
      Patch by Garret Kelly <gdk@chromium.org> on 2012-06-20
      Reviewed by Adam Barth.
      
      * dom/Document.cpp:
      (WebCore::Document::cookie):
      (WebCore::Document::setCookie):
      * page/Navigator.cpp:
      (WebCore::Navigator::cookieEnabled):
      * page/Page.h:
      (Page):
      * page/Settings.cpp:
      (WebCore::Settings::Settings):
      * page/Settings.h:
      (WebCore::Settings::setCookieEnabled):
      (WebCore::Settings::cookieEnabled):
      (Settings):
      * platform/graphics/win/MediaPlayerPrivateQuickTimeVisualContext.cpp:
      (WebCore::MediaPlayerPrivateQuickTimeVisualContext::setUpCookiesForQuickTime):
      
      Source/WebKit/chromium: Moving cookieEnabled/setCookieEnabled from Page to Settings, and
      exposing through WebSettings.
      https://bugs.webkit.org/show_bug.cgi?id=89545
      
      Patch by Garret Kelly <gdk@chromium.org> on 2012-06-20
      Reviewed by Adam Barth.
      
      * public/WebSettings.h:
      * src/WebSettingsImpl.cpp:
      (WebKit::WebSettingsImpl::setCookieEnabled):
      * src/WebSettingsImpl.h:
      (WebSettingsImpl):
      
      Source/WebKit/mac: Moving cookieEnabled/setCookieEnabled from Page to Settings.
      https://bugs.webkit.org/show_bug.cgi?id=89545
      
      Patch by Garret Kelly <gdk@chromium.org> on 2012-06-20
      Reviewed by Adam Barth.
      
      * WebView/WebView.mm:
      (-[WebView _cookieEnabled]):
      (-[WebView _setCookieEnabled:]):
      
      Source/WebKit/win: Moving cookieEnabled/setCookieEnabled from Page to Settings.
      https://bugs.webkit.org/show_bug.cgi?id=89545
      
      Patch by Garret Kelly <gdk@chromium.org> on 2012-06-20
      Reviewed by Adam Barth.
      
      * WebView.cpp:
      (WebView::setCookieEnabled):
      (WebView::cookieEnabled):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@120885 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c8870dbd
  9. 02 Apr, 2012 1 commit
    • weinig@apple.com's avatar
      Add setting to disable Java for local files even if it is otherwise enabled · 94c51ab5
      weinig@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=82685
      
      Reviewed by Anders Carlsson.
      
      Source/WebCore:
      
      * WebCore.exp.in:
      Export setting setter.
      
      * html/HTMLAppletElement.cpp:
      (WebCore::HTMLAppletElement::canEmbedJava):
      * loader/SubframeLoader.cpp:
      (WebCore::SubframeLoader::requestPlugin):
      * page/Navigator.cpp:
      (WebCore::Navigator::javaEnabled):
      Check for both isJavaEnabled and isJavaEnabledForLocalFiles.
      
      * page/Settings.cpp:
      (WebCore::Settings::setJavaEnabledForLocalFiles):
      * page/Settings.h:
      (WebCore::Settings::isJavaEnabledForLocalFiles):
      Add new setting.
      
      Source/WebKit2:
      
      * Shared/WebPreferencesStore.h:
      * UIProcess/API/C/WKPreferences.cpp:
      (WKPreferencesSetJavaEnabledForLocalFiles):
      (WKPreferencesGetJavaEnabledForLocalFiles):
      * UIProcess/API/C/WKPreferencesPrivate.h:
      * WebProcess/WebPage/WebPage.cpp:
      (WebKit::WebPage::updatePreferences):
      Add pref as SPI and forward to WebCore.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@112894 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      94c51ab5
  10. 27 Feb, 2012 1 commit
    • abarth@webkit.org's avatar
      Extract Supplementable base class from Page and Navigator · 692424b3
      abarth@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=79624
      
      Reviewed by Hajime Morita.
      
      We'll use this pattern again soon for ScriptExecutionContext.
      
      * CMakeLists.txt:
      * GNUmakefile.list.am:
      * Modules/gamepad/NavigatorGamepad.cpp:
      (WebCore::NavigatorGamepad::from):
      * Modules/gamepad/NavigatorGamepad.h:
      * Modules/geolocation/NavigatorGeolocation.cpp:
      (WebCore::NavigatorGeolocation::from):
      * Modules/geolocation/NavigatorGeolocation.h:
      * Modules/mediastream/NavigatorMediaStream.cpp:
      (WebCore::NavigatorMediaStream::webkitGetUserMedia):
      * Modules/mediastream/UserMediaController.cpp:
      (WebCore::provideUserMediaTo):
      * Modules/mediastream/UserMediaController.h:
      (WebCore::UserMediaController::from):
      * Target.pri:
      * WebCore.gypi:
      * WebCore.vcproj/WebCore.vcproj:
      * WebCore.xcodeproj/project.pbxproj:
      * dom/DeviceMotionController.cpp:
      (WebCore::provideDeviceMotionTo):
      * dom/DeviceMotionController.h:
      (WebCore::DeviceMotionController::from):
      * dom/DeviceOrientationController.cpp:
      (WebCore::provideDeviceOrientationTo):
      * dom/DeviceOrientationController.h:
      (WebCore):
      (WebCore::DeviceOrientationController::from):
      * notifications/NotificationController.cpp:
      (WebCore::provideNotification):
      * notifications/NotificationController.h:
      (WebCore):
      (WebCore::NotificationController::from):
      * page/DOMWindow.cpp:
      (WebCore::DOMWindow::page):
      (WebCore):
      (WebCore::DOMWindow::addEventListener):
      (WebCore::DOMWindow::removeEventListener):
      (WebCore::DOMWindow::removeAllEventListeners):
      * page/DOMWindow.h:
      (WebCore):
      (DOMWindow):
      * page/Navigator.cpp:
      (WebCore):
      * page/Navigator.h:
      (Navigator):
      * page/NavigatorSupplement.cpp: Removed.
      * page/NavigatorSupplement.h: Removed.
      * page/Page.cpp:
      (WebCore):
      * page/Page.h:
      (Page):
      * page/PageSupplement.cpp: Removed.
      * page/PageSupplement.h: Removed.
      * page/SpeechInput.cpp:
      (WebCore::provideSpeechInputTo):
      * page/SpeechInput.h:
      (WebCore::SpeechInput::from):
      * platform/Supplementable.h: Added.
      (WebCore):
      (Supplement):
      (WebCore::Supplement::~Supplement):
      (WebCore::Supplement::provideTo):
      (WebCore::Supplement::from):
      (Supplementable):
      (WebCore::Supplementable::provideSupplement):
      (WebCore::Supplementable::requireSupplement):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@108958 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      692424b3
  11. 22 Feb, 2012 2 commits
    • abarth@webkit.org's avatar
      Separate the implementation of registerProtocolHandler from Navigator.cpp · e254f1a1
      abarth@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=78945
      
      Reviewed by Eric Seidel.
      
      The implementation of registerProtocolHandler needlessly complicates
      the implementation of Navigator.cpp.  In principle,
      registerProtocolHandler (and possibly registerContentHandler, when we
      implement that feature) could be its own module, but that seems like
      overkill for one or two files.
      
      * CMakeLists.txt:
      * GNUmakefile.list.am:
      * Target.pri:
      * WebCore.gypi:
      * WebCore.vcproj/WebCore.vcproj:
      * WebCore.xcodeproj/project.pbxproj:
      * page/Navigator.cpp:
      (WebCore):
      * page/Navigator.h:
      (Navigator):
      * page/Navigator.idl:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@108450 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e254f1a1
    • abarth@webkit.org's avatar
      Frame and Navigator shouldn't need to worry about Geolocation · 047b877c
      abarth@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=78860
      
      Reviewed by Eric Seidel.
      
      This patch removes some Geolocation-specific code from Frame and
      Navigator in favor of our new supplemental module mechanism.  We're
      still refining the module system, but we seem to be converging on a
      simple Observer/Supplement design.
      
      In a future patch, I'll move the remaining Geolocation-related files in
      WebCore into Modules/geolocation.  This patch appears to be the first
      patch that introduces a module used by all the various build systems,
      which is why there's a bit more build system overhead than usual.
      
      * Modules/geolocation: Added.
      * Modules/geolocation/NavigatorGeolocation.cpp: Added.
      (WebCore):
      (WebCore::NavigatorGeolocation::NavigatorGeolocation):
      (WebCore::NavigatorGeolocation::~NavigatorGeolocation):
      (WebCore::NavigatorGeolocation::pageDestroyed):
      (WebCore::NavigatorGeolocation::from):
      (WebCore::NavigatorGeolocation::geolocation):
      * Modules/geolocation/NavigatorGeolocation.h: Added.
      (WebCore):
      (NavigatorGeolocation):
      * Modules/geolocation/NavigatorGeolocation.idl: Added.
          - I've temporarily disabled this API for GObject because it generates
            a strange compile error.  Once I land this patch, I'll spend some
            more time fixing the compile error.
      * page/DOMWindow.cpp:
      (WebCore):
      * page/DOMWindow.h:
      (DOMWindow):
      * page/Frame.cpp:
      (WebCore::Frame::pageDestroyed):
      (WebCore::Frame::transferChildFrameToNewDocument):
      * page/FrameDestructionObserver.cpp:
      (WebCore::FrameDestructionObserver::pageDestroyed):
      (WebCore):
      * page/FrameDestructionObserver.h:
      (FrameDestructionObserver):
      * page/Navigator.cpp:
      (WebCore):
      * page/Navigator.h:
      (WebCore):
      (Navigator):
      * page/Navigator.idl:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@108428 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      047b877c
  12. 13 Feb, 2012 2 commits
    • abarth@webkit.org's avatar
      Remove ENABLE(MEDIA_STREAM) from Navigator.h · 35327c3e
      abarth@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=78467
      
      Reviewed by Kentaro Hara.
      
      Navigator.webkitGetUser media doesn't really have anything to do with
      Navigator.cpp.  This patch moves it into the mediastream directory and
      removes the ENABLE(MEDIA_STREAM) ifdefs in Navigator.h and
      Navigator.cpp.
      
      * GNUmakefile.list.am:
      * WebCore.gypi:
      * mediastream/NavigatorMediaStream.cpp: Added.
      (WebCore):
      (WebCore::NavigatorMediaStream::NavigatorMediaStream):
      (WebCore::NavigatorMediaStream::~NavigatorMediaStream):
      (WebCore::NavigatorMediaStream::webkitGetUserMedia):
      * mediastream/NavigatorMediaStream.h: Added.
      (WebCore):
      (NavigatorMediaStream):
      * mediastream/NavigatorMediaStream.idl: Added.
      * page/Navigator.cpp:
      (WebCore):
      * page/Navigator.h:
      (WebCore):
      (Navigator):
      * page/Navigator.idl:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@107541 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      35327c3e
    • abarth@webkit.org's avatar
      Move ENABLE(GAMEPAD) logic out of Navigator.h/cpp · 4239c11a
      abarth@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=78457
      
      Reviewed by Hajime Morita.
      
      This patch moves GAMEPAD-specific logic out of Navigator by introducing
      the concept of a NavigatorSupplement, analogous to the recently
      introduced PageSupplement.
      
      * Modules/gamepad/NavigatorGamepad.cpp:
      (WebCore::NavigatorGamepad::from):
      (WebCore):
      (WebCore::NavigatorGamepad::webkitGamepads):
      (WebCore::NavigatorGamepad::gamepads):
      * Modules/gamepad/NavigatorGamepad.h:
      (NavigatorGamepad):
      * WebCore.gypi:
      * dom/DeviceMotionController.cpp:
      (WebCore::DeviceMotionController::supplementName):
      * page/Navigator.cpp:
      (WebCore::Navigator::provideSupplement):
      (WebCore):
      (WebCore::Navigator::requireSupplement):
      * page/Navigator.h:
      (Navigator):
      * page/Page.h:
      (Page):
      * page/PageSupplement.h:
          - This patch cleans up some nits in PageSupplement.
      (WebCore):
      (PageSupplement):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@107536 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4239c11a
  13. 27 Jan, 2012 1 commit
    • scheib@chromium.org's avatar
      Pointer Lock: Implement pointer interface · 32c154ad
      scheib@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=75762
      
      Source/WebCore:
      
      Reviewed by Julien Chaffraix.
      
      Implement the navigator.pointer interface via a new
      PointerLockController class, as per
      http://dvcs.w3.org/hg/webevents/raw-file/default/mouse-lock.html.
      
      The implementation is being made in steps, the feature is still behind
      compile-time and run-time flags, 'webkit' prefixed, and not yet enabled
      in any browser. (Chromium has a developer flag required.) Follow-up
      work will include handling DOM elements being removed, making all
      callbacks asynchronous, iframe permissions (similar to Full Screen),
      etc.
      
      PointerLockController maintains state of which Element is the current
      lock target and the success and failure callbacks. ChromeClient has
      methods added to expose the required state change requests.
      
      Tests: pointer-lock/lock-already-locked.html
             pointer-lock/lock-fail-responses.html
             pointer-lock/mouse-event-delivery.html
             pointer-lock/pointerlocklost-event.html
      
      * WebCore.gypi:
      * dom/EventNames.h:
      * page/ChromeClient.h:
      (WebCore::ChromeClient::requestPointerLock):
      (WebCore::ChromeClient::requestPointerUnlock):
      (WebCore::ChromeClient::isPointerLocked):
      * page/Navigator.cpp:
      (WebCore::Navigator::webkitPointer):
      * page/Page.cpp:
      (WebCore::Page::Page):
      * page/Page.h:
      (WebCore::Page::pointerLockController):
      * page/PointerLock.cpp:
      (WebCore::PointerLock::PointerLock):
      (WebCore::PointerLock::create):
      (WebCore::PointerLock::lock):
      (WebCore::PointerLock::unlock):
      (WebCore::PointerLock::isLocked):
      * page/PointerLock.h:
      (WebCore::PointerLock::create):
      * page/PointerLockController.cpp: Added.
      (WebCore::PointerLockController::PointerLockController):
      (WebCore::PointerLockController::requestPointerLock):
      (WebCore::PointerLockController::requestPointerUnlock):
      (WebCore::PointerLockController::isLocked):
      (WebCore::PointerLockController::didAcquirePointerLock):
      (WebCore::PointerLockController::didNotAcquirePointerLock):
      (WebCore::PointerLockController::didLosePointerLock):
      (WebCore::PointerLockController::dispatchLockedMouseEvent):
      * page/PointerLockController.h: Copied from Source/WebCore/page/PointerLock.h.
      
      Source/WebKit/chromium:
      
      Add calls to the PointerLockController added in this patch to WebCore.
      
      * src/WebViewImpl.cpp:
      (WebKit::WebViewImpl::close):
      (WebKit::WebViewImpl::didAcquirePointerLock):
      (WebKit::WebViewImpl::didNotAcquirePointerLock):
      (WebKit::WebViewImpl::didLosePointerLock):
      (WebKit::WebViewImpl::pointerLockMouseEvent):
      
      LayoutTests:
      
      Reviewed by Julien Chaffraix.
      
      * pointer-lock/lock-already-locked-expected.txt: Added.
      * pointer-lock/lock-already-locked.html: Added.
      * pointer-lock/lock-fail-responses-expected.txt: Added.
      * pointer-lock/lock-fail-responses.html: Added.
      * pointer-lock/mouse-event-delivery-expected.txt: Added.
      * pointer-lock/mouse-event-delivery.html: Added.
      * pointer-lock/pointerlocklost-event-expected.txt: Added.
      * pointer-lock/pointerlocklost-event.html: Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@106134 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      32c154ad
  14. 07 Jan, 2012 1 commit
    • abarth@webkit.org's avatar
      Disconnecting DOMWindow properties is fragile and overly complicated · 84fe60e1
      abarth@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=75699
      
      Reviewed by Alexey Proskuryakov.
      
      Previously, we had to carefully check every object tree hanging off of
      DOMWindow to make sure that every property correctly disconnected
      itself and all its subobjects from the Frame when the DOMWindow
      disconnected from the Frame.
      
      This patch introduces DOMWindowProperty, which is a base class that
      handles this work automagically, ensuring that we won't have any
      dangling Frame pointers and removing a bunch of boilerplate code.
      
      * CMakeLists.txt:
      * GNUmakefile.list.am:
      * Target.pri:
      * WebCore.gypi:
      * WebCore.vcproj/WebCore.vcproj:
      * css/StyleMedia.cpp:
      (WebCore::StyleMedia::StyleMedia):
      * css/StyleMedia.h:
      (WebCore::StyleMedia::create):
      * loader/appcache/DOMApplicationCache.cpp:
      (WebCore::DOMApplicationCache::DOMApplicationCache):
      (WebCore::DOMApplicationCache::disconnectFrame):
      * loader/appcache/DOMApplicationCache.h:
      * page/BarInfo.cpp:
      (WebCore::BarInfo::BarInfo):
      * page/BarInfo.h:
      * page/Console.cpp:
      (WebCore::Console::Console):
      (WebCore::Console::memory):
      * page/Console.h:
      * page/DOMSelection.cpp:
      (WebCore::DOMSelection::DOMSelection):
      * page/DOMSelection.h:
      * page/DOMWindow.cpp:
      (WebCore::DOMWindow::registerProperty):
      (WebCore::DOMWindow::unregisterProperty):
      (WebCore::DOMWindow::clear):
      * page/DOMWindow.h:
      * page/Geolocation.cpp:
      (WebCore::Geolocation::Geolocation):
      (WebCore::Geolocation::disconnectFrame):
      * page/Geolocation.h:
      * page/History.cpp:
      (WebCore::History::History):
      * page/History.h:
      * page/Location.cpp:
      (WebCore::Location::Location):
      * page/Location.h:
      * page/Navigator.cpp:
      (WebCore::Navigator::Navigator):
      (WebCore::Navigator::~Navigator):
      * page/Navigator.h:
      * page/Performance.cpp:
      (WebCore::Performance::Performance):
      (WebCore::Performance::memory):
      * page/Performance.h:
      * page/PerformanceNavigation.cpp:
      (WebCore::PerformanceNavigation::PerformanceNavigation):
      * page/PerformanceNavigation.h:
      * page/PerformanceTiming.cpp:
      (WebCore::PerformanceTiming::PerformanceTiming):
      * page/PerformanceTiming.h:
      * page/Screen.cpp:
      (WebCore::Screen::Screen):
      * page/Screen.h:
      * plugins/DOMMimeTypeArray.cpp:
      (WebCore::DOMMimeTypeArray::DOMMimeTypeArray):
      * plugins/DOMMimeTypeArray.h:
      * plugins/DOMPluginArray.cpp:
      (WebCore::DOMPluginArray::DOMPluginArray):
      * plugins/DOMPluginArray.h:
      * storage/Storage.cpp:
      (WebCore::Storage::Storage):
      * storage/Storage.h:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@104380 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      84fe60e1
  15. 05 Jan, 2012 1 commit
  16. 23 Nov, 2011 1 commit
    • commit-queue@webkit.org's avatar
      Adding gamepad support · 41c50b88
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=69451
      
      Source/WebCore:
      
      Patch by Scott Graham <scottmg@chromium.org> on 2011-11-23
      Reviewed by Darin Fisher.
      
      Plumb gamepad data access through platform.
      
      Test: gamepad/gamepad-polling-access.html
      
      * WebCore.gypi:
      * page/Navigator.cpp:
      (WebCore::Navigator::webkitGamepads):
      * page/Navigator.h:
      * platform/Gamepads.h: Added.
      * platform/chromium/GamepadsChromium.cpp: Added.
      (WebCore::sampleGamepads):
      * platform/chromium/PlatformSupport.h:
      
      Source/WebKit/chromium:
      
      Add implementation of sampleGamepads in Chromium platform. Retrieves
      gamepad data from Chromium port and converts to DOM format, i.e.
      GamepadList.
      
      Patch by Scott Graham <scottmg@chromium.org> on 2011-11-23
      Reviewed by Darin Fisher.
      
      * src/PlatformSupport.cpp:
      (WebCore::PlatformSupport::sampleGamepads):
      
      Tools:
      
      Patch by Scott Graham <scottmg@chromium.org> on 2011-11-23
      Reviewed by Darin Fisher.
      
      Add a 'gamepadController' to Chromium DRT. Allows for setting of mock
      gamepad data that will be retrieved when JS code pulls via API access.
      
      * DumpRenderTree/DumpRenderTree.gypi:
      * DumpRenderTree/chromium/GamepadController.cpp: Added.
      (GamepadController::GamepadController):
      (GamepadController::bindToJavascript):
      (GamepadController::reset):
      (GamepadController::connect):
      (GamepadController::disconnect):
      (GamepadController::setId):
      (GamepadController::setButtonCount):
      (GamepadController::setButtonData):
      (GamepadController::setAxisCount):
      (GamepadController::setAxisData):
      (GamepadController::fallbackCallback):
      * DumpRenderTree/chromium/GamepadController.h: Added.
      * DumpRenderTree/chromium/TestShell.cpp:
      (TestShell::TestShell):
      (TestShell::resetTestController):
      (TestShell::bindJSObjectsToWindow):
      * DumpRenderTree/chromium/TestShell.h:
      (TestShell::gamepadController):
      
      LayoutTests:
      
      Patch by Scott Graham <scottmg@chromium.org> on 2011-11-23
      Reviewed by Darin Fisher.
      
      * fast/dom/script-tests/prototype-inheritance.js: Exclude
      gamepadController from enumeration.
      * gamepad/gamepad-polling-access-expected.txt: Added.
      * gamepad/gamepad-polling-access.html: Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@101065 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      41c50b88
  17. 19 Nov, 2011 2 commits
    • commit-queue@webkit.org's avatar
      Move gamepad to Modules/ (+ some cleanup) · 963ac560
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=72785
      
      Patch by Scott Graham <scottmg@chromium.org> on 2011-11-19
      Reviewed by Adam Barth.
      
      Source/WebCore:
      
      Move main files from page/ to Modules/gamepad/. #include guard the
      gamepad header inclusions in Navigator.cpp to avoid including for
      ports that do not enable GAMEPAD.
      
      * Modules/gamepad/Gamepad.cpp: Renamed from Source/WebCore/page/Gamepad.cpp.
      (WebCore::Gamepad::Gamepad):
      (WebCore::Gamepad::axes):
      (WebCore::Gamepad::buttons):
      (WebCore::Gamepad::~Gamepad):
      * Modules/gamepad/Gamepad.h: Renamed from Source/WebCore/page/Gamepad.h.
      * Modules/gamepad/Gamepad.idl: Renamed from Source/WebCore/page/Gamepad.idl.
      * Modules/gamepad/GamepadList.cpp: Renamed from Source/WebCore/page/GamepadList.cpp.
      (WebCore::GamepadList::~GamepadList):
      (WebCore::GamepadList::set):
      (WebCore::GamepadList::length):
      (WebCore::GamepadList::item):
      * Modules/gamepad/GamepadList.h: Renamed from Source/WebCore/page/GamepadList.h.
      (WebCore::GamepadList::create):
      (WebCore::GamepadList::GamepadList):
      * Modules/gamepad/GamepadList.idl: Renamed from Source/WebCore/page/GamepadList.idl.
      * WebCore.gyp/WebCore.gyp:
      * WebCore.gypi:
      * page/Navigator.cpp:
      
      LayoutTests:
      
      Use standard pre/post js test harness rather than custom one.
      
      * gamepad/gamepad-api-expected.txt:
      * gamepad/gamepad-api.html:
      * gamepad/gamepad-test.js: Removed.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@100860 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      963ac560
    • commit-queue@webkit.org's avatar
      IDL changes for gamepad support · 0ef17682
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=71753
      
      Patch by Scott Graham <scottmg@chromium.org> on 2011-11-18
      Reviewed by Adam Barth.
      
      Source/WebCore:
      
      IDL changes and associated plumbing to expose list of gamepad objects
      on navigator object (per current spec). Full patch is
      https://bugs.webkit.org/show_bug.cgi?id=69451. Only basic existence
      test until more plumbing in future patches.
      
      Test: gamepad/gamepad-api.html
      
      * WebCore.gypi:
      * bindings/generic/RuntimeEnabledFeatures.h:
      (WebCore::RuntimeEnabledFeatures::setWebkitGamepadsEnabled):
      (WebCore::RuntimeEnabledFeatures::webkitGamepadsEnabled):
      * page/Gamepad.cpp: Added.
      (WebCore::Gamepad::Gamepad):
      (WebCore::Gamepad::axes):
      (WebCore::Gamepad::buttons):
      (WebCore::Gamepad::~Gamepad):
      * page/Gamepad.h: Added.
      * page/Gamepad.idl: Added.
      * page/GamepadList.cpp: Added.
      (WebCore::GamepadList::~GamepadList):
      (WebCore::GamepadList::set):
      (WebCore::GamepadList::length):
      (WebCore::GamepadList::item):
      * page/GamepadList.h: Added.
      (WebCore::GamepadList::create):
      (WebCore::GamepadList::GamepadList):
      * page/GamepadList.idl: Added.
      * page/Navigator.cpp:
      (WebCore::Navigator::webkitGamepads):
      * page/Navigator.h:
      * page/Navigator.idl:
      
      Source/WebKit/chromium:
      
      Update to use vendor-prefixed enable.
      
      * src/WebRuntimeFeatures.cpp:
      (WebKit::WebRuntimeFeatures::enableGamepad):
      (WebKit::WebRuntimeFeatures::isGamepadEnabled):
      
      Tools:
      
      Runtime enable gamepad in chromium test shell.
      
      * DumpRenderTree/chromium/TestShell.cpp:
      (TestShell::TestShell):
      
      LayoutTests:
      
      Add basic api existence test.
      
      * gamepad/gamepad-api-expected.txt: Added.
      * gamepad/gamepad-api.html: Added.
      * gamepad/gamepad-test.js: Added.
      (logConsole):
      (testExpected):
      (reportExpected):
      (waitForEventAndEnd):
      (waitForEvent._eventCallback):
      (waitForEvent):
      (waitForEventAndTest._eventCallback):
      (waitForEventAndTest):
      (waitForEventTestAndEnd):
      (endTest):
      (logResult):
      (consoleWrite):
      * platform/chromium/fast/dom/navigator-detached-no-crash-expected.txt:
      * platform/efl/Skipped:
      * platform/gtk/Skipped:
      * platform/mac/Skipped:
      * platform/qt/Skipped:
      * platform/win/Skipped:
      * platform/wincairo/Skipped:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@100833 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0ef17682
  18. 17 Nov, 2011 1 commit
    • commit-queue@webkit.org's avatar
      Use a simple page client for user consent in getUserMedia() · fe2740d3
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=70897
      
      Patch by Adam Bergkvist <adam.bergkvist@ericsson.com> on 2011-11-16
      Reviewed by Adam Barth.
      
      This is one in a series of patches that update the MediaStream feature
      to use WebCore platform interfaces.
      
      Covered by existing tests.
      
      * GNUmakefile.list.am:
      * WebCore.gypi:
      * mediastream/MediaStreamClient.h: Removed.
      * mediastream/MediaStreamController.cpp: Removed.
      * mediastream/MediaStreamController.h: Removed.
      * mediastream/MediaStreamFrameController.cpp: Removed.
      * mediastream/MediaStreamFrameController.h: Removed.
      * mediastream/UserMediaClient.h: Added.
      (WebCore::UserMediaClient::~UserMediaClient):
      * mediastream/UserMediaRequest.cpp: Added.
      (WebCore::UserMediaRequest::create):
      (WebCore::UserMediaRequest::UserMediaRequest):
      (WebCore::UserMediaRequest::~UserMediaRequest):
      (WebCore::UserMediaRequest::start):
      (WebCore::UserMediaRequest::mediaStreamSourcesQueryCompleted):
      (WebCore::UserMediaRequest::succeed):
      (WebCore::UserMediaRequest::fail):
      (WebCore::UserMediaRequest::contextDestroyed):
      (WebCore::UserMediaRequest::parseOptions):
      * mediastream/UserMediaRequest.h: Added.
      (WebCore::UserMediaRequest::audio):
      (WebCore::UserMediaRequest::video):
      (WebCore::UserMediaRequest::cameraPreferenceUser):
      (WebCore::UserMediaRequest::cameraPreferenceEnvironment):
      (WebCore::UserMediaRequest::successCallback):
      (WebCore::UserMediaRequest::errorCallback):
      * page/CallbackTask.h: Removed.
      * page/Frame.cpp:
      (WebCore::Frame::Frame):
      (WebCore::Frame::~Frame):
      (WebCore::Frame::pageDestroyed):
      (WebCore::Frame::transferChildFrameToNewDocument):
      * page/Frame.h:
      * page/Navigator.cpp:
      (WebCore::Navigator::webkitGetUserMedia):
      * page/NavigatorUserMediaErrorCallback.h:
      * page/Page.cpp:
      (WebCore::Page::Page):
      (WebCore::Page::~Page):
      (WebCore::Page::PageClients::PageClients):
      * page/Page.h:
      (WebCore::Page::userMediaClient):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@100555 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      fe2740d3
  19. 15 Nov, 2011 1 commit
  20. 14 Nov, 2011 1 commit
    • scheib@chromium.org's avatar
      Mouse Lock: Renaming to 'Pointer Lock': ENABLE Flags · c3dca465
      scheib@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=72286
      
      Reviewed by Adam Barth.
      
      Source/JavaScriptCore:
      
      * wtf/Platform.h:
      
      Source/WebCore:
      
      * bindings/generic/RuntimeEnabledFeatures.cpp:
      * bindings/generic/RuntimeEnabledFeatures.h:
      * dom/MouseEvent.idl:
      * dom/MouseRelatedEvent.h:
      * page/MouseLockable.cpp:
      * page/MouseLockable.h:
      * page/MouseLockable.idl:
      * page/Navigator.cpp:
      * page/Navigator.h:
      * page/Navigator.idl:
      * page/Settings.cpp:
      (WebCore::Settings::Settings):
      * page/Settings.h:
      
      Source/WebKit/chromium:
      
      * features.gypi:
      * src/WebRuntimeFeatures.cpp:
      (WebKit::WebRuntimeFeatures::enableMouseLockAPI):
      (WebKit::WebRuntimeFeatures::isMouseLockAPIEnabled):
      * src/WebSettingsImpl.cpp:
      (WebKit::WebSettingsImpl::setMouseLockEnabled):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@100180 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c3dca465
  21. 13 Nov, 2011 1 commit
    • scheib@chromium.org's avatar
      Mouse Lock Navigator IDL · c8b6df78
      scheib@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=72150
      
      Reviewed by Dimitri Glazkov.
      
      Tests require mocking (similar to geolocation) that will be built after this.
      
      * WebCore.gypi:
      * bindings/generic/RuntimeEnabledFeatures.h:
      (WebCore::RuntimeEnabledFeatures::webkitPointerEnabled):
      * page/MouseLockable.cpp: Added.
      (WebCore::MouseLockable::MouseLockable):
      (WebCore::MouseLockable::~MouseLockable):
      (WebCore::MouseLockable::webkitLock):
      (WebCore::MouseLockable::webkitUnlock):
      (WebCore::MouseLockable::webkitIsLocked):
      * page/MouseLockable.h: Added.
      (WebCore::MouseLockable::create):
      * page/MouseLockable.idl: Added.
      * page/Navigator.cpp:
      (WebCore::Navigator::webkitPointer):
      * page/Navigator.h:
      * page/Navigator.idl:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@100091 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c8b6df78
  22. 11 Nov, 2011 3 commits
    • adamk@chromium.org's avatar
      Remove no-op StorageNamespace::unlock method · 89bf0b74
      adamk@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=72181
      
      Reviewed by Darin Adler.
      
      Source/WebCore:
      
      The method was meant to support the localStorage mutex,
      but the approach of using a mutex for localStorage has never been
      implemented (and almost certainly won't be). Even if it were implemented,
      it's not being called at the right time, due to bugs in the V8 bindings'
      use of V8Proxy (see http://webkit.org/b/72063 for details).
      
      If, in the future, some replacement for a mutex is used to synchronize
      localStorage access, it can easily be re-added to the (hopefully
      fixed-by-then) replacement for V8Proxy::didLeaveScriptContext.
      
      * bindings/v8/V8Proxy.cpp:
      (WebCore::V8Proxy::didLeaveScriptContext): Stop calling unlock().
      * page/Navigator.cpp:
      (WebCore::Navigator::getStorageUpdates): Remove implementation (a call to unlock), but leave code as it's exposed to the platform.
      * page/Navigator.idl: Added a FIXME to remove getStorageUpdates from the platform.
      * storage/StorageNamespace.h:
      * storage/StorageNamespaceImpl.cpp:
      * storage/StorageNamespaceImpl.h:
      
      Source/WebKit/chromium:
      
      * src/StorageNamespaceProxy.cpp:
      * src/StorageNamespaceProxy.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@100041 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      89bf0b74
    • scheib@chromium.org's avatar
      Unreviewed, rolling out r99994. · c86a3938
      scheib@chromium.org authored
      http://trac.webkit.org/changeset/99994
      https://bugs.webkit.org/show_bug.cgi?id=72150
      
      Broke chromium windows build
      
      * WebCore.gypi:
      * bindings/generic/RuntimeEnabledFeatures.h:
      (WebCore::RuntimeEnabledFeatures::webkitLockMouseEnabled):
      (WebCore::RuntimeEnabledFeatures::webkitUnlockMouseEnabled):
      (WebCore::RuntimeEnabledFeatures::webkitMouseLockedEnabled):
      * page/MouseLockable.cpp: Removed.
      * page/MouseLockable.h: Removed.
      * page/MouseLockable.idl: Removed.
      * page/Navigator.cpp:
      * page/Navigator.h:
      * page/Navigator.idl:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@100004 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c86a3938
    • scheib@chromium.org's avatar
      Mouse Lock Navigator IDL · 0b5a5231
      scheib@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=72150
      
      Reviewed by Dimitri Glazkov.
      
      Tests require mocking (similar to geolocation) that will be built after this.
      
      * WebCore.gypi:
      * bindings/generic/RuntimeEnabledFeatures.h:
      (WebCore::RuntimeEnabledFeatures::webkitPointerEnabled):
      * page/MouseLockable.cpp: Added.
      (WebCore::MouseLockable::MouseLockable):
      (WebCore::MouseLockable::~MouseLockable):
      (WebCore::MouseLockable::webkitLock):
      (WebCore::MouseLockable::webkitUnlock):
      (WebCore::MouseLockable::webkitIsLocked):
      * page/MouseLockable.h: Added.
      (WebCore::MouseLockable::create):
      * page/MouseLockable.idl: Added.
      * page/Navigator.cpp:
      (WebCore::Navigator::webkitPointer):
      * page/Navigator.h:
      * page/Navigator.idl:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@99994 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0b5a5231
  23. 22 Oct, 2011 1 commit
    • commit-queue@webkit.org's avatar
      Move all MediaStream and PeerConnection related non-platform files to WebCore/mediastream · 1674d3ff
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=70233
      
      Patch by Adam Bergkvist <adam.bergkvist@ericsson.com> on 2011-10-22
      Reviewed by Adam Barth.
      
      Removed affected files from build systems that don't have a MEDIA_STREAM build flag.
      
      No new tests since we're just moving files.
      
      * CMakeLists.txt:
      * CodeGenerators.pri:
      * DerivedSources.cpp:
      * DerivedSources.make:
      * GNUmakefile.am:
      * GNUmakefile.list.am:
      * UseJSC.cmake:
      * WebCore.gyp/WebCore.gyp:
      * WebCore.gypi:
      * WebCore.pro:
      * WebCore.vcproj/WebCore.vcproj:
      * WebCore.xcodeproj/project.pbxproj:
      * bindings/js/JSBindingsAllInOne.cpp:
      * dom/DOMAllInOne.cpp:
      * dom/DispatchTask.h: Removed unused file.
      * dom/ScriptExecutionContext.cpp:
      * mediastream/LocalMediaStream.cpp: Renamed from Source/WebCore/dom/LocalMediaStream.cpp.
      (WebCore::LocalMediaStream::create):
      (WebCore::LocalMediaStream::LocalMediaStream):
      (WebCore::LocalMediaStream::stop):
      (WebCore::LocalMediaStream::stopTimerFired):
      (WebCore::LocalMediaStream::~LocalMediaStream):
      (WebCore::LocalMediaStream::toLocalMediaStream):
      * mediastream/LocalMediaStream.h: Renamed from Source/WebCore/dom/LocalMediaStream.h.
      * mediastream/LocalMediaStream.idl: Renamed from Source/WebCore/dom/LocalMediaStream.idl.
      * mediastream/MediaStream.cpp: Renamed from Source/WebCore/dom/MediaStream.cpp.
      (WebCore::MediaStream::create):
      (WebCore::MediaStream::MediaStream):
      (WebCore::MediaStream::~MediaStream):
      (WebCore::MediaStream::readyState):
      (WebCore::MediaStream::toMediaStream):
      (WebCore::MediaStream::streamEnded):
      (WebCore::MediaStream::scriptExecutionContext):
      (WebCore::MediaStream::eventTargetData):
      (WebCore::MediaStream::ensureEventTargetData):
      * mediastream/MediaStream.h: Renamed from Source/WebCore/dom/MediaStream.h.
      (WebCore::MediaStream::label):
      (WebCore::MediaStream::tracks):
      (WebCore::MediaStream::descriptor):
      (WebCore::MediaStream::refEventTarget):
      (WebCore::MediaStream::derefEventTarget):
      * mediastream/MediaStream.idl: Renamed from Source/WebCore/dom/MediaStream.idl.
      * mediastream/MediaStreamClient.h: Renamed from Source/WebCore/page/MediaStreamClient.h.
      (WebCore::MediaStreamClient::~MediaStreamClient):
      * mediastream/MediaStreamController.cpp: Renamed from Source/WebCore/page/MediaStreamController.cpp.
      (WebCore::MediaStreamController::Request::Request):
      (WebCore::MediaStreamController::Request::localId):
      (WebCore::MediaStreamController::Request::frameController):
      (WebCore::MediaStreamController::MediaStreamController):
      (WebCore::MediaStreamController::~MediaStreamController):
      (WebCore::MediaStreamController::isClientAvailable):
      (WebCore::MediaStreamController::unregisterFrameController):
      (WebCore::MediaStreamController::registerRequest):
      (WebCore::MediaStreamController::generateStream):
      (WebCore::MediaStreamController::streamGenerated):
      (WebCore::MediaStreamController::streamGenerationFailed):
      * mediastream/MediaStreamController.h: Renamed from Source/WebCore/page/MediaStreamController.h.
      * mediastream/MediaStreamEvent.cpp: Renamed from Source/WebCore/p2p/MediaStreamEvent.cpp.
      (WebCore::MediaStreamEvent::create):
      (WebCore::MediaStreamEvent::MediaStreamEvent):
      (WebCore::MediaStreamEvent::~MediaStreamEvent):
      (WebCore::MediaStreamEvent::initMediaStreamEvent):
      (WebCore::MediaStreamEvent::stream):
      * mediastream/MediaStreamEvent.h: Renamed from Source/WebCore/p2p/MediaStreamEvent.h.
      (WebCore::MediaStreamEvent::isMediaStreamEvent):
      * mediastream/MediaStreamEvent.idl: Renamed from Source/WebCore/p2p/MediaStreamEvent.idl.
      * mediastream/MediaStreamFrameController.cpp: Renamed from Source/WebCore/page/MediaStreamFrameController.cpp.
      (WebCore::MediaStreamFrameController::Request::~Request):
      (WebCore::MediaStreamFrameController::Request::scriptExecutionContext):
      (WebCore::MediaStreamFrameController::Request::isGenerateStreamRequest):
      (WebCore::MediaStreamFrameController::Request::Request):
      (WebCore::MediaStreamFrameController::GenerateStreamRequest::create):
      (WebCore::MediaStreamFrameController::GenerateStreamRequest::~GenerateStreamRequest):
      (WebCore::MediaStreamFrameController::GenerateStreamRequest::isGenerateStreamRequest):
      (WebCore::MediaStreamFrameController::GenerateStreamRequest::abort):
      (WebCore::MediaStreamFrameController::GenerateStreamRequest::successCallback):
      (WebCore::MediaStreamFrameController::GenerateStreamRequest::errorCallback):
      (WebCore::MediaStreamFrameController::GenerateStreamRequest::GenerateStreamRequest):
      (WebCore::MediaStreamFrameController::RequestMap::abort):
      (WebCore::MediaStreamFrameController::RequestMap::abortAll):
      (WebCore::MediaStreamFrameController::MediaStreamFrameController):
      (WebCore::MediaStreamFrameController::~MediaStreamFrameController):
      (WebCore::MediaStreamFrameController::securityOrigin):
      (WebCore::MediaStreamFrameController::scriptExecutionContext):
      (WebCore::MediaStreamFrameController::pageController):
      (WebCore::MediaStreamFrameController::enterDetachedState):
      (WebCore::MediaStreamFrameController::isClientAvailable):
      (WebCore::MediaStreamFrameController::disconnectPage):
      (WebCore::MediaStreamFrameController::disconnectFrame):
      (WebCore::MediaStreamFrameController::transferToNewPage):
      (WebCore::MediaStreamFrameController::parseGenerateStreamOptions):
      (WebCore::MediaStreamFrameController::generateStream):
      (WebCore::MediaStreamFrameController::streamGenerated):
      (WebCore::MediaStreamFrameController::streamGenerationFailed):
      * mediastream/MediaStreamFrameController.h: Renamed from Source/WebCore/page/MediaStreamFrameController.h.
      (WebCore::MediaStreamFrameController::IdGenerator::IdGenerator):
      (WebCore::MediaStreamFrameController::IdGenerator::getNextId):
      * mediastream/MediaStreamList.cpp: Renamed from Source/WebCore/dom/MediaStreamList.cpp.
      (WebCore::MediaStreamList::create):
      (WebCore::MediaStreamList::MediaStreamList):
      (WebCore::MediaStreamList::~MediaStreamList):
      (WebCore::MediaStreamList::length):
      (WebCore::MediaStreamList::item):
      (WebCore::MediaStreamList::append):
      (WebCore::MediaStreamList::remove):
      (WebCore::MediaStreamList::contains):
      * mediastream/MediaStreamList.h: Renamed from Source/WebCore/dom/MediaStreamList.h.
      * mediastream/MediaStreamList.idl: Renamed from Source/WebCore/dom/MediaStreamList.idl.
      * mediastream/MediaStreamRegistry.cpp: Renamed from Source/WebCore/platform/MediaStreamRegistry.cpp.
      (WebCore::MediaStreamRegistry::registry):
      (WebCore::MediaStreamRegistry::registerMediaStreamURL):
      (WebCore::MediaStreamRegistry::unregisterMediaStreamURL):
      (WebCore::MediaStreamRegistry::mediaStream):
      * mediastream/MediaStreamRegistry.h: Renamed from Source/WebCore/platform/MediaStreamRegistry.h.
      * mediastream/MediaStreamTrack.cpp: Renamed from Source/WebCore/dom/MediaStreamTrack.cpp.
      (WebCore::MediaStreamTrack::create):
      (WebCore::MediaStreamTrack::MediaStreamTrack):
      (WebCore::MediaStreamTrack::~MediaStreamTrack):
      (WebCore::MediaStreamTrack::kind):
      (WebCore::MediaStreamTrack::label):
      (WebCore::MediaStreamTrack::enabled):
      (WebCore::MediaStreamTrack::setEnabled):
      * mediastream/MediaStreamTrack.h: Renamed from Source/WebCore/dom/MediaStreamTrack.h.
      * mediastream/MediaStreamTrack.idl: Renamed from Source/WebCore/dom/MediaStreamTrack.idl.
      * mediastream/MediaStreamTrackList.cpp: Renamed from Source/WebCore/dom/MediaStreamTrackList.cpp.
      (WebCore::MediaStreamTrackList::create):
      (WebCore::MediaStreamTrackList::MediaStreamTrackList):
      (WebCore::MediaStreamTrackList::~MediaStreamTrackList):
      (WebCore::MediaStreamTrackList::length):
      (WebCore::MediaStreamTrackList::item):
      * mediastream/MediaStreamTrackList.h: Renamed from Source/WebCore/dom/MediaStreamTrackList.h.
      * mediastream/MediaStreamTrackList.idl: Renamed from Source/WebCore/dom/MediaStreamTrackList.idl.
      * mediastream/PeerConnection.cpp: Renamed from Source/WebCore/p2p/PeerConnection.cpp.
      (WebCore::PeerConnection::create):
      (WebCore::PeerConnection::PeerConnection):
      (WebCore::PeerConnection::~PeerConnection):
      (WebCore::PeerConnection::processSignalingMessage):
      (WebCore::PeerConnection::readyState):
      (WebCore::PeerConnection::send):
      (WebCore::PeerConnection::addStream):
      (WebCore::PeerConnection::removeStream):
      (WebCore::PeerConnection::localStreams):
      (WebCore::PeerConnection::remoteStreams):
      (WebCore::PeerConnection::close):
      (WebCore::PeerConnection::iceProcessingCompleted):
      (WebCore::PeerConnection::sdpGenerated):
      (WebCore::PeerConnection::dataStreamMessageReceived):
      (WebCore::PeerConnection::remoteStreamAdded):
      (WebCore::PeerConnection::remoteStreamRemoved):
      (WebCore::PeerConnection::toPeerConnection):
      (WebCore::PeerConnection::scriptExecutionContext):
      (WebCore::PeerConnection::stop):
      (WebCore::PeerConnection::eventTargetData):
      (WebCore::PeerConnection::ensureEventTargetData):
      (WebCore::PeerConnection::scheduleInitialNegotiation):
      (WebCore::PeerConnection::initialNegotiationTimerFired):
      (WebCore::PeerConnection::ensureStreamChangeScheduled):
      (WebCore::PeerConnection::streamChangeTimerFired):
      (WebCore::PeerConnection::scheduleReadyStateChange):
      (WebCore::PeerConnection::readyStateChangeTimerFired):
      (WebCore::PeerConnection::changeReadyState):
      * mediastream/PeerConnection.h: Renamed from Source/WebCore/p2p/PeerConnection.h.
      (WebCore::PeerConnection::refEventTarget):
      (WebCore::PeerConnection::derefEventTarget):
      * mediastream/PeerConnection.idl: Renamed from Source/WebCore/p2p/PeerConnection.idl.
      * mediastream/SignalingCallback.h: Renamed from Source/WebCore/p2p/SignalingCallback.h.
      (WebCore::SignalingCallback::~SignalingCallback):
      * mediastream/SignalingCallback.idl: Renamed from Source/WebCore/p2p/SignalingCallback.idl.
      * page/Frame.cpp:
      * page/Navigator.cpp:
      * page/Page.cpp:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@98196 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      1674d3ff
  24. 16 Oct, 2011 1 commit
    • abarth@webkit.org's avatar
      Always enable ENABLE(DOM_STORAGE) · 2eb9f99c
      abarth@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=70189
      
      Reviewed by Eric Seidel.
      
      .:
      
      * Source/cmake/OptionsEfl.cmake:
      * Source/cmake/OptionsWinCE.cmake:
      * Source/cmakeconfig.h.cmake:
      * configure.ac:
      
      Source/JavaScriptCore:
      
      * Configurations/FeatureDefines.xcconfig:
      
      Source/WebCore:
      
      As discussed on webkit-dev, we are reducing the complexity of WebKit by
      removing unnecessary configuration options.  DOMStorage is not a core
      part of the web platform.  It should always be enabled.
      
      * CMakeLists.txt:
      * Configurations/FeatureDefines.xcconfig:
      * GNUmakefile.am:
      * GNUmakefile.list.am:
      * UseJSC.cmake:
      * WebCore.exp.in:
      * WebCore.pro:
      * bindings/js/JSEventCustom.cpp:
      * bindings/js/JSInjectedScriptHostCustom.cpp:
      * bindings/js/JSStorageCustom.cpp:
      * bindings/v8/custom/V8EventCustom.cpp:
      (WebCore::toV8):
      * bindings/v8/custom/V8InjectedScriptHostCustom.cpp:
      (WebCore::V8InjectedScriptHost::storageIdCallback):
      * bindings/v8/custom/V8StorageCustom.cpp:
      * dom/Document.cpp:
      (WebCore::Document::createEvent):
      * dom/Event.cpp:
      (WebCore::Event::isStorageEvent):
      * dom/Event.h:
      * dom/Node.cpp:
      * features.pri:
      * inspector/InjectedScriptHost.cpp:
      (WebCore::InjectedScriptHost::InjectedScriptHost):
      (WebCore::InjectedScriptHost::disconnect):
      (WebCore::InjectedScriptHost::storageIdImpl):
      * inspector/InjectedScriptHost.h:
      (WebCore::InjectedScriptHost::init):
      * inspector/InspectorController.cpp:
      (WebCore::InspectorController::InspectorController):
      (WebCore::InspectorController::connectFrontend):
      (WebCore::InspectorController::disconnectFrontend):
      (WebCore::InspectorController::restoreInspectorStateFromCookie):
      * inspector/InspectorController.h:
      * inspector/InspectorDOMStorageAgent.cpp:
      * inspector/InspectorDOMStorageResource.cpp:
      * inspector/InspectorDOMStorageResource.h:
      * inspector/InspectorInstrumentation.cpp:
      (WebCore::InspectorInstrumentation::didCommitLoadImpl):
      (WebCore::InspectorInstrumentation::didUseDOMStorageImpl):
      * inspector/InspectorInstrumentation.h:
      (WebCore::InspectorInstrumentation::didUseDOMStorage):
      * inspector/InstrumentingAgents.h:
      (WebCore::InstrumentingAgents::InstrumentingAgents):
      * inspector/WorkerInspectorController.cpp:
      (WebCore::WorkerInspectorController::WorkerInspectorController):
      (WebCore::WorkerInspectorController::connectFrontend):
      * inspector/generate-inspector-idl:
      * page/Chrome.cpp:
      * page/DOMWindow.cpp:
      (WebCore::DOMWindow::~DOMWindow):
      (WebCore::DOMWindow::clear):
      (WebCore::DOMWindow::localStorage):
      * page/DOMWindow.h:
      * page/DOMWindow.idl:
      * page/Navigator.cpp:
      (WebCore::Navigator::getStorageUpdates):
      * page/Navigator.h:
      * page/Navigator.idl:
      * page/Page.cpp:
      * page/Page.h:
      * page/PageGroup.cpp:
      (WebCore::PageGroup::closeLocalStorage):
      * page/PageGroup.h:
      * page/Settings.cpp:
      (WebCore::Settings::Settings):
      (WebCore::Settings::setSessionStorageQuota):
      * page/Settings.h:
      (WebCore::Settings::sessionStorageQuota):
      * storage/LocalStorageTask.cpp:
      * storage/LocalStorageTask.h:
      * storage/LocalStorageThread.cpp:
      * storage/LocalStorageThread.h:
      * storage/Storage.cpp:
      * storage/Storage.h:
      * storage/Storage.idl:
      * storage/StorageArea.h:
      * storage/StorageAreaImpl.cpp:
      * storage/StorageAreaImpl.h:
      * storage/StorageAreaSync.cpp:
      (WebCore::StorageAreaSync::scheduleSync):
      * storage/StorageAreaSync.h:
      * storage/StorageEvent.cpp:
      * storage/StorageEvent.h:
      * storage/StorageEvent.idl:
      * storage/StorageEventDispatcher.cpp:
      * storage/StorageEventDispatcher.h:
      * storage/StorageMap.cpp:
      * storage/StorageMap.h:
      * storage/StorageNamespace.cpp:
      * storage/StorageNamespace.h:
      * storage/StorageNamespaceImpl.cpp:
      * storage/StorageNamespaceImpl.h:
      * storage/StorageSyncManager.cpp:
      (WebCore::StorageSyncManager::scheduleDeleteEmptyDatabase):
      * storage/StorageSyncManager.h:
      * storage/StorageTracker.cpp:
      * storage/StorageTracker.h:
      
      Source/WebKit/chromium:
      
      * features.gypi:
      * src/StorageAreaProxy.cpp:
      * src/StorageAreaProxy.h:
      * src/StorageEventDispatcherChromium.cpp:
      * src/StorageEventDispatcherImpl.cpp:
      * src/StorageEventDispatcherImpl.h:
      * src/StorageNamespaceProxy.cpp:
      * src/StorageNamespaceProxy.h:
      * src/WebRuntimeFeatures.cpp:
      (WebKit::WebRuntimeFeatures::enableLocalStorage):
      (WebKit::WebRuntimeFeatures::isLocalStorageEnabled):
      (WebKit::WebRuntimeFeatures::enableSessionStorage):
      (WebKit::WebRuntimeFeatures::isSessionStorageEnabled):
      * src/WebStorageAreaImpl.cpp:
      * src/WebStorageAreaImpl.h:
      * src/WebStorageEventDispatcherImpl.cpp:
      * src/WebStorageEventDispatcherImpl.h:
      * src/WebStorageNamespaceImpl.cpp:
      * src/WebStorageNamespaceImpl.h:
      
      Source/WebKit/mac:
      
      * Configurations/FeatureDefines.xcconfig:
      * Storage/WebStorageManager.mm:
      * Storage/WebStorageManagerInternal.h:
      * Storage/WebStorageTrackerClient.h:
      * Storage/WebStorageTrackerClient.mm:
      (WebStorageTrackerClient::dispatchDidModifyOrigin):
      * WebView/WebView.mm:
      (-[WebView _commonInitializationWithFrameName:groupName:]):
      
      Source/WebKit2:
      
      * Configurations/FeatureDefines.xcconfig:
      * WebProcess/WebPage/WebPage.cpp:
      (WebKit::WebPage::updatePreferences):
      * WebProcess/WebProcess.cpp:
      (WebKit::WebProcess::initializeWebProcess):
      
      Tools:
      
      * Scripts/build-webkit:
      * waf/build/settings.py:
      
      WebKitLibraries:
      
      * win/tools/vsprops/FeatureDefines.vsprops:
      * win/tools/vsprops/FeatureDefinesCairo.vsprops:
      
      LayoutTests:
      
      * fast/events/event-creation.html:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@97574 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2eb9f99c
  25. 30 Aug, 2011 1 commit
  26. 31 May, 2011 1 commit
    • koz@chromium.org's avatar
      2011-05-30 James Kozianski <koz@chromium.org> · 71edcee9
      koz@chromium.org authored
              Reviewed by Kent Tamura.
      
              [Chromium] Make isValidProtocol() accept protocols with '+'.
              https://bugs.webkit.org/show_bug.cgi?id=61759
      
              * platform/chromium/fast/dom/navigator-detached-no-crash-expected.txt: Added.
              * platform/chromium/fast/dom/register-protocol-handler-expected.txt: Added.
      2011-05-30  James Kozianski  <koz@chromium.org>
      
              Reviewed by Kent Tamura.
      
              [Chromium] Make isValidProtocol() accept protocols with '+'.
              https://bugs.webkit.org/show_bug.cgi?id=61759
      
              Also, detect syntax errors before security errors; some syntax errors
              will also trigger a security error, but it's more helpful to the
              programmer to know if they have a syntax error, which are well-defined
              in the spec, rather than a security error, which aren't.
      
              * page/Navigator.cpp:
              (WebCore::Navigator::registerProtocolHandler):
              Detect syntax errors before security errors.
              * platform/KURLGoogle.cpp:
              (WebCore::isSchemeChar):
              Include '+' in the list of valid characters.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@87713 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      71edcee9
  27. 27 May, 2011 1 commit
  28. 16 May, 2011 1 commit
    • commit-queue@webkit.org's avatar
      2011-05-16 Leandro Gracia Gil <leandrogracia@chromium.org> · f97df33a
      commit-queue@webkit.org authored
              Reviewed by Tony Gentilcore.
      
              Media Stream API: add local stream requests.
              https://bugs.webkit.org/show_bug.cgi?id=60177
      
              Re-enable the argument-types test as the navigator.getUserMedia options
              are now being parsed and raise the appropriate exceptions.
      
              * platform/chromium/test_expectations.txt:
      2011-05-16  Leandro Gracia Gil  <leandrogracia@chromium.org>
      
              Reviewed by Tony Gentilcore.
      
              Media Stream API: add local stream requests.
              https://bugs.webkit.org/show_bug.cgi?id=60177
      
              Add the code and messages for requesting the generation of local streams and getting the reply back.
      
              Tests for the Media Stream API will be provided by the bug 56587.
              One test is re-enabled with this patch.
      
              Test: fast/dom/MediaStream/argument-types.html
      
              * GNUmakefile.list.am:
              * WebCore.gypi:
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * page/CallbackTask.h: Added.
              (WebCore::CallbackTask1::create):
              (WebCore::CallbackTask1::performTask):
              (WebCore::CallbackTask1::Scheduler::scheduleCallback):
              (WebCore::CallbackTask1::CallbackTask1):
              * page/MediaStreamClient.h:
              * page/MediaStreamController.cpp:
              (WebCore::MediaStreamController::isClientAvailable):
              (WebCore::MediaStreamController::unregisterFrameController):
              (WebCore::MediaStreamController::registerRequest):
              (WebCore::MediaStreamController::registerStream):
              (WebCore::MediaStreamController::generateStream):
              (WebCore::MediaStreamController::streamGenerated):
              (WebCore::MediaStreamController::streamGenerationFailed):
              * page/MediaStreamController.h:
              * page/MediaStreamFrameController.cpp:
              (WebCore::MediaStreamFrameController::GenerateStreamRequest::GenerateStreamRequest):
              (WebCore::MediaStreamFrameController::GenerateStreamRequest::~GenerateStreamRequest):
              (WebCore::MediaStreamFrameController::GenerateStreamRequest::isGenerateStreamRequest):
              (WebCore::MediaStreamFrameController::GenerateStreamRequest::abort):
              (WebCore::MediaStreamFrameController::GenerateStreamRequest::successCallback):
              (WebCore::MediaStreamFrameController::GenerateStreamRequest::errorCallback):
              (WebCore::::unregisterAll):
              (WebCore::::detachEmbedder):
              (WebCore::MediaStreamFrameController::MediaStreamFrameController):
              (WebCore::MediaStreamFrameController::pageController):
              (WebCore::MediaStreamFrameController::unregister):
              (WebCore::MediaStreamFrameController::enterDetachedState):
              (WebCore::MediaStreamFrameController::isClientAvailable):
              (WebCore::MediaStreamFrameController::disconnectFrame):
              (WebCore::MediaStreamFrameController::parseGenerateStreamOptions):
              (WebCore::MediaStreamFrameController::generateStream):
              (WebCore::MediaStreamFrameController::streamGenerated):
              (WebCore::MediaStreamFrameController::streamGenerationFailed):
              * page/MediaStreamFrameController.h:
              (WebCore::MediaStreamFrameController::ClientBase::ClientBase):
              (WebCore::MediaStreamFrameController::ClientBase::~ClientBase):
              (WebCore::MediaStreamFrameController::ClientBase::mediaStreamFrameController):
              (WebCore::MediaStreamFrameController::ClientBase::clientId):
              (WebCore::MediaStreamFrameController::ClientBase::isStream):
              (WebCore::MediaStreamFrameController::ClientBase::isGeneratedStream):
              (WebCore::MediaStreamFrameController::ClientBase::detachEmbedder):
              (WebCore::MediaStreamFrameController::ClientBase::associateFrameController):
              (WebCore::MediaStreamFrameController::ClientBase::unregisterClient):
              (WebCore::MediaStreamFrameController::StreamClient::StreamClient):
              (WebCore::MediaStreamFrameController::StreamClient::~StreamClient):
              (WebCore::MediaStreamFrameController::StreamClient::isStream):
              (WebCore::MediaStreamFrameController::StreamClient::unregister):
              (WebCore::MediaStreamFrameController::IdGenerator::IdGenerator):
              (WebCore::MediaStreamFrameController::IdGenerator::getNextId):
              (WebCore::MediaStreamFrameController::ClientMapBase::ClientMapBase):
              * page/Navigator.cpp:
              (WebCore::Navigator::webkitGetUserMedia):
              * page/NavigatorUserMediaErrorCallback.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@86583 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f97df33a
  29. 09 May, 2011 1 commit
    • commit-queue@webkit.org's avatar
      2011-05-09 Leandro Gracia Gil <leandrogracia@chromium.org> · e9b1ccd8
      commit-queue@webkit.org authored
              Reviewed by Tony Gentilcore.
      
              Media Stream API: add exception raising to the getUserMedia method.
              https://bugs.webkit.org/show_bug.cgi?id=60387
      
              Update the expected results for the argument types after the lastest updates
              in the getUserMedia specification. The test has been disabled temporarily
              and will be re-enabled by 60177 since some exceptions are risen after parsing
              the provided options.
      
              * fast/dom/MediaStream/argument-types-expected.txt:
              * fast/dom/MediaStream/script-tests/argument-types.js:
              (ObjectThrowingException.prototype.toString):
              * platform/chromium/test_expectations.txt:
      2011-05-09  Leandro Gracia Gil  <leandrogracia@chromium.org>
      
              Reviewed by Tony Gentilcore.
      
              Media Stream API: add exception raising to the getUserMedia method.
              https://bugs.webkit.org/show_bug.cgi?id=60387
      
              Perform the required changes to support rising exceptions in the
              navigator.getUserMedia method. This is required by the latest changes in the spec:
              http://www.whatwg.org/specs/web-apps/current-work/multipage/dnd.html#dom-navigator-getusermedia
      
              Test: fast/dom/MediaStream/argument-types.html
      
              * bindings/js/JSNavigatorCustom.cpp:
              (WebCore::JSNavigator::webkitGetUserMedia):
              * bindings/v8/custom/V8NavigatorCustom.cpp:
              (WebCore::V8Navigator::webkitGetUserMediaCallback):
              * page/Navigator.cpp:
              (WebCore::Navigator::webkitGetUserMedia):
              * page/Navigator.h:
              * page/Navigator.idl:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@86055 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e9b1ccd8
  30. 27 Apr, 2011 1 commit
    • mihaip@chromium.org's avatar
      2011-04-27 Mihai Parparita <mihaip@chromium.org> · 3c16b0c1
      mihaip@chromium.org authored
              Reviewed by Eric Seidel.
      
              Frame.h shouldn't include Document.h
              https://bugs.webkit.org/show_bug.cgi?id=59560
      
              Frame can use a forward-declared Document if we move
              Frame::displayStringModifiedByEncoding's implementation out of the
              header.
                                      Size  #includes  Size * #includes
              Before: page/Frame.h:   0.746       653           487.138
                      dom/Document.h: 0.220      1306           287.320
      
              After:  page/Frame.h:   0.646       653           421.838
                      dom/Document.h: 0.220      1189           261.580
      
              * WebCore.exp.in:
              * bindings/ScriptControllerBase.cpp:
              * bindings/generic/BindingSecurityBase.cpp:
              * bindings/v8/V8Proxy.cpp:
              * bindings/v8/custom/V8XMLHttpRequestCustom.cpp:
              * dom/CharacterData.cpp:
              * dom/UserTypingGestureIndicator.cpp:
              * editing/chromium/SelectionControllerChromium.cpp:
              * inspector/InspectorDOMStorageResource.cpp:
              * inspector/InspectorInstrumentation.h:
              * loader/PingLoader.cpp:
              * loader/SubresourceLoader.cpp:
              * loader/appcache/DOMApplicationCache.cpp:
              * loader/cache/CachedResourceRequest.cpp:
              * page/Frame.cpp:
              (WebCore::Frame::displayStringModifiedByEncoding):
              * page/Frame.h:
              * page/Geolocation.cpp:
              * page/Location.cpp:
              * page/Navigator.cpp:
              * page/PageGroupLoadDeferrer.cpp:
              * page/PerformanceTiming.cpp:
              * xml/XSLTProcessorLibxslt.cpp:
      2011-04-27  Mihai Parparita  <mihaip@chromium.org>
      
              Reviewed by Eric Seidel.
      
              Frame.h shouldn't include Document.h
              https://bugs.webkit.org/show_bug.cgi?id=59560
      
              Add Document.h #includes for files that were relying on transitive
              #includes via Frame.h.
      
              * src/LocalFileSystemChromium.cpp:
              * src/StorageEventDispatcherImpl.cpp:
              * src/WebFrameImpl.h:
              * src/WebWorkerBase.cpp:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@85030 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3c16b0c1
  31. 20 Apr, 2011 1 commit
    • mihaip@chromium.org's avatar
      2011-04-19 Mihai Parparita <mihaip@chromium.org> · a941ec7f
      mihaip@chromium.org authored
              Reviewed by Adam Barth.
      
              ScriptController.h is included in too many places
              https://bugs.webkit.org/show_bug.cgi?id=58963
      
              Remove ScriptController.h #includes from a bunch of .cpp files where it
              doesn't appear to be necessary.
      
              * bindings/js/JSCustomPositionCallback.cpp:
              * bindings/js/JSCustomPositionErrorCallback.cpp:
              * bindings/js/JSCustomVoidCallback.cpp:
              * bindings/js/JSCustomXPathNSResolver.cpp:
              * bindings/js/JSDOMWindowBase.cpp:
              * bindings/js/JSDOMWindowShell.cpp:
              * bindings/js/JSDocumentCustom.cpp:
              * bindings/js/ScriptDebugServer.cpp:
              * bindings/v8/NPV8Object.cpp:
              * bindings/v8/ScriptCachedFrameData.cpp:
              * bindings/v8/V8DOMWindowShell.cpp:
              * bindings/v8/V8DOMWrapper.cpp:
              * bindings/v8/V8IsolatedContext.cpp:
              * bindings/v8/V8Proxy.cpp:
              * bindings/v8/custom/V8LocationCustom.cpp:
              * dom/Node.cpp:
              * dom/ScriptElement.cpp:
              * dom/XMLDocumentParser.cpp:
              * dom/XMLDocumentParserQt.cpp:
              * html/HTMLEmbedElement.cpp:
              * html/HTMLObjectElement.cpp:
              * html/HTMLPlugInElement.cpp:
              * html/parser/HTMLConstructionSite.cpp:
              * html/parser/HTMLTreeBuilder.cpp:
              * inspector/InspectorProfilerAgent.cpp:
              * loader/icon/IconDatabase.cpp:
              * page/Chrome.cpp:
              * page/Navigator.cpp:
              * page/Page.cpp:
              * plugins/PluginView.cpp:
              * plugins/gtk/PluginViewGtk.cpp:
              * plugins/qt/PluginViewQt.cpp:
              * plugins/symbian/PluginViewSymbian.cpp:
              * plugins/win/PluginViewWin.cpp:
              * svg/SVGDocumentExtensions.cpp:
              * xml/XMLTreeViewer.cpp:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@84371 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a941ec7f
  32. 08 Apr, 2011 1 commit
    • steveblock@google.com's avatar
      2011-04-08 Leandro Gracia Gil <leandrogracia@chromium.org> · fab8862c
      steveblock@google.com authored
              Reviewed by Steve Block.
      
              Media Stream API: add the getUserMedia method and the Javascript bindings.
              https://bugs.webkit.org/show_bug.cgi?id=56586
      
              Test the Javascript behaviour of the getUserMedia method with different types of arguments.
              Current specification: http://www.whatwg.org/specs/web-apps/current-work/multipage/dnd.html#video-conferencing-and-peer-to-peer-communication
      
              * fast/dom/MediaStream/argument-types-expected.txt: Added.
              * fast/dom/MediaStream/argument-types.html: Added.
              * fast/dom/MediaStream/enabled-expected.txt: Added.
              * fast/dom/MediaStream/enabled.html: Added.
              * fast/dom/MediaStream/no-interface-object-expected.txt: Added.
              * fast/dom/MediaStream/no-interface-object.html: Added.
              * fast/dom/MediaStream/script-tests/argument-types.js: Added.
              (shouldNotThrow):
              (test):
              (emptyFunction):
              ():
              (ObjectThrowingException.prototype.valueOf):
              (ObjectThrowingException.prototype.toString):
              * fast/dom/MediaStream/script-tests/enabled.js: Added.
              (hasGetUserMediaProperty):
              * fast/dom/MediaStream/script-tests/no-interface-object.js: Added.
              (test):
      2011-04-08  Leandro Gracia Gil  <leandrogracia@chromium.org>
      
              Reviewed by Steve Block.
      
              Media Stream API: add the getUserMedia method and the Javascript bindings.
              https://bugs.webkit.org/show_bug.cgi?id=56586
      
              Add the getUserMedia method to the navigator and its new Javascript types.
              Current specification: http://www.whatwg.org/specs/web-apps/current-work/multipage/dnd.html#video-conferencing-and-peer-to-peer-communication
      
              Tests: fast/dom/MediaStream/argument-types.html
                     fast/dom/MediaStream/enabled.html
                     fast/dom/MediaStream/no-interface-object.html
      
              * Android.derived.jscbindings.mk:
              * Android.derived.v8bindings.mk:
              * Android.v8bindings.mk:
              * CMakeLists.txt:
              * CodeGenerators.pri:
              * DerivedSources.cpp:
              * DerivedSources.make:
              * GNUmakefile.list.am:
              * WebCore.gypi:
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * bindings/js/JSNavigatorCustom.cpp:
              (WebCore::JSNavigator::webkitGetUserMedia):
              * bindings/v8/custom/V8NavigatorCustom.cpp: Added.
              (WebCore::V8Navigator::webkitGetUserMediaCallback):
              * page/Navigator.cpp:
              (WebCore::Navigator::webkitGetUserMedia):
              * page/Navigator.h:
              * page/Navigator.idl:
              * page/NavigatorUserMediaError.h: Added.
              (WebCore::NavigatorUserMediaError::NavigatorUserMediaError):
              (WebCore::NavigatorUserMediaError::~NavigatorUserMediaError):
              (WebCore::NavigatorUserMediaError::code):
              * page/NavigatorUserMediaError.idl: Added.
              * page/NavigatorUserMediaErrorCallback.h: Added.
              (WebCore::NavigatorUserMediaErrorCallback::~NavigatorUserMediaErrorCallback):
              * page/NavigatorUserMediaErrorCallback.idl: Added.
              * page/NavigatorUserMediaSuccessCallback.h: Added.
              (WebCore::NavigatorUserMediaSuccessCallback::~NavigatorUserMediaSuccessCallback):
              * page/NavigatorUserMediaSuccessCallback.idl: Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@83287 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      fab8862c
  33. 14 Mar, 2011 1 commit
    • jknotten@chromium.org's avatar
      2011-03-14 John Knottenbelt <jknotten@chromium.org> · 04fa8dd6
      jknotten@chromium.org authored
              Reviewed by Steve Block.
      
              Detach Geolocation from Frame when Page destroyed.
              https://bugs.webkit.org/show_bug.cgi?id=52877
      
              Ensure that all geolocation permission requests are cancelled
              when the page is detached from its frame.
      
              Fix fast/dom/Geolocation/window-close-popup.html to ignore position error
              generated on watch when window is closed.
      
              * fast/dom/Geolocation/page-reload-cancel-permission-requests-expected.txt: Added.
              * fast/dom/Geolocation/page-reload-cancel-permission-requests.html: Added.
              * fast/dom/Geolocation/resources/page-reload-cancel-permission-requests-inner.html: Added.
              * fast/dom/Geolocation/script-tests/page-reload-cancel-permission-requests.js: Added.
              * platform/gtk/Skipped:
              * platform/mac/Skipped:
              * platform/qt-wk2/Skipped:
      2011-03-14  John Knottenbelt  <jknotten@chromium.org>
      
              Reviewed by Steve Block.
      
              Detach Geolocation from Frame when Page destroyed.
              https://bugs.webkit.org/show_bug.cgi?id=52877
      
              On Page destruction, any outstanding Geolocation permission
              requests should be cancelled, because the Geolocation can only
              access the client indirectly via m_frame->page().
      
              Page destruction is signalled by a call to the
              Frame::pageDestroyed() method. This explictly calls
              DOMWindow::resetGeolocation which ultimately calls Geolocation::reset.
      
              Geolocation::reset() detaches from the GeolocationController,
              cancels requests, watches and single shots, and sets the
              permission state back to Unknown.
      
              Frame::pageDestroyed() is also called by FrameLoader even though
              the page is not destroyed. We should still cancel permission
              requests, because the GeolocationClient will become inaccessible
              to the Geolocation object after this call.
      
              Frame::transferChildFrameToNewDocument also indirectly calls
              Geolocation::reset when the frame is reparented between
              pages. Ideally we would like the Geolocation's activities to
              continue after reparenting, see bug
              https://bugs.webkit.org/show_bug.cgi?id=55577
      
              Since GeolocationController is owned by Page, and all Geolocation
              objects will now unsubscribe from the GeolocationController on
              pageDetached(), we no longer need to call stopUpdating() from the
              GeolocationController's destructor. Instead we can simply assert
              that there should be no no observers. See related bug
              https://bugs.webkit.org/show_bug.cgi?id=52216 .
      
              Introduced new method 'numberOfPendingPermissionRequests' on
              GeolocationClientMock to count the number of outstanding pending
              permission requests. This provides a reusable implementation for
              client-based implementations of the LayoutTestController's
              numberOfPendingGeolocationPermissionRequests method.
      
              Test: fast/dom/Geolocation/page-reload-cancel-permission-requests.html
      
              * page/DOMWindow.cpp:
              (WebCore::DOMWindow::resetGeolocation):
              * page/DOMWindow.h:
              * page/Frame.cpp:
              (WebCore::Frame::pageDestroyed):
              (WebCore::Frame::transferChildFrameToNewDocument):
              * page/Geolocation.cpp:
              (WebCore::Geolocation::~Geolocation):
              (WebCore::Geolocation::page):
              (WebCore::Geolocation::reset):
              (WebCore::Geolocation::disconnectFrame):
              (WebCore::Geolocation::lastPosition):
              (WebCore::Geolocation::requestPermission):
              (WebCore::Geolocation::startUpdating):
              (WebCore::Geolocation::stopUpdating):
              * page/Geolocation.h:
              * page/GeolocationController.cpp:
              (WebCore::GeolocationController::~GeolocationController):
              * page/Navigator.cpp:
              (WebCore::Navigator::resetGeolocation):
              * page/Navigator.h:
              * platform/mock/GeolocationClientMock.cpp:
              (WebCore::GeolocationClientMock::numberOfPendingPermissionRequests):
              * platform/mock/GeolocationClientMock.h:
      2011-03-14  John Knottenbelt  <jknotten@chromium.org>
      
              Reviewed by Steve Block.
      
              Detach Geolocation from Frame when Page destroyed.
              https://bugs.webkit.org/show_bug.cgi?id=52877
      
              Add accessors to the WebGeolocationClientMock to allow the number of
              pending geolocation permission requests to be queried.
      
              * public/WebGeolocationClientMock.h:
              * src/WebGeolocationClientMock.cpp:
              (WebKit::WebGeolocationClientMock::numberOfPendingPermissionRequests):
      2011-03-14  John Knottenbelt  <jknotten@chromium.org>
      
              Reviewed by Steve Block.
      
              Detach Geolocation from Frame when Page destroyed.
              https://bugs.webkit.org/show_bug.cgi?id=52877
      
              Extend the layout test controller to expose the number of pending
              geolocation requests, so that we can test that the requests have
              been cancelled on page close.
      
              * DumpRenderTree/LayoutTestController.cpp:
              (numberOfPendingGeolocationPermissionRequestsCallback):
              (LayoutTestController::staticFunctions):
              * DumpRenderTree/LayoutTestController.h:
              * DumpRenderTree/chromium/LayoutTestController.cpp:
              (LayoutTestController::LayoutTestController):
              (LayoutTestController::numberOfPendingGeolocationPermissionRequests):
              * DumpRenderTree/chromium/LayoutTestController.h:
              * DumpRenderTree/gtk/LayoutTestControllerGtk.cpp:
              (LayoutTestController::numberOfPendingGeolocationPermissionRequests):
              * DumpRenderTree/mac/LayoutTestControllerMac.mm:
              (LayoutTestController::numberOfPendingGeolocationPermissionRequests):
              * DumpRenderTree/mac/UIDelegate.h:
              * DumpRenderTree/mac/UIDelegate.mm:
              (-[UIDelegate numberOfPendingGeolocationPermissionRequests]):
              * DumpRenderTree/qt/LayoutTestControllerQt.cpp:
              (LayoutTestController::numberOfPendingGeolocationPermissionRequests):
              * DumpRenderTree/qt/LayoutTestControllerQt.h:
              * DumpRenderTree/win/LayoutTestControllerWin.cpp:
              (LayoutTestController::numberOfPendingGeolocationPermissionRequests):
              * DumpRenderTree/wx/LayoutTestControllerWx.cpp:
              (LayoutTestController::numberOfPendingGeolocationPermissionRequests):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@81018 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      04fa8dd6
  34. 10 Mar, 2011 2 commits
    • mihaip@chromium.org's avatar
      2011-03-10 Sheriff Bot <webkit.review.bot@gmail.com> · 56e123c3
      mihaip@chromium.org authored
              Unreviewed, rolling out r80701.
              http://trac.webkit.org/changeset/80701
              https://bugs.webkit.org/show_bug.cgi?id=56126
      
              fast/dom/Geolocation/window-close-crash.html fails on Snow
              Leopard release builds (Requested by mihaip on #webkit).
      
              * fast/dom/Geolocation/page-reload-cancel-permission-requests-expected.txt: Removed.
              * fast/dom/Geolocation/page-reload-cancel-permission-requests.html: Removed.
              * fast/dom/Geolocation/resources/page-reload-cancel-permission-requests-inner.html: Removed.
              * fast/dom/Geolocation/script-tests/page-reload-cancel-permission-requests.js: Removed.
              * platform/gtk/Skipped:
              * platform/mac/Skipped:
              * platform/qt-wk2/Skipped:
      2011-03-10  Sheriff Bot  <webkit.review.bot@gmail.com>
      
              Unreviewed, rolling out r80701.
              http://trac.webkit.org/changeset/80701
              https://bugs.webkit.org/show_bug.cgi?id=56126
      
              fast/dom/Geolocation/window-close-crash.html fails on Snow
              Leopard release builds (Requested by mihaip on #webkit).
      
              * page/DOMWindow.cpp:
              * page/DOMWindow.h:
              * page/Frame.cpp:
              (WebCore::Frame::pageDestroyed):
              (WebCore::Frame::transferChildFrameToNewDocument):
              * page/Geolocation.cpp:
              (WebCore::Geolocation::~Geolocation):
              (WebCore::Geolocation::disconnectFrame):
              (WebCore::Geolocation::lastPosition):
              (WebCore::Geolocation::requestPermission):
              (WebCore::Geolocation::startUpdating):
              (WebCore::Geolocation::stopUpdating):
              * page/Geolocation.h:
              * page/GeolocationController.cpp:
              (WebCore::GeolocationController::~GeolocationController):
              * page/Navigator.cpp:
              * page/Navigator.h:
              * platform/mock/GeolocationClientMock.cpp:
              * platform/mock/GeolocationClientMock.h:
      2011-03-10  Sheriff Bot  <webkit.review.bot@gmail.com>
      
              Unreviewed, rolling out r80701.
              http://trac.webkit.org/changeset/80701
              https://bugs.webkit.org/show_bug.cgi?id=56126
      
              fast/dom/Geolocation/window-close-crash.html fails on Snow
              Leopard release builds (Requested by mihaip on #webkit).
      
              * public/WebGeolocationClientMock.h:
              * src/WebGeolocationClientMock.cpp:
      2011-03-10  Sheriff Bot  <webkit.review.bot@gmail.com>
      
              Unreviewed, rolling out r80701.
              http://trac.webkit.org/changeset/80701
              https://bugs.webkit.org/show_bug.cgi?id=56126
      
              fast/dom/Geolocation/window-close-crash.html fails on Snow
              Leopard release builds (Requested by mihaip on #webkit).
      
              * DumpRenderTree/LayoutTestController.cpp:
              (LayoutTestController::staticFunctions):
              * DumpRenderTree/LayoutTestController.h:
              * DumpRenderTree/chromium/LayoutTestController.cpp:
              (LayoutTestController::LayoutTestController):
              * DumpRenderTree/chromium/LayoutTestController.h:
              * DumpRenderTree/gtk/LayoutTestControllerGtk.cpp:
              * DumpRenderTree/mac/LayoutTestControllerMac.mm:
              * DumpRenderTree/mac/UIDelegate.h:
              * DumpRenderTree/mac/UIDelegate.mm:
              * DumpRenderTree/qt/LayoutTestControllerQt.cpp:
              * DumpRenderTree/qt/LayoutTestControllerQt.h:
              * DumpRenderTree/win/LayoutTestControllerWin.cpp:
              * DumpRenderTree/wx/LayoutTestControllerWx.cpp:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@80739 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      56e123c3
    • jknotten@chromium.org's avatar
      2011-02-16 John Knottenbelt <jknotten@chromium.org> · e0c8fe13
      jknotten@chromium.org authored
              Reviewed by Dmitry Titov.
      
              Detach Geolocation from Frame when Page destroyed.
              https://bugs.webkit.org/show_bug.cgi?id=52877
      
              Ensure that all geolocation permission requests are cancelled
              when the page is detached from its frame.
      
              * fast/dom/Geolocation/page-reload-cancel-permission-requests-expected.txt: Added.
              * fast/dom/Geolocation/page-reload-cancel-permission-requests.html: Added.
              * fast/dom/Geolocation/resources/page-reload-cancel-permission-requests-inner.html: Added.
              * fast/dom/Geolocation/script-tests/page-reload-cancel-permission-requests.js: Added.
              * platform/gtk/Skipped:
              * platform/mac/Skipped:
              * platform/qt-wk2/Skipped:
      2011-01-21  John Knottenbelt  <jknotten@chromium.org>
      
              Reviewed by Dmitry Titov.
      
              Detach Geolocation from Frame when Page destroyed.
              https://bugs.webkit.org/show_bug.cgi?id=52877
      
              On Page destruction, any outstanding Geolocation permission
              requests should be cancelled, because the Geolocation can only
              access the client indirectly via m_frame->page().
      
              Page destruction is signalled by a call to the
              Frame::pageDestroyed() method. This explictly calls
              DOMWindow::resetGeolocation which ultimately calls Geolocation::reset.
      
              Geolocation::reset() detaches from the GeolocationController,
              cancels requests, watches and single shots, and sets the
              permission state back to Unknown.
      
              Frame::pageDestroyed() is also called by FrameLoader even though
              the page is not destroyed. We should still cancel permission
              requests, because the GeolocationClient will become inaccessible
              to the Geolocation object after this call.
      
              Frame::transferChildFrameToNewDocument also indirectly calls
              Geolocation::reset when the frame is reparented between
              pages. Ideally we would like the Geolocation's activities to
              continue after reparenting, see bug
              https://bugs.webkit.org/show_bug.cgi?id=55577
      
              Since GeolocationController is owned by Page, and all Geolocation
              objects will now unsubscribe from the GeolocationController on
              pageDetached(), we no longer need to call stopUpdating() from the
              GeolocationController's destructor. Instead we can simply assert
              that there should be no no observers. See related bug
              https://bugs.webkit.org/show_bug.cgi?id=52216 .
      
              Introduced new method 'numberOfPendingPermissionRequests' on
              GeolocationClientMock to count the number of outstanding pending
              permission requests. This provides a reusable implementation for
              client-based implementations of the LayoutTestController's
              numberOfPendingGeolocationPermissionRequests method.
      
              Test: fast/dom/Geolocation/page-reload-cancel-permission-requests.html
      
              * page/DOMWindow.cpp:
              (WebCore::DOMWindow::resetGeolocation):
              * page/DOMWindow.h:
              * page/Frame.cpp:
              (WebCore::Frame::pageDestroyed):
              (WebCore::Frame::transferChildFrameToNewDocument):
              * page/Geolocation.cpp:
              (WebCore::Geolocation::~Geolocation):
              (WebCore::Geolocation::page):
              (WebCore::Geolocation::reset):
              (WebCore::Geolocation::disconnectFrame):
              (WebCore::Geolocation::lastPosition):
              (WebCore::Geolocation::requestPermission):
              (WebCore::Geolocation::startUpdating):
              (WebCore::Geolocation::stopUpdating):
              * page/Geolocation.h:
              * page/GeolocationController.cpp:
              (WebCore::GeolocationController::~GeolocationController):
              * page/Navigator.cpp:
              (WebCore::Navigator::resetGeolocation):
              * page/Navigator.h:
              * platform/mock/GeolocationClientMock.cpp:
              (WebCore::GeolocationClientMock::numberOfPendingPermissionRequests):
              * platform/mock/GeolocationClientMock.h:
      2011-01-26  John Knottenbelt  <jknotten@chromium.org>
      
              Reviewed by Dmitry Titov.
      
              Detach Geolocation from Frame when Page destroyed.
              https://bugs.webkit.org/show_bug.cgi?id=52877
      
              Add accessors to the WebGeolocationClientMock to allow the number of
              pending geolocation permission requests to be queried.
      
              * public/WebGeolocationClientMock.h:
              * src/WebGeolocationClientMock.cpp:
              (WebKit::WebGeolocationClientMock::numberOfPendingPermissionRequests):
      2011-01-26  John Knottenbelt  <jknotten@chromium.org>
      
              Reviewed by Dmitry Titov.
      
              Detach Geolocation from Frame when Page destroyed.
              https://bugs.webkit.org/show_bug.cgi?id=52877
      
              Extend the layout test controller to expose the number of pending
              geolocation requests, so that we can test that the requests have
              been cancelled on page close.
      
              * DumpRenderTree/LayoutTestController.cpp:
              (numberOfPendingGeolocationPermissionRequestsCallback):
              (LayoutTestController::staticFunctions):
              * DumpRenderTree/LayoutTestController.h:
              * DumpRenderTree/chromium/LayoutTestController.cpp:
              (LayoutTestController::LayoutTestController):
              (LayoutTestController::numberOfPendingGeolocationPermissionRequests):
              * DumpRenderTree/chromium/LayoutTestController.h:
              * DumpRenderTree/gtk/LayoutTestControllerGtk.cpp:
              (LayoutTestController::numberOfPendingGeolocationPermissionRequests):
              * DumpRenderTree/mac/LayoutTestControllerMac.mm:
              (LayoutTestController::numberOfPendingGeolocationPermissionRequests):
              * DumpRenderTree/mac/UIDelegate.h:
              * DumpRenderTree/mac/UIDelegate.mm:
              (-[UIDelegate numberOfPendingGeolocationPermissionRequests]):
              * DumpRenderTree/qt/LayoutTestControllerQt.cpp:
              (LayoutTestController::numberOfPendingGeolocationPermissionRequests):
              * DumpRenderTree/qt/LayoutTestControllerQt.h:
              * DumpRenderTree/win/LayoutTestControllerWin.cpp:
              (LayoutTestController::numberOfPendingGeolocationPermissionRequests):
              * DumpRenderTree/wx/LayoutTestControllerWx.cpp:
              (LayoutTestController::numberOfPendingGeolocationPermissionRequests):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@80701 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e0c8fe13