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

Issue 1160413004: Add hooks for BeforeInstallPromptEvent to be redispatched. (Closed)

Created:
5 years, 6 months ago by dominickn (DO NOT USE)
Modified:
5 years, 6 months ago
CC:
blink-reviews, chrome-apps-syd-reviews_chromium.org, dglazkov+blink
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Add hooks for BeforeInstallPromptEvent to be redispatched. Sites may wish to prevent an app banner prompt display upon loading, and defer the event until later in their own context. This CL provides a prompt() method on the BeforeInstallPromptEvent, which can be called to initiate this process. This completes the implementation of the event. Intent to implement the beforeinstallprompt event: https://groups.google.com/a/chromium.org/forum/#!msg/blink-dev/HSSqpbYd8W8/6I_InR9keNwJ Intent to ship the event: https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/OcJ0b7JPZ5M Associated Chromium CL: https://codereview.chromium.org/1173293006 BUG=490545 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=197461

Patch Set 1 #

Total comments: 4

Patch Set 2 : Tidying comments #

Patch Set 3 : Adding prompt method to expected API #

Patch Set 4 : Making prompt() return a promise #

Total comments: 4

Patch Set 5 : Returning Promise<void> and tidying implementation #

Total comments: 2

Patch Set 6 : Addressing reviewer comments #

Total comments: 1

Patch Set 7 : Renaming method per reviewer feedback #

Patch Set 8 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+26 lines, -0 lines) Patch
M LayoutTests/virtual/stable/webexposed/global-interface-listing-expected.txt View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/webexposed/global-interface-listing-expected.txt View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M Source/modules/app_banner/BeforeInstallPromptEvent.h View 1 2 3 2 chunks +3 lines, -0 lines 0 comments Download
M Source/modules/app_banner/BeforeInstallPromptEvent.cpp View 1 2 3 4 5 6 7 4 chunks +17 lines, -0 lines 0 comments Download
M Source/modules/app_banner/BeforeInstallPromptEvent.idl View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M public/platform/modules/app_banner/WebAppBannerClient.h View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 41 (11 generated)
dominickn (DO NOT USE)
Please review this version of the patch (from my chromium.org account). Thanks!
5 years, 6 months ago (2015-06-05 01:40:08 UTC) #2
mlamouri (slow - plz ping)
https://codereview.chromium.org/1160413004/diff/1/Source/modules/app_banner/BeforeInstallPromptEvent.cpp File Source/modules/app_banner/BeforeInstallPromptEvent.cpp (right): https://codereview.chromium.org/1160413004/diff/1/Source/modules/app_banner/BeforeInstallPromptEvent.cpp#newcode68 Source/modules/app_banner/BeforeInstallPromptEvent.cpp:68: // It will also silently fail if the event ...
5 years, 6 months ago (2015-06-06 21:40:55 UTC) #3
dominickn (DO NOT USE)
> https://codereview.chromium.org/1160413004/diff/1/Source/modules/app_banner/BeforeInstallPromptEvent.idl#newcode12 > Source/modules/app_banner/BeforeInstallPromptEvent.idl:12: void prompt(); > The tests are failing because of this addition. ...
5 years, 6 months ago (2015-06-09 02:58:02 UTC) #4
mlamouri (slow - plz ping)
On 2015/06/09 at 02:58:02, dominickn wrote: > > https://codereview.chromium.org/1160413004/diff/1/Source/modules/app_banner/BeforeInstallPromptEvent.idl#newcode12 > > Source/modules/app_banner/BeforeInstallPromptEvent.idl:12: void prompt(); > ...
5 years, 6 months ago (2015-06-09 03:37:02 UTC) #5
dominickn (DO NOT USE)
> I think you should at least point to the original Intent to Ship that ...
5 years, 6 months ago (2015-06-09 08:03:29 UTC) #6
mlamouri (slow - plz ping)
On 2015/06/09 at 08:03:29, dominickn wrote: > > I think you should at least point ...
5 years, 6 months ago (2015-06-09 15:39:58 UTC) #7
dominickn (DO NOT USE)
> Having prompt() return a promise will let the developer know if the call > ...
5 years, 6 months ago (2015-06-10 06:36:30 UTC) #8
mlamouri (slow - plz ping)
https://codereview.chromium.org/1160413004/diff/60001/Source/modules/app_banner/BeforeInstallPromptEvent.cpp File Source/modules/app_banner/BeforeInstallPromptEvent.cpp (right): https://codereview.chromium.org/1160413004/diff/60001/Source/modules/app_banner/BeforeInstallPromptEvent.cpp#newcode67 Source/modules/app_banner/BeforeInstallPromptEvent.cpp:67: ScriptPromise promise = resolver->promise(); You probably don't need a ...
5 years, 6 months ago (2015-06-11 00:42:17 UTC) #9
dominickn (DO NOT USE)
On 2015/06/11 00:42:17, Mounir Lamouri wrote: > https://codereview.chromium.org/1160413004/diff/60001/Source/modules/app_banner/BeforeInstallPromptEvent.cpp > File Source/modules/app_banner/BeforeInstallPromptEvent.cpp (right): > > https://codereview.chromium.org/1160413004/diff/60001/Source/modules/app_banner/BeforeInstallPromptEvent.cpp#newcode67 ...
5 years, 6 months ago (2015-06-11 05:40:31 UTC) #10
mlamouri (slow - plz ping)
On 2015/06/11 at 05:40:31, dominickn wrote: > > https://codereview.chromium.org/1160413004/diff/60001/Source/modules/app_banner/BeforeInstallPromptEvent.idl > > File Source/modules/app_banner/BeforeInstallPromptEvent.idl (right): > ...
5 years, 6 months ago (2015-06-11 16:39:58 UTC) #11
PaulKinlan
On 2015/06/11 16:39:58, Mounir Lamouri wrote: > On 2015/06/11 at 05:40:31, dominickn wrote: > > ...
5 years, 6 months ago (2015-06-11 22:03:20 UTC) #12
dominickn (DO NOT USE)
On 2015/06/11 22:03:20, PaulKinlan wrote: > On 2015/06/11 16:39:58, Mounir Lamouri wrote: > > On ...
5 years, 6 months ago (2015-06-12 00:24:06 UTC) #13
mlamouri (slow - plz ping)
On 2015/06/12 at 00:24:06, dominickn wrote: > On 2015/06/11 22:03:20, PaulKinlan wrote: > > I ...
5 years, 6 months ago (2015-06-12 18:29:31 UTC) #14
dominickn (DO NOT USE)
On 2015/06/12 18:29:31, Mounir Lamouri wrote: > I don't think you should throw directly. Throwing ...
5 years, 6 months ago (2015-06-17 07:06:28 UTC) #15
mlamouri (slow - plz ping)
Thanks! It looks good. Could you link the Chromium CL in the description and add ...
5 years, 6 months ago (2015-06-17 16:27:37 UTC) #16
dominickn (DO NOT USE)
I'd prefer this CL land before I submit the Chromium CL (I need to override ...
5 years, 6 months ago (2015-06-17 17:50:40 UTC) #17
mlamouri (slow - plz ping)
On 2015/06/17 at 17:50:40, dominickn wrote: > I'd prefer this CL land before I submit ...
5 years, 6 months ago (2015-06-17 17:53:27 UTC) #18
dominickn (DO NOT USE)
On 2015/06/17 17:53:27, Mounir Lamouri wrote: > The Chromium CL doesn't have to land or ...
5 years, 6 months ago (2015-06-17 18:37:54 UTC) #19
mlamouri (slow - plz ping)
With the method rename it lgtm. However, we need to make sure that userChoice() works ...
5 years, 6 months ago (2015-06-17 19:19:09 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1160413004/100001
5 years, 6 months ago (2015-06-17 19:33:52 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1160413004/120001
5 years, 6 months ago (2015-06-17 19:50:02 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_gn_rel on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/linux_chromium_gn_rel/builds/38639) mac_blink_rel on tryserver.blink (JOB_FAILED, ...
5 years, 6 months ago (2015-06-17 20:05:05 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1160413004/140001
5 years, 6 months ago (2015-06-17 21:46:56 UTC) #32
commit-bot: I haz the power
Try jobs failed on following builders: mac_blink_rel on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/mac_blink_rel/builds/59353)
5 years, 6 months ago (2015-06-18 00:45:53 UTC) #34
dominickn (DO NOT USE)
On 2015/06/18 00:45:53, commit-bot: I haz the power wrote: > Try jobs failed on following ...
5 years, 6 months ago (2015-06-18 19:03:39 UTC) #35
mlamouri (slow - plz ping)
On 2015/06/18 at 19:03:39, dominickn wrote: > On 2015/06/18 00:45:53, commit-bot: I haz the power ...
5 years, 6 months ago (2015-06-18 21:59:54 UTC) #36
dominickn (DO NOT USE)
On 2015/06/18 21:59:54, Mounir Lamouri wrote: > On 2015/06/18 at 19:03:39, dominickn wrote: > > ...
5 years, 6 months ago (2015-06-19 06:36:38 UTC) #37
dominickn (DO NOT USE)
Additionally, all tests passed before I added the change renaming the method.
5 years, 6 months ago (2015-06-19 06:37:49 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1160413004/140001
5 years, 6 months ago (2015-06-19 09:26:11 UTC) #40
commit-bot: I haz the power
5 years, 6 months ago (2015-06-19 10:29:35 UTC) #41
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=197461

Powered by Google App Engine
This is Rietveld 408576698