`chrome.tabs.executeScript` with permission `activeTab` sometime inject script to not active tab
Reported by
vitaly.z...@gmail.com,
Jul 10 2017
|
||||||
Issue description
UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36
Steps to reproduce the problem:
1. Create event page with "permissions": [ "activeTab"]
2. Create file contentScript.js with content `alert(document.title)`
3. In the event page script add:
`
chrome.contextMenus.create({
id: 'root',
title: 'title'})
chrome.contextMenus.onClicked.addListener(_ => chrome.tabs.executeScript({file: 'contentScript.js'})
)`
What is the expected behavior?
Alert with the title of the current tab, ALWAYS.
What went wrong?
SOMETIMES alert with the previously selected tab.
Did this work before? N/A
Does this work in other browsers? N/A
Chrome version: 59.0.3071.115 Channel: stable
OS Version: OS X 10.12.5
Flash Version:
,
Jul 12 2017
@vitaly: Could you please provide us a sample test file to check the issue from our end? Thanks!!
,
Jul 17 2017
I can not reproduce this bug in a specially created test extension... I will try to figure out additional condition if they exist.
,
Jul 17 2017
Thank you for providing more feedback. Adding requester "sandeepkumars@chromium.org" to the cc list and removing "Needs-Feedback" label. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
Jul 26 2017
,
Jul 26 2017
@ vitaly.zdanevich : Thanks for your update! As per comment #3 Could you please update on next steps of the issue. Thanks in Advance!
,
Feb 5 2018
Mac triage: WontFix issue without feedback. |
||||||
►
Sign in to add a comment |
||||||
Comment 1 by patricia...@chromium.org
, Jul 11 2017