Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(179)

Issue 1257823003: Revert of Refactor BeforeInstallPromptEvent to use ScriptPromiseProperty (Closed)

Created:
5 years, 4 months ago by sof
Modified:
5 years, 3 months ago
CC:
blink-reviews, blink-reviews-bindings_chromium.org, chrome-apps-syd-reviews_chromium.org, dglazkov+blink, mlamouri+watch-blink_chromium.org, vivekg_samsung, vivekg
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Revert of Refactor BeforeInstallPromptEvent to use ScriptPromiseProperty (patchset #11 id:250001 of https://codereview.chromium.org/1247283004/) Reason for revert: Causes app_banner/app-banner-event-prompt.html failure, http://test-results.appspot.com/dashboards/flakiness_dashboard.html#tests=app_banner%2Fapp-banner-event-prompt.html Original issue's description: > Refactor BeforeInstallPromptEvent to use ScriptPromiseProperty > > This stops the event holding a ScriptPromise as a member, which may > lead to a memory leak. Instead, ScriptPromiseProperty members are held > as members in the event. A WebCallbacks subclass is used to store a > pointer to the necessary ScriptPromiseProperty in the associated event, > with the interface exposed to Chromium. When a banner event is resolved, > the WebCallbacks implementation in modules/app_banner looks up the > ScriptPromiseProperty and resolves its promise. This also makes > resolving the prompt promise simpler as well, as it occurs entirely in the > event. > > This CL also removes the app-banner-event-prompt.html test from > LeakExpectations, and fixes some bugs in the test relating to promise > resolution. > > BUG=504675 > > Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=199472 TBR=mlamouri@chromium.org,yhirano@chromium.org,dominickn@chromium.org NOPRESUBMIT=true NOTREECHECKS=true NOTRY=true BUG=504675 Committed: https://crrev.com/537f90db49913a16a493166aa02521cb1fe1e04a git-svn-id: svn://svn.chromium.org/blink/trunk@199666 bbb929c8-8fbe-4397-9dbb-9b2b20218538

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -114 lines) Patch
M LayoutTests/LeakExpectations View 1 chunk +2 lines, -0 lines 0 comments Download
M LayoutTests/app_banner/app-banner-event-prompt.html View 4 chunks +7 lines, -13 lines 0 comments Download
M Source/bindings/core/v8/ScriptPromiseProperties.h View 1 chunk +1 line, -3 lines 0 comments Download
D Source/modules/app_banner/AppBannerCallbacks.h View 1 chunk +0 lines, -27 lines 0 comments Download
D Source/modules/app_banner/AppBannerCallbacks.cpp View 1 chunk +0 lines, -20 lines 0 comments Download
M Source/modules/app_banner/AppBannerController.cpp View 2 chunks +1 line, -8 lines 0 comments Download
M Source/modules/app_banner/AppBannerPromptResult.h View 1 chunk +3 lines, -1 line 0 comments Download
M Source/modules/app_banner/AppBannerPromptResult.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/app_banner/BeforeInstallPromptEvent.h View 3 chunks +6 lines, -15 lines 0 comments Download
M Source/modules/app_banner/BeforeInstallPromptEvent.cpp View 5 chunks +18 lines, -24 lines 0 comments Download
M Source/modules/modules.gypi View 1 chunk +0 lines, -2 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
sof
Created Revert of Refactor BeforeInstallPromptEvent to use ScriptPromiseProperty
5 years, 4 months ago (2015-07-29 15:47:58 UTC) #1
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1257823003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1257823003/1
5 years, 4 months ago (2015-07-29 15:48:15 UTC) #2
commit-bot: I haz the power
Committed patchset #1 (id:1) as https://src.chromium.org/viewvc/blink?view=rev&revision=199666
5 years, 4 months ago (2015-07-29 15:48:42 UTC) #3
commit-bot: I haz the power
5 years, 3 months ago (2015-09-23 11:53:48 UTC) #4
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/537f90db49913a16a493166aa02521cb1fe1e04a

Powered by Google App Engine
This is Rietveld 408576698