New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 740482 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner: ----
Closed: Feb 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 2
Type: Bug



Sign in to add a comment

`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:
 
Components: Platform>Extensions>API
Labels: Needs-Feedback
@vitaly: Could you please provide us a sample test file to check the issue from our end?

Thanks!!
I can not reproduce this bug in a specially created test extension... I will try to figure out additional condition if they exist.
Project Member

Comment 4 by sheriffbot@chromium.org, Jul 17 2017

Cc: sandeepkumars@chromium.org
Labels: -Needs-Feedback
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
Labels: Needs-Milestone
Cc: rbasuvula@chromium.org
Labels: Needs-Feedback
@ vitaly.zdanevich : Thanks for your update! As per comment #3 Could you please update on next steps of the issue.

Thanks in Advance! 
Status: WontFix (was: Unconfirmed)
Mac triage: WontFix issue without feedback.

Sign in to add a comment