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
Add OnPluginCrashed to RequestHandler #372
Conversation
@jornh @JanEggers Any thoughts on how to test this? |
I guess one way is to have flash installed, navigate to a page with flash content, manually kill flash in task manager. Don't know if there are other cases to cover ... |
How about adding an extra commit here with a minimal demo of this to the |
{ | ||
|
||
} | ||
|
||
bool IRequestHandler.OnBeforeResourceLoad(IWebBrowser browser, IRequestResponse requestResponse) |
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.
Duh - never mind that last comment below on this PR. It's here already 😄
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.
Yes. But it would be good to replace that empty line with a comment there saying "here you could do fun stuff when a plugin crashes" (or perhaps something more useful...). I hate empty lines. 😄
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.
I think we need something here, a comment, a MessageBox
, something else....I'm just unclear on what adds the most value. Perhaps keep it simple and just add a comment 😄
I found that the handler is triggered when I kill Happy to add extra comments if you have any suggestions. I've added you as a contributor to my CefSharp repository, so anything trivial that you feel like fixing up, your more than welcome, I'm not precious about it in any way shape or form! |
Could you add me also? It's so convenient to be able to quick-edit PR:s straight in the GitHub web UI (which requires this access to be set up). |
Done |
For reference I've added you too @JanEggers, figured as we don't have a WIP/DEV branch (perhaps that's something to consider after we get the first stable CefSharp3 out the door?) then it's probably easier when doing code reviews to just fix trivial things up as we go. |
If I add a comment as per @jornh's recommendation does anyone have an objection to merging this one? |
As suggested by Per
I didn't get around to testing it but just committed the comment. Merge away! Sleep time (1.24 here now) |
Merging now @amaitland - thanks! |
Add OnPluginCrashed to RequestHandler
Thanks @jornh! Much appreciated! |
Implement
IRequestHandler
to be notified when a plugin crashes.