Chromium Code Reviews
Help | Chromium Project | Sign in
(71)

Issue 3169030: Change the conditions on which the popup blocked animation is shown to be more reliable. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
4 years, 9 months ago by Robert Sesek
Modified:
4 years ago
Reviewers:
Nico, Scott Hess
CC:
chromium-reviews, John Grabowski, brettw-cc_chromium.org, pam+watch_chromium.org, ben+cc_chromium.org, Paul Godavari, Paweł Hajdan Jr.
Base URL:
http://src.chromium.org/git/chromium.git
Visibility:
Public.

Description

Change the conditions on which the popup blocked animation is shown to be more reliable. This also prevents AnimatableImage from running after the window has been closed. BUG=50000, 50395 TEST=Get a blocked popup. Open it. Animation not shown. TEST=Go to a page that creates a popup on document.unload. Close the tab. Animation not shown. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=57996

Patch Set 1 #

Patch Set 2 : Address shess' comments in the bug #

Total comments: 4

Patch Set 3 : '' #

Total comments: 1

Patch Set 4 : Use |-close| #

Patch Set 5 : fix compile #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -17 lines) Patch
M chrome/browser/cocoa/animatable_image_unittest.mm View 2 3 1 chunk +10 lines, -0 lines 2 comments Download
M chrome/browser/cocoa/download_started_animation_mac.mm View 2 3 4 3 chunks +10 lines, -8 lines 3 comments Download
M chrome/browser/cocoa/popup_blocked_animation_mac.mm View 1 2 3 4 3 chunks +8 lines, -7 lines 0 comments Download
M chrome/browser/tab_contents/tab_contents.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
Trybot results:  mac 
Commit: CQ not working?

Messages

Total messages: 14 (0 generated)
Robert Sesek
4 years, 9 months ago (2010-08-19 22:34:23 UTC) #1
Nico
LG, but "This also prevents on Mac the animation after the window has been shown." ...
4 years, 9 months ago (2010-08-19 22:36:47 UTC) #2
Robert Sesek
I've addressed shess' comments from the bug.
4 years, 9 months ago (2010-08-20 15:51:50 UTC) #3
Nico
http://codereview.chromium.org/3169030/diff/4001/5002 File chrome/browser/cocoa/animatable_image.mm (right): http://codereview.chromium.org/3169030/diff/4001/5002#newcode135 chrome/browser/cocoa/animatable_image.mm:135: } what's this needed for?
4 years, 9 months ago (2010-08-20 16:02:29 UTC) #4
Robert Sesek
http://codereview.chromium.org/3169030/diff/4001/5002 File chrome/browser/cocoa/animatable_image.mm (right): http://codereview.chromium.org/3169030/diff/4001/5002#newcode135 chrome/browser/cocoa/animatable_image.mm:135: } On 2010/08/20 16:02:29, Nico wrote: > what's this ...
4 years, 9 months ago (2010-08-20 16:25:46 UTC) #5
Nico
http://codereview.chromium.org/3169030/diff/4001/5002 File chrome/browser/cocoa/animatable_image.mm (right): http://codereview.chromium.org/3169030/diff/4001/5002#newcode135 chrome/browser/cocoa/animatable_image.mm:135: } On 2010/08/20 16:25:46, rsesek wrote: > On 2010/08/20 ...
4 years, 9 months ago (2010-08-20 16:27:12 UTC) #6
Robert Sesek
http://codereview.chromium.org/3169030/diff/4001/5002 File chrome/browser/cocoa/animatable_image.mm (right): http://codereview.chromium.org/3169030/diff/4001/5002#newcode135 chrome/browser/cocoa/animatable_image.mm:135: } On 2010/08/20 16:27:12, Nico wrote: > On 2010/08/20 ...
4 years, 9 months ago (2010-08-20 19:01:47 UTC) #7
Nico
On 2010/08/20 19:01:47, rsesek wrote: > http://codereview.chromium.org/3169030/diff/4001/5002 > File chrome/browser/cocoa/animatable_image.mm (right): > > http://codereview.chromium.org/3169030/diff/4001/5002#newcode135 > ...
4 years, 9 months ago (2010-08-20 21:40:48 UTC) #8
Scott Hess
[I cannot fully remember what I was talking about, but ...] When I was experimenting ...
4 years, 9 months ago (2010-08-30 17:07:38 UTC) #9
Scott Hess
lgtm, i think. http://codereview.chromium.org/3169030/diff/3002/11005 File chrome/browser/cocoa/popup_blocked_animation_mac.mm (right): http://codereview.chromium.org/3169030/diff/3002/11005#newcode173 chrome/browser/cocoa/popup_blocked_animation_mac.mm:173: [animation_ orderOut:self]; Seeing this pattern in ...
4 years, 9 months ago (2010-08-30 17:08:37 UTC) #10
Robert Sesek
Can I get another look? I've confirmed that |-close|ing the window tears down the layers ...
4 years, 9 months ago (2010-08-31 13:22:08 UTC) #11
Scott Hess
LGTM, though suggest minor comment tweaks. http://codereview.chromium.org/3169030/diff/24001/25002 File chrome/browser/cocoa/download_started_animation_mac.mm (right): http://codereview.chromium.org/3169030/diff/24001/25002#newcode166 chrome/browser/cocoa/download_started_animation_mac.mm:166: - (void)closeAnimation { ...
4 years, 9 months ago (2010-08-31 14:29:47 UTC) #12
Nico
LG http://codereview.chromium.org/3169030/diff/24001/25001 File chrome/browser/cocoa/animatable_image_unittest.mm (right): http://codereview.chromium.org/3169030/diff/24001/25001#newcode43 chrome/browser/cocoa/animatable_image_unittest.mm:43: [animation_ close]; this just checks that nothing crashes ...
4 years, 9 months ago (2010-08-31 15:14:54 UTC) #13
Robert Sesek
4 years, 9 months ago (2010-08-31 15:15:52 UTC) #14
http://codereview.chromium.org/3169030/diff/24001/25001
File chrome/browser/cocoa/animatable_image_unittest.mm (right):

http://codereview.chromium.org/3169030/diff/24001/25001#newcode43
chrome/browser/cocoa/animatable_image_unittest.mm:43: [animation_ close];
On 2010/08/31 15:14:54, Nico wrote:
> this just checks that nothing crashes in the cancel codepath, not that it
works,
> right?

Correct.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld ec887be