DescriptionImprove robustness of pageCapture.saveAsMHTML custom binding
Previously, errors in the user-defined callback function could break the
internal state of the pageCapture API. This is now mitigated by reading
and nulling the callback before using it, and only access the properties
of the response object after verifying that it is not void.
Also fixed a typo in an error message.
BUG=392800
TEST=Manually the tests from the bug report (or read the source code and
infer from the changes that the reported bugs have been fixed.)
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=282470
Patch Set 1 #Patch Set 2 : fix typo in error message #
Total comments: 4
Patch Set 3 : address rdevlin's review comments #
Messages
Total messages: 7 (0 generated)
|