From bb3fec37fae14b2dc1c9ea31e2cddd5bd9ee13e9 Mon Sep 17 00:00:00 2001 From: Emmett Lalish Date: Tue, 28 Mar 2023 16:13:01 -0700 Subject: [PATCH 1/2] Allow headless to use GPU --- index.js | 1 - 1 file changed, 1 deletion(-) diff --git a/index.js b/index.js index 4786a1f..996f7df 100644 --- a/index.js +++ b/index.js @@ -169,7 +169,6 @@ ChromeBrowser.$inject = ['baseBrowserDecorator', 'args'] function headlessGetOptions (url, args, parent) { var mergedArgs = parent.call(this, url, args).concat([ '--headless', - '--disable-gpu', '--disable-dev-shm-usage' ]) From c5bc14740d3ebf0a5141945092194afdbf031de4 Mon Sep 17 00:00:00 2001 From: Emmett Lalish Date: Wed, 29 Mar 2023 11:07:30 -0700 Subject: [PATCH 2/2] fix tests --- test/jsflags.spec.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/test/jsflags.spec.js b/test/jsflags.spec.js index 0b2c623..d29db89 100644 --- a/test/jsflags.spec.js +++ b/test/jsflags.spec.js @@ -65,7 +65,6 @@ describe('headlessGetOptions', function () { expect(headlessGetOptions.call(context, url, args, parent)).to.be.eql([ '-incognito', '--headless', - '--disable-gpu', '--disable-dev-shm-usage', '--remote-debugging-port=9222' ]) @@ -82,7 +81,6 @@ describe('headlessGetOptions', function () { '-incognito', '--remote-debugging-port=9333', '--headless', - '--disable-gpu', '--disable-dev-shm-usage' ]) })