Closed Bug 1553847 Opened 6 years ago Closed 1 year ago

Implement DOM.setFileInputFiles

Categories

(Remote Protocol :: CDP, enhancement, P5)

enhancement

Tracking

(Not tracked)

RESOLVED WONTFIX

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"/>.

Priority: -- → P2

<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

Priority: P2 → P3
Whiteboard: [puppeteer-alp
Whiteboard: [puppeteer-alp → [puppeteer-alpha]

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.

Assignee: nobody → ato
Status: NEW → ASSIGNED
Priority: P2 → P1

I need to look at bug 1526364 first.

Assignee: ato → nobody
Status: ASSIGNED → NEW
Priority: P1 → P2
Priority: P2 → P3
Whiteboard: [puppeteer-alpha] → [puppeteer-alpha-reserve]
Priority: P3 → P2
Whiteboard: [puppeteer-alpha-reserve] → [puppeteer-beta-mvp]

Given that this isn't used in gutenberg test setup, I think we can consider it relatively low priority.

Priority: P2 → P3
Whiteboard: [puppeteer-beta-mvp] → [puppeteer-beta-reserve]
Whiteboard: [puppeteer-beta-reserve] → [puppeteer-beta2-mvp]
Component: CDP: DOM → CDP
Severity: normal → S3

Marco, there will be no more update here. Once Puppeteer is released with WebDriver BiDi support you should switch to the spec conforming protocol.

Priority: P3 → P5

We are not going to implement this API for CDP. For WebDriver BiDi there is bug 1855040.

Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.