[go: nahoru, domu]

tree: 2997ac454aa36ffd564912cffd5a62d564562128 [path history] [tgz]
  1. browser/
  2. common/
  3. renderer/
  4. COMMON_METADATA
  5. DIR_METADATA
  6. OWNERS
  7. README.md
components/guest_view/README.md

Guest View

Guest View is a mechanism for embedding a page inside another page. Unlike iframes, the embedded content has a distinct FrameTree. See the FrameTree explainer for details.

Guest View is the core implementation of several embedding features implemented in the extensions/ layer. Notable examples include:

  • The <webview> tag, which allows Chrome Apps and WebUI pages to embed content from the web.
  • MimeHandlerView, which allows certain MIME types to be loaded by an extension. There is a hard coded list of Mime Handler extensions: Chromium's PDF viewer and QuickOffice.

Guest Views are currently implemented using inner WebContents. By end of 2023, we plan to migrate Guest Views to use MPArch like other features which nest FrameTrees.

For debugging <webview>, the Browser Sample [source] app serves as a basic demo.