This is back merge CL request for https://chromium-review.googlesource.com/c/chromium/src/+/7421209
Note that Supplementable class is not available in M144, we have manually added CachedPermissionStatus to ExecutionContext, which provides the same functionality as Supplementable class.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
LGTM % one comment.
Confirmed that the `html_permission_element` changes and tests are the same, the only difference that is not a trivial merge is how CachedPermissionStatus is now keyed to ExecutionContext, which required some mechanical changes given the refactoring work on removing `Supplementable`'s that was done in M144 but reverted in M145.
Member<CachedPermissionStatus> cached_permission_status_;Do we need to remove this member from LocalDOMWindow?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Commit-Queue | +1 |
Member<CachedPermissionStatus> cached_permission_status_;Do we need to remove this member from LocalDOMWindow?
| 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. |
| Code-Review | +1 |
| 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. |
3 is the latest approved patch-set.
No files were changed between the latest approved patch-set and the submitted one.
[M144][PEPC]: Move CachedPermissionStatus to ExecutionContext
Refactor `CachedPermissionStatus` to be a supplement of
`ExecutionContext` rather than `LocalDOMWindow`.
By anchoring the cache to `ExecutionContext`, call sites can now
safely use `GetExecutionContext()`. This prevents the null pointer
dereference of `domWindow()` when the document does not have a
browsing context (for example document is created from
`cloneNode()`). Typically in this case the document still has a valid
`ExecutionContext` (the `domWindow()` of the Document in which they were
created)
Fixed: 468659211, 475127000
(cherry picked from commit bd22794b22d95b035dc2d79ce3b1584c1ad842e7)
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |