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

Issue 729904 link

Starred by 1 user

Issue metadata

Status: Assigned
Owner:
Cc:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 1
Type: Bug



Sign in to add a comment

The resolver function of NavigatorBattery.getBattery() is not called after GC.

Project Member Reported by horo@chromium.org, Jun 6 2017

Issue description

According to the  issue 517398 , currently the ScriptPromiseProperty doesn't holds
the strong resolver references. So the resolver function could be GCed while
waiting for the response from the server. The holder of the ScriptPromiseProperty
must be kept alive until the promise is resolved.

There is a tests for this bug https://codereview.chromium.org/2919233002/.

I found this bug while inspecting the  issue 728013 . I think NavigatorBattery must
implement ScriptWrappable::HasPendingActivity() like
https://codereview.chromium.org/2922863002.
 

Sign in to add a comment