Skip to content
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

chore: wrap cb with default invocation #22013

Merged
merged 1 commit into from Feb 4, 2020
Merged

chore: wrap cb with default invocation #22013

merged 1 commit into from Feb 4, 2020

Conversation

codebytere
Copy link
Member

@codebytere codebytere commented Feb 3, 2020

Description of Change

In Chrome's own print preview message handling, they wrap their pdf composition callback in a Mojo default invoker, which is designed to be run on cases where the connection is dropped or similar. This ensures that the callback is not dropped on the floor and is run so the function chain can complete. We should do the same.

cc @deepak1556 @nornagon

Checklist

Release Notes

Notes: none

Copy link
Member

@nornagon nornagon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TIL WrapCallbackWithDefaultInvokeIfNotRun

@electron-cation electron-cation bot removed the new-pr 🌱 PR opened in the last 24 hours label Feb 4, 2020
@codebytere
Copy link
Member Author

Failures are Chromedriver and mksnapshot and thus unrelated to this PR; merging.

@codebytere codebytere merged commit f14fc4b into master Feb 4, 2020
@release-clerk
Copy link

release-clerk bot commented Feb 4, 2020

No Release Notes

@codebytere codebytere deleted the default-invoke branch February 4, 2020 19:06
@trop
Copy link
Contributor

trop bot commented Feb 4, 2020

I was unable to backport this PR to "8-x-y" cleanly;
you will need to perform this backport manually.

@trop
Copy link
Contributor

trop bot commented Feb 4, 2020

@codebytere has manually backported this PR to "8-x-y", please check out #22036

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants