Enable PDF accessibility when RenderFrame's accessibility mode changes.
This does two things: (1) enables accessibility for a PDF plug-in when
the accessibility mode changes for a RenderFrame (previously we only
checked the mode once on creation), and (2) fixes a potential UAF
in PdfAccessibilityTree if the RenderFrame deletes the
RenderAccessibilityImpl, in particular during loading.
BUG=
54724
Committed:
https://crrev.com/5a0018c9adcdc04c636d382f06e34bd6569ac791
Cr-Commit-Position: refs/heads/master@{#406108}