Implement DOM.setFileInputFiles
Categories
(Remote Protocol :: CDP, enhancement, P5)
Tracking
(Not tracked)
People
(Reporter: ochameau, Unassigned)
References
Details
(Whiteboard: [puppeteer-beta2-mvp])
This is used by 3 gutenberg tests (search for uploadFile function usages) in order to attach a file to a <input type="file"/>
.
Updated•6 years ago
|
Comment 1•6 years ago
|
||
<input type=file>
’s value is protected which means content frame
scripts, even with the system privilege, can’t update it. We should
however have access to mozSetFileArray
.
See this code from Marionette how to do it:
https://searchfox.org/mozilla-central/rev/952521e6164ddffa3f34bc8cfa5a81afc5b859c4/testing/marionette/interaction.js#469-508
Updated•6 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
Gutenberg tests for file uploads use a Puppeteer method which make use of this CDP endpoint. As such we need it for the alpha release.
Updated•5 years ago
|
Updated•5 years ago
|
Comment 3•5 years ago
|
||
I need to look at bug 1526364 first.
Updated•5 years ago
|
Updated•5 years ago
|
Given that this isn't used in gutenberg test setup, I think we can consider it relatively low priority.
Assignee | ||
Updated•4 years ago
|
Updated•2 years ago
|
Comment 5•2 years ago
|
||
We are also using it in pdf.js: https://github.com/mozilla/pdf.js/pull/16650/files.
Marco, there will be no more update here. Once Puppeteer is released with WebDriver BiDi support you should switch to the spec conforming protocol.
We are not going to implement this API for CDP. For WebDriver BiDi there is bug 1855040.
Description
•