-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provide "suggestedFilename" in "WebDriver BiDi download started" hook #11139
Conversation
@domenic could you please take a look? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also took a look at it and looks good to me.
Can you ensure the build is passing first? |
Oh, sure! Sorry for that. Fixed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Generally looks good, nice refactoring. Just some stylistic updates.
@@ -25778,7 +25786,7 @@ document.body.appendChild(wbr);</code></pre> | |||
<li><p>Let <var>filename</var> be the undefined value.</p></li> | |||
|
|||
<!-- Content-Disposition: attachment; filename="" is always honoured, even cross-origin --> | |||
<li><p>If the resource has a `<code data-x="http-content-disposition">Content-Disposition</code>` | |||
<li><p>If the <var>resource</var> has a `<code data-x="http-content-disposition">Content-Disposition</code>` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice job adding the explicit resource variable. However, here and below, it's better to use just "resource" instead of "the resource". (Or I guess response, once we make the update I suggest above.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
Thanks for the feedback. I believe it is addressed. Please consider merging if there are no other concerns |
Provide "suggestedFilename" in "WebDriver BiDi download started" hook. Addressing w3c/webdriver-bidi#840.
browsingContext.downloadWillBegin
WPT tests.browsingContext.downloadWillBegin
event GoogleChromeLabs/chromium-bidi#3248(See WHATWG Working Mode: Changes for more details.)
/browsers.html ( diff )
/browsing-the-web.html ( diff )
/infrastructure.html ( diff )
/links.html ( diff )