-
Notifications
You must be signed in to change notification settings - Fork 15.2k
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
fix: don't emit did-fail-load
for MediaDocuments
#37824
Conversation
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.
Possible to have a test ?
@deepak1556 i thought about it and am not sure - the issue at hand is that the webContents never emits |
What about listening for |
d1b6796
to
e53c94d
Compare
did-fail-load
for MediaDocuments
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.
Thanks!
Release Notes Persisted
|
I have automatically backported this PR to "22-x-y", please check out #37858 |
I have automatically backported this PR to "24-x-y", please check out #37859 |
I have automatically backported this PR to "23-x-y", please check out #37860 |
Description of Change
Closes #37804.
Fixes an issue where successfully loaded media documents emit
did-fail-load
. We already throw out cancelled navigations in certain places - we want to address the case where it's incorrectly emitted for media documents.Per spec: when we navigate to a media resource: the original request for the media resource—which resulted in a committed navigation—is simply discarded, while the media element created inside the MediaDocument then makes another new request for the same media resource.
We fix the issue by determining if the ostensible load failure originated from a media document and discard it if it is.
Checklist
npm test
passesRelease Notes
Notes: Fixed an issue where successfully loaded media documents emitted
did-fail-load
.