Information about the context of the menu action and the created menu items. For more information about each property, see OnClickData. The following properties are only set if the extension has host permissions for the given context: linkUrl, linkText, srcUrl, pageUrl, frameUrl, selectionText.

interface _OnShownInfo {
    contexts: browser.menus._ContextType[];
    editable: boolean;
    frameUrl?: string;
    linkText?: string;
    linkUrl?: string;
    mediaType?: string;
    menuIds: (string | number)[];
    pageUrl?: string;
    selectionText?: string;
    srcUrl?: string;
    targetElementId?: number;
    viewType?: ViewType;
}
Index

A list of all contexts that apply to the menu.

editable: boolean
frameUrl?: string
linkText?: string
linkUrl?: string
mediaType?: string
menuIds: (string | number)[]

A list of IDs of the menu items that were shown.

pageUrl?: string
selectionText?: string
srcUrl?: string
targetElementId?: number
viewType?: ViewType