chrome ver.59 problem - contextMenus cannot create item with duplicate id

2,143 views
Skip to first unread message

曾信夫

unread,
Jul 3, 2017, 12:31:34 AM7/3/17
to Chromium-Extensions-Announce
Hi Everyone, 

I have some chrome extensions,
they're running on chrome version 58 and older versions well.

When I upgrade chrome to version 59,
some extensions disappears from context menu,
and I got a error message from eventPage at dev console:

Unchecked runtime.lastError while running contextMenus.create: Cannot create item with duplicate id Easy Emoji
    at chrome
-extension://olffnpidkbbgglajgmbjjllkbnmkehkc/eventPage.js:2687:21

code that creates context menu item from eventPage:
chrome.contextMenus.create({ id: "Easy Emoji", title: chrome.i18n.getMessage("appOpenEmojiWindow"), contexts: ["all"] });


What can I do to resolve this problem? 
Thanks a lot for advices.

PhistucK

unread,
Jul 3, 2017, 1:02:55 AM7/3/17
to 曾信夫, Chromium-Extensions-Announce
The error was there from 2014.
Sounds like your code is suddenly running multiple times...


PhistucK

--
You received this message because you are subscribed to the Google Groups "Chromium-Extensions-Announce" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extensions+unsub...@chromium.org.
To post to this group, send email to chromium-extensions@chromium.org.
Visit this group at https://groups.google.com/a/chromium.org/group/chromium-extensions/.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-extensions/7116db3c-888c-419c-a37c-423fd9fb3afe%40chromium.org.
For more options, visit https://groups.google.com/a/chromium.org/d/optout.

Message has been deleted

曾信夫

unread,
Jul 3, 2017, 9:18:29 AM7/3/17
to Chromium-Extensions-Announce, tzeng...@gmail.com
Hi, PhistucK:

Thank you for your reply^^

I reinstall my extensions all,

and I found one cause the problem. 

When I uninstall it, all is well.

PhistucK

unread,
Jul 3, 2017, 9:52:26 AM7/3/17
to 曾信夫, Chromium-Extensions-Announce
So is there still an issue, or have you managed?


PhistucK

--
You received this message because you are subscribed to the Google Groups "Chromium-Extensions-Announce" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extensions+unsub...@chromium.org.
To post to this group, send email to chromium-extensions@chromium.org.
Visit this group at https://groups.google.com/a/chromium.org/group/chromium-extensions/.

曾信夫

unread,
Jul 3, 2017, 10:35:59 AM7/3/17
to Chromium-Extensions-Announce, tzeng...@gmail.com
I have send the issue to extension developer,
I don't install that extension until it be fixed.

PhistucK

unread,
Jul 3, 2017, 1:58:43 PM7/3/17
to 曾信夫, Chromium-Extensions-Announce
I am not sure I understand, do you mean that if two extensions that are installed and both of them register the same context menu ID, one will get the duplicate ID error?


PhistucK

On Mon, Jul 3, 2017 at 5:35 PM, 曾信夫 <tzeng...@gmail.com> wrote:
I have send the issue to extension developer,
I don't install that extension until it be fixed.

--
You received this message because you are subscribed to the Google Groups "Chromium-Extensions-Announce" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extensions+unsub...@chromium.org.
To post to this group, send email to chromium-extensions@chromium.org.
Visit this group at https://groups.google.com/a/chromium.org/group/chromium-extensions/.

曾信夫

unread,
Jul 3, 2017, 11:38:44 PM7/3/17
to Chromium-Extensions-Announce, tzeng...@gmail.com
My extension context menu id is it's own name, I thought that's impossible of the same context menu id... confusing...😵

PhistucK

unread,
Jul 4, 2017, 12:37:35 AM7/4/17
to 曾信夫, Chromium-Extensions-Announce
I asked one thing and you answered another. :)
Can you answer my question?


PhistucK

On Tue, Jul 4, 2017 at 6:38 AM, 曾信夫 <tzeng...@gmail.com> wrote:
My extension context menu id is it's own name, I thought that's impossible of the same context menu id... confusing...😵

--
You received this message because you are subscribed to the Google Groups "Chromium-Extensions-Announce" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extensions+unsub...@chromium.org.
To post to this group, send email to chromium-extensions@chromium.org.
Visit this group at https://groups.google.com/a/chromium.org/group/chromium-extensions/.
Reply all
Reply to author
Forward
0 new messages