DescriptionDon't crash when granting permissions to active tab.
It seems unlikely for active tab permissions to be granted to a tab that
is closing but on the other hand there is nothing that would prevent a
race condition in which the RenderView is destroyed before the
ExtensionMsg_UpdateTabSpecificPermissions message is processed.
The ExtensionMsg_{Update,Clear}TabSpecificPermissions message is changed
to a ROUTED message so that it is sent to the specific RenderView directly.
This removes the need to find the RenderView by tab_id which could fail.
BUG=396232
Committed: https://crrev.com/8747c1d912e10bbb8fe746ff6a06bb5a3d067efc
Cr-Commit-Position: refs/heads/master@{#304784}
Patch Set 1 #
Total comments: 3
Patch Set 2 : Change ExtensionMsg_*TabSpecificPermissions to ROUTED messages #
Total comments: 1
Patch Set 3 : Change for with iterators to a foreach. #Messages
Total messages: 16 (4 generated)
|