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

Issue 707881 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner:
Closed: Apr 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Mac
Pri: 1
Type: Bug-Regression



Sign in to add a comment

Spurious error message in Extension: chrome.clipboard is not supported on this platform or manifest version

Reported by igreilly...@gmail.com, Apr 3 2017

Issue description

UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.133 Safari/537.36

Steps to reproduce the problem:
1. request clipboardRead and clipboardWrite permissions in an extension
2. The error message is printed to the console in DevTools for the html/background.html page in the attached example.
3.

What is the expected behavior?
No error message should be printed when using clipboardRead and clipboardWrite permissions in an extension.

What went wrong?
Spurious error message.  

The clipboardRead and clipboardWrite permissions are still being honored and work as expected.

Did this work before? Yes 56.xxx

Does this work in other browsers? N/A

Chrome version: 57.0.2987.133  Channel: stable
OS Version: 10.0
Flash Version:
 
store-test.zip
306 KB Download
Labels: Needs-Triage-M57
Cc: brajkumar@chromium.org
Labels: Needs-Feedback
Tested this issue on Windows-10 using chrome latest stable #57.0.2987.133. By adding the provided extension in the original comment observed few error saying this file is deprecated.

Reporter@ Could you please check the attached screen-shot and please confirm is this is error message displayed from your end? If yes, I am observing the same on older version of chrome #55.0.2882.0 as well.

Thanks! 

707881.png
96.0 KB View Download
The attached image shows the message (in red) 

To duplicate:
Load the unpacked extension from the Extensions tab
From the Extensions tab click on html/background.html link in Inspect views.

Your console output looks like it is from the html/main.html page - those are warnings from Polymer, not relevant to this issue.

You may seem some log messages starting with injecting: - those are just debug messages for injecting content scripts into any open pages.

This message in red was new for me in 57. It did not occur in 56
clipboard.png
11.1 KB View Download
Project Member

Comment 4 by sheriffbot@chromium.org, Apr 4 2017

Labels: -Needs-Feedback
Thank you for providing more feedback. Adding requester "brajkumar@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-Bisect
Cc: pbomm...@chromium.org gov...@chromium.org
Components: Platform>Extensions>API
Labels: -Pri-2 -Needs-Bisect -Needs-Triage-M57 hasbisect-per-revision ReleaseBlock-Stable M-58 OS-Linux OS-Mac Pri-1
Owner: jen...@chromium.org
Status: Assigned (was: Unconfirmed)
Able to reproduce on Windows 10, Ubuntu 14.04 and Mac OS 10.12 using chrome stable M57-57.0.2987.133.

Bisect Information:
=====================
Good build: 57.0.2970.0
Bad Build : 57.0.2972.0

You are probably looking for a change made after 441545 (known good), but no later than 441546 (first known bad).

Change Log URL: 
https://chromium.googlesource.com/chromium/src/+log/7d0854a8e76496275c6ce08d72a21dca270e4469..6298fc54177c7f2919fc158a3b43e7a3e08f36fe

From the above change log suspecting below change
Review URL: https://codereview.chromium.org/2379573008

jennyz@ - Could you please check whether this is caused with respect to your change, if not please help us in assigning it to the right owner.

Thanks!
jennyz@ Gentle remainder to get an update on this stable blocker issue.

Thanks,
jennyz@ Can we we target the fix before next Beta Release which would be the Pre-Stable candidate. If the bug is not critical, please feel to punt to next milestone.

FYI: RC cut @ 4.00 PM Monday 04/17.

Comment 9 by jen...@chromium.org, Apr 13 2017

Status: WontFix (was: Assigned)
chrome.clipboard is only made available on chromeos platform. This is by design.
jennyz@ The error message is printed in the following situation (per the originally attached example):

1. clipboard permission is NOT requested
2. NO chrome.clipboard methods are used
3. The clipboardRead and clipboardWrite ARE requested and used

clipboardRead and clipboardWrite are supported on all platforms and have been for a long time.

per the documentation:

clipboardRead is required if the extension or app uses document.execCommand('paste').

clipboardWrite indicates the extension or app uses document.execCommand('copy') or document.execCommand('cut'). This permission is required for hosted apps; it's recommended for extensions and packaged apps.

The attached example in the original post uses all three document.execCommand from above.  They all still work as expected.

The only problem is that the error message: "chrome.clipboard is not supported on this platform or manifest version" is printed to the console even though it is irrelevant and misleading.

Sign in to add a comment