Skip to content

Commit

Permalink
fix(android): to not call Browser.setDownloadBehavior (#6913)
Browse files Browse the repository at this point in the history
  • Loading branch information
mxschmitt authored Jun 4, 2021
1 parent 9142d8c commit ff3ad7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/chromium/crBrowser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ export class CRBrowserContext extends BrowserContext {
async _initialize() {
assert(!Array.from(this._browser._crPages.values()).some(page => page._browserContext === this));
const promises: Promise<any>[] = [ super._initialize() ];
if (this._browser.options.name !== 'electron') {
if (this._browser.options.name !== 'electron' && this._browser.options.name !== 'clank') {
promises.push(this._browser._session.send('Browser.setDownloadBehavior', {
behavior: this._options.acceptDownloads ? 'allowAndName' : 'deny',
browserContextId: this._browserContextId,
Expand Down

0 comments on commit ff3ad7a

Please sign in to comment.