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

Issue 763395 link

Starred by 2 users

Issue metadata

Status: WontFix
Owner: ----
Closed: Sep 2017
Cc:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Mac
Pri: 2
Type: Bug



Sign in to add a comment

requestAnimationFrame callback not called in extension background page

Reported by greine...@gmail.com, Sep 8 2017

Issue description

UserAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36

Steps to reproduce the problem:
1. Open JavaScript console for an extension's background page.
2. Execute `requestAnimationFrame(() => console.log("foo"))`.

What is the expected behavior?
Console output shows string "foo".

What went wrong?
Console output doesn't show string "foo".

Did this work before? N/A 

Does this work in other browsers? Yes

Chrome version: 59.0.3071.115  Channel: stable
OS Version: 16.04
Flash Version: 26.0.0.151

It works as expected in Firefox 56.0b10
 
Labels: Needs-Milestone
Cc: divya.pa...@techmahindra.com
Labels: Triaged-ET OS-Mac OS-Windows
Status: Untriaged (was: Unconfirmed)
Able to reproduce the issue on Ubuntu 14.04, Windows 10 and Mac 10.1.6 with the reported version 59.0.3071.115 Stable, latest Stable 61.0.3163.79 and latest canary 63.0.3212.0. Issue is reproducible on M-50 [50.0.2661.0] and is Non-Regression issue. Hence, marking it as Untriaged.
Status: WontFix (was: Untriaged)
Extension background pages aren't visible so we don't run any animations in them. This behavior matches that of background tabs.

Comment 4 by greine...@gmail.com, Sep 11 2017

While the background page itself is indeed not visible, it can generate image data to update the browser action icon (see https://developer.chrome.com/extensions/browserAction#icon). Therefore having `requestAnimationFrame()` could be useful to implement smooth animations of the browser action icon.

I apologize for not mentioning this in the issue description.

Sign in to add a comment