Add place-holder for Page.setInterceptFileChooserDialog
Categories
(Remote Protocol :: CDP, enhancement, P1)
Tracking
(firefox74 fixed)
Tracking | Status | |
---|---|---|
firefox74 | --- | fixed |
People
(Reporter: impossibus, Assigned: whimboo)
References
Details
(Whiteboard: [puppeteer-beta-mvp])
Attachments
(2 files)
This method affects many Puppeteer unit tests and gutenberg tests, since it's involved in creating a Page class.
"When file chooser interception is enabled, native file chooser dialog is not shown. Instead, a protocol event Page.fileChooserOpened is emitted."
Updated•5 years ago
|
Assignee | ||
Comment 1•5 years ago
|
||
I asked Olli on IRC and he pointed me to:
•smaug> whimboo: https://searchfox.org/mozilla-central/source/testing/specialpowers/content/MockFilePicker.jsm#42 is used by several tests https://searchfox.org/mozilla-central/search?q=mockfile&path=
It doesn't look too hard to get implemented. Also we would only need a bare minimum of what SpecialPowers implements.
Assignee | ||
Comment 2•5 years ago
|
||
While this method affects a lot of tests it's not a blocker for the alpha release. Reason is that there is a fallback:
https://github.com/puppeteer/puppeteer/blob/master/lib/Page.js#L140-L142
It also means that this failure doesn't cause the hang for most of the Puppeteer unit tests.
Comment 3•5 years ago
|
||
There doesn’t appear to be a fallback, but it sets the internal state _fileChooserInterceptionIsDisabled
.
I looked, but couldn’t find this was used for anything.
Updated•4 years ago
|
Assignee | ||
Comment 4•4 years ago
|
||
Note that this API is marked as experimental in Puppeteer. As such I think it should be enough to just add a place-holder for now. Given that it sets the internal state (as mentioned above) we should get around from those many failures in Puppeteer unit tests.
Assignee | ||
Comment 5•4 years ago
|
||
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.
Updated•4 years ago
|
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Comment 6•4 years ago
|
||
With this push some more Puppeteer tests crash. I will have to also mark those as skipped.
Assignee | ||
Comment 7•4 years ago
|
||
Depends on D59006
Pushed by hskupin@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/d212635f9463 [remote] Add place-holder for Page.setInterceptFileChooserDialog. r=remote-protocol-reviewers,ato https://hg.mozilla.org/integration/autoland/rev/267643528022 [remote] Skip some more crashing Puppeteer unit tests. r=remote-protocol-reviewers,ato
Comment 9•4 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/d212635f9463
https://hg.mozilla.org/mozilla-central/rev/267643528022
Updated•3 years ago
|
Description
•