Skip to content
This repository has been archived by the owner on Aug 4, 2022. It is now read-only.

Commit

Permalink
Bug 1596601 - [remote] Add place-holder for Page.setInterceptFileChoo…
Browse files Browse the repository at this point in the history
…serDialog. r=remote-protocol-reviewers,ato

This feature is experimental and not required to get implemented
on our end as of now. As such adding a place-holder will be enough.

Differential Revision: https://phabricator.services.mozilla.com/D59006
  • Loading branch information
whimboo committed Jan 8, 2020
1 parent b2c486a commit ae95920
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions remote/domains/parent/Page.jsm
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,19 @@ class Page extends Domain {
return retval;
}

/**
* Intercept file chooser requests and transfer control to protocol clients.
*
* When file chooser interception is enabled,
* the native file chooser dialog is not shown.
* Instead, a protocol event Page.fileChooserOpened is emitted.
*
* @param {Object} options
* @param {boolean=} options.enabled
* Enabled state of file chooser interception.
*/
setInterceptFileChooserDialog(options = {}) {}

/**
* Emit the proper CDP event javascriptDialogOpening when a javascript dialog
* opens for the current target.
Expand Down

0 comments on commit ae95920

Please sign in to comment.