Skip to content

Inabox Scroll Position API #10995

@zhouyx

Description

@zhouyx

For inabox to functional properly, it requires scroll positions from host.

Position Data

{
  viewportRect: viewport rect relative to host doc,
  positionRect: inabox iframe rect relative to viewport,
}

Two Approaches to get position

  • Host doc notifies inabox iframe its new position on window 'scroll'/'resize'.
  • Inabox requests its position from host.

Privacy Concern

  • Sending viewport scroll info to cross origin iframe.
  • Sending position info to cross origin iframe when its not in viewport.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions