top | item 21435286

(no title)

onesmallcoin | 6 years ago

I think you can force load a plugin in chromium headless with a command line argument. Last time I checked the issue was accessing the html dom of the extension e.g chrome-extension://blahblahblah as it only returns a blank page. The other annoying issues I experienced and currently remain unresolved in the latest chromium build headless mode + CDP are:

1. Granting permissions to scopes for sites e.g geolocation, notifications in Browser.GrantPermissions

2. Setting a mock geolocation in Page.setGeolocationOverride I've tried replacing the JS navigator function for geolocation, even if you grant the geolocation permission on the site it still says that it is prompting the user

If anyone has any advice on how to resolve these issues without a virtual X server it would be greatly appreciated. Feel free to drop me a bell @ henry@str8up.media or in a comment.

If google needs anyone to find bugs in chrome headless and CDP I need a job.

discuss

order

No comments yet.