| Auto-Submit | +1 |
| Commit-Queue | +1 |
Hi Andrea! This should be ready for review since tests passed on the previous patchset with only minor noop changes.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
[Extensions] Block externally_connectable messaging from error pages.
Previously, a page committing as an error document could still establish
connections to externally_connectable extensions. This was because
MessageService::OpenChannelToExtension validated the connection request
against the frame's GetLastCommittedURL() but did not check if the
document was actually an error page (IsErrorDocument()). Since the last
committed URL of an error page reflects the failed navigation target,
this made it seems like a renderer hosting the error page was actually
hosting the target URL (from the perspective of messaging).
After this change, connection requests from frames that commit as error
documents are rejected.
This is accomplished by adding a check for !IsErrorDocument() when
validating externally_connectable matches in
MessageService::OpenChannelToExtension.
TAG=agy
CONV=e9ac3cb4-8403-4361-9db3-3170b15055e0
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |