mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-02-17 04:30:46 +01:00
Properly disable the notification and push APIs (fixes issue #2951)
This commit is contained in:
parent
e87fedd27c
commit
82d6bcbbea
@ -256,9 +256,6 @@ void AlloyContentRendererClient::WebKitInitialized() {
|
|||||||
// Create global objects associated with the default Isolate.
|
// Create global objects associated with the default Isolate.
|
||||||
CefV8IsolateCreated();
|
CefV8IsolateCreated();
|
||||||
|
|
||||||
// TODO(cef): Enable these once the implementation supports it.
|
|
||||||
blink::WebRuntimeFeatures::EnableNotifications(false);
|
|
||||||
|
|
||||||
const CefAppManager::SchemeInfoList* schemes =
|
const CefAppManager::SchemeInfoList* schemes =
|
||||||
CefAppManager::Get()->GetCustomSchemes();
|
CefAppManager::Get()->GetCustomSchemes();
|
||||||
if (!schemes->empty()) {
|
if (!schemes->empty()) {
|
||||||
@ -361,6 +358,13 @@ void AlloyContentRendererClient::RunSingleProcessCleanup() {
|
|||||||
} while (!complete);
|
} while (!complete);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void AlloyContentRendererClient::PostIOThreadCreated(
|
||||||
|
base::SingleThreadTaskRunner*) {
|
||||||
|
// TODO(cef): Enable these once the implementation supports it.
|
||||||
|
blink::WebRuntimeFeatures::EnableNotifications(false);
|
||||||
|
blink::WebRuntimeFeatures::EnablePushMessaging(false);
|
||||||
|
}
|
||||||
|
|
||||||
void AlloyContentRendererClient::RenderThreadStarted() {
|
void AlloyContentRendererClient::RenderThreadStarted() {
|
||||||
const base::CommandLine* command_line =
|
const base::CommandLine* command_line =
|
||||||
base::CommandLine::ForCurrentProcess();
|
base::CommandLine::ForCurrentProcess();
|
||||||
|
@ -96,6 +96,8 @@ class AlloyContentRendererClient
|
|||||||
void RunSingleProcessCleanup();
|
void RunSingleProcessCleanup();
|
||||||
|
|
||||||
// ContentRendererClient implementation.
|
// ContentRendererClient implementation.
|
||||||
|
void PostIOThreadCreated(
|
||||||
|
base::SingleThreadTaskRunner* io_thread_task_runner) override;
|
||||||
void RenderThreadStarted() override;
|
void RenderThreadStarted() override;
|
||||||
void ExposeInterfacesToBrowser(mojo::BinderMap* binders) override;
|
void ExposeInterfacesToBrowser(mojo::BinderMap* binders) override;
|
||||||
void RenderThreadConnected() override;
|
void RenderThreadConnected() override;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user