From 6bfc17035c619283934f490af720843004bee428 Mon Sep 17 00:00:00 2001 From: cexbrayat Date: Fri, 5 May 2017 10:56:22 +0200 Subject: [PATCH] fix: add disable-renderer-backgrounding flag Fixes #123 --- index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/index.js b/index.js index c9ff3b1..5a1969e 100644 --- a/index.js +++ b/index.js @@ -40,6 +40,10 @@ var ChromeBrowser = function (baseBrowserDecorator, args) { '--disable-popup-blocking', '--disable-translate', '--disable-background-timer-throttling', + // on macOS, disable-background-timer-throttling is not enough + // and we need disable-renderer-backgrounding too + // see https://github.com/karma-runner/karma-chrome-launcher/issues/123 + '--disable-renderer-backgrounding', '--disable-device-discovery-notifications' ].concat(flags, [url]) }