extension's context menu not run and selection text is invalid when text included link.

Issue #14869888 • Assigned to Sermet I.

Details

Created
Nov 29, 2017
Privacy
This issue is public.
Found in
  • Microsoft Edge
Reports
Reported by 1 person

Sign in to watch or report this issue.

Steps to reproduce

extension’s context menu not run and selection text is invalid when text included link.

Hi, I amd making context menu function with Edge web extension.

contextMenus creating link this.

browser.contextMenus.create({
title: 'test’,
contexts: [“selection”],
id: “selection_menu_id”
});


addListener code is link this.

chrome.contextMenus.onClicked.addListener(function (info, tab) {
console.log(info.menuItemId + ' clicked.’);
console.log('info’, info);
}


There are 2 problems on MS Edge.

  1. no info.selectionText value when selected link text.

also link text and normal text must be returned collect selection text.
We cannot get linked text.

  1. selected text and mouse pointer is on the link text, then right click, context menu isn’t shown.

if mouse pointer moves out of the link text, context menu is shown.

Please, check and fix these problems.

Attachments

0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “Sermet I.”

    You need to sign in to your Microsoft account to add a comment.

    Sign in