[Trusted Types] Store Trusted Types for main & isolated worlds.
The current implementation assumes that TT is shared between all users of a DOM instance, so that the main world & extensions will "see" the same TT instance. This isn't desirable, and also doesn't actually work, as the attached bug demonstrates. This patch creates & stores separate TT (namely, TTPolicyFactory) instances for each "world". Bug: 1149364, 984979 Change-Id: I12351e9d475907891b8f547b9f4568f3056bb527 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2584771 Commit-Queue: Daniel Vogelheim <vogelheim@chromium.org> Reviewed-by:Kentaro Hara <haraken@chromium.org> Reviewed-by:
Yuki Shiino <yukishiino@chromium.org> Cr-Commit-Position: refs/heads/master@{#836587}
Showing
Please register or sign in to comment