Fix navigator.plugins and navigator.mimeTypes for OOPIFs.
Previously, Page::pluginData() returned nullptr when the Page's main
frame was a RemoteFrame. This caused navigator.plugins and
navigator.mimeTypes to both return empty arrays from an OOPIF.
Page::pluginData() needed the main frame to run the
FrameLoader::allowPlugins check on it. This CL moves this check to
happen on the actual LocalFrame that needs to access
Page::pluginData().
BUG=
612200,
607981
Committed:
https://crrev.com/fb92f3e718335521cf454e53651235fbf30c10e2
Cr-Commit-Position: refs/heads/master@{#394942}