New issue
Advanced search Search tips

Issue 617863 link

Starred by 8 users

Issue metadata

Status: WontFix
Owner:
Closed: Jun 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Bug



Sign in to add a comment

getting error as "TypeError: chrome.mediaGalleries.removeAllGalleryWatch is not a function" in chrome 51

Reported by sairavis...@gmail.com, Jun 7 2016

Issue description

UserAgent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.84 Safari/537.36

Steps to reproduce the problem:
Use any chrome extension which is using  removeAllGalleryWatch  method of chrome.mediaGalleries, you will see this error.

What is the expected behavior?

What went wrong?
you will see this error in 51 version chrome only, in 50 no error.

Did this work before? Yes 50 version before update to 51 version

Chrome version: 51.0.2704.84  Channel: stable
OS Version: 6.1 (Windows 7, Windows Server 2008 R2)
Flash Version: Shockwave Flash 21.0 r0
 
screenshot.png
111 KB View Download

Comment 1 by l...@chromium.org, Jun 9 2016

Hi sairavisekhar.nanduri@, could you please provide a small code example for reproduction?  Thanks
@Sai: Looks to have been removed due to low usage: 
https://chromium.googlesource.com/chromium/src/+/804c8718a55a41c3b783337f78ef0caf2368cf4c

Comment 3 by l...@chromium.org, Jun 9 2016

Owner: l...@chromium.org
Status: WontFix (was: Unconfirmed)
Thanks x31forest!  I've contacted one of our writers to see if we can update the docs and avoid future confusion.

Comment 4 by x31for...@gmail.com, Jun 10 2016

What would be a good automated practice for dev teams to detect such
breaking changes? I would have liked to detected this issue at the moment
it was marked as deprecated.

Comment 5 by l...@chromium.org, Jun 10 2016

Cc: tommycli@chromium.org
Components: Platform>Apps>MediaGalleries
A surprise deprecation can be unpleasant.  Those who implement the deprecation can manually add in a console warning (as in the case with Geolocation API on unsecure origins) and update the docs before landing.

I’m not sure what an automated solution would look like, but it could save everyone time.  If you have ideas, please do make a feature request.
Hey - Yeah sorry about that. It's odd that the updated docs haven't made it to https://developer.chrome.com/apps/mediaGalleries yet.

Yes, next time a console warning would be a good idea.

I recommend using chrome.mediaGalleries.removeGalleryWatch instead. The app will need to keep track of the gallery watch IDs and loop over them.


Sign in to add a comment