Closed Bug 1874365 Opened 1 year ago Closed 2 months ago

Implement the "browsingContext.downloadWillBegin" event

Categories

(Remote Protocol :: WebDriver BiDi, task, P2)

task
Points:
3

Tracking

(firefox144 fixed)

RESOLVED FIXED
144 Branch
Tracking Status
firefox144 --- fixed

People

(Reporter: whimboo, Assigned: jdescottes, NeedInfo)

References

(Blocks 3 open bugs, )

Details

(Whiteboard: [webdriver:m17][wptsync upstream][webdriver:relnote])

Attachments

(5 files)

This bug implements the browsingContext.downoadWillBegin event by following the HTML spec:
https://html.spec.whatwg.org/#populating-a-session-history-entry:webdriver-bidi-download-started

It needs to be emitted when the response has a Content-Disposition header specifying the attachment disposition type.

Priority: -- → P3
Whiteboard: [webdriver:backlog]
Duplicate of this bug: 1919019
Blocks: 1919018
No longer blocks: 1874364
Summary: Implement the "browsingContext.downoadWillBegin" event → Implement the "browsingContext.downloadWillBegin" event
Duplicate of this bug: 1956230
Blocks: 1970293

Moving to m17 for planning as this blocks many PW tests.

Whiteboard: [webdriver:backlog] → [webdriver:m17]
Whiteboard: [webdriver:m17] → [webdriver:backlog]
Points: --- → 3
Priority: P3 → P2
Whiteboard: [webdriver:backlog] → [webdriver:m17]
Assignee: nobody → jdescottes
Status: NEW → ASSIGNED
Attached file download_page.html

I think there is currently a spec issue with download attributes: https://github.com/w3c/webdriver-bidi/issues/980

They should not trigger the event, but 1/ that's what we use in wdspec tests, 2/ I imagine that's what users would expect

The suggestedFilename as expected by our wdspec tests (and as implemented by Chrome) seems odd. In case you download a file with the same filename several times, it doesn't include the potential modification made to the filename by the browser (eg file.txt, file (1).txt, file (2).txt etc...)

https://github.com/w3c/webdriver-bidi/issues/982

See Also: → 1983012
Pushed by jdescottes@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/6828aa72a621 https://hg.mozilla.org/integration/autoland/rev/d3fccb383a63 [wdspec] Update download_will_begin test to use different filenames r=webdriver-reviewers,whimboo https://github.com/mozilla-firefox/firefox/commit/d82e2685cb63 https://hg.mozilla.org/integration/autoland/rev/aa71ab36fed0 [bidi] Add support for browsingContext.downloadWillBegin r=webdriver-reviewers,whimboo https://github.com/mozilla-firefox/firefox/commit/b75cb4b40bf0 https://hg.mozilla.org/integration/autoland/rev/f86f87aac557 [remote] Declare NavigationManager events in a single enum r=webdriver-reviewers,whimboo https://github.com/mozilla-firefox/firefox/commit/0e335bfed1df https://hg.mozilla.org/integration/autoland/rev/409d73c80929 [wdspec] Additional tests for browsingContext.downloadWillBegin r=webdriver-reviewers,whimboo
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/54520 for changes under testing/web-platform/tests
Whiteboard: [webdriver:m17] → [webdriver:m17], [wptsync upstream]
Pushed by agoloman@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/8051fc73806f https://hg.mozilla.org/integration/autoland/rev/5931ea2513eb Revert "Bug 1874365 - [wdspec] Additional tests for browsingContext.downloadWillBegin r=webdriver-reviewers,whimboo" for causing wd failures @download_will_begin.py.

Backed out for causing wd failures @download_will_begin.py.

Flags: needinfo?(jdescottes)
Upstream PR merged by moz-wptsync-bot
Blocks: 1985252
Pushed by jdescottes@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/70e3b2ff9ca5 https://hg.mozilla.org/integration/autoland/rev/f30aef777f09 [wdspec] Update download_will_begin test to use different filenames r=webdriver-reviewers,whimboo https://github.com/mozilla-firefox/firefox/commit/6af733da3297 https://hg.mozilla.org/integration/autoland/rev/2553c99d7d93 [bidi] Add support for browsingContext.downloadWillBegin r=webdriver-reviewers,whimboo https://github.com/mozilla-firefox/firefox/commit/9779d6884d74 https://hg.mozilla.org/integration/autoland/rev/4623a8aa7183 [remote] Declare NavigationManager events in a single enum r=webdriver-reviewers,whimboo https://github.com/mozilla-firefox/firefox/commit/38d2a6fb0eec https://hg.mozilla.org/integration/autoland/rev/f5f51ea80680 [wdspec] Additional tests for browsingContext.downloadWillBegin r=webdriver-reviewers,whimboo
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/54542 for changes under testing/web-platform/tests
Upstream PR merged by moz-wptsync-bot
Blocks: 1604723
Whiteboard: [webdriver:m17], [wptsync upstream] → [webdriver:m17][wptsync upstream][webdriver:relnote]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: