-
jer.noble@apple.com authored
https://bugs.webkit.org/show_bug.cgi?id=68382 Source/WebCore: Reviewed by Darin Adler. Only create a AudioContext object if the Web Audio feature is runtime-enabled in Settings. No new tests, as this feature is not yet enabled by default. * bindings/js/JSDOMWindowCustom.cpp: (WebCore::JSDOMWindow::webkitAudioContext): Source/WebKit/mac: Reviewed by Darin Adler. Initialize the webAudioEnabled preference to NO by default. * WebView/WebPreferences.mm: (+[WebPreferences initialize]): Source/WebKit2: Add support for the webAudioEnabled preference in WebKit2. Reviewed by Darin Adler. * Shared/WebPreferencesStore.h: Add WebAudioEnabled getter and setter macro. * UIProcess/API/C/WKPreferences.cpp: (WKPreferencesSetWebAudioEnabled): Added. (WKPreferencesGetWebAudioEnabled): Added. * UIProcess/API/C/WKPreferences.h: * WebProcess/WebPage/WebPage.cpp: (WebKit::WebPage::updatePreferences): Update the webAudioEnabled preference. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@95678 268f45cc-cd09-0410-ab3c-d52691b4dbfc
866bf69f