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

Issue 1809043002: [Mac] CREDENTIAL: Fix chooser dialog after r380352 (Closed)

Created:
4 years, 9 months ago by Mike West
Modified:
4 years, 9 months ago
CC:
chromium-reviews, gcasto+watchlist_chromium.org, mkwst+watchlist-passwords_chromium.org, vabr+watchlistpasswordmanager_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Mac] CREDENTIAL: Fix chooser dialog after r380352 https://codereview.chromium.org/1781433002 enabled auto-resize for constrained web dialogs on Mac. It updated a number of callsites for `new ConstrainedWindowMac`, but didn't update the callsite in `password_prompt_view_bridge.mm`. Tests continued to pass, as the chooser _was_ being popped up, it was simply constrained to a 0x0 frame. According to https://codereview.chromium.org/1781433002/#msg15, it's not clear that we can add a test that would verify that this doesn't regress. That seems unfortunate. :( BUG=217034 , R=vabr@chromium.org, apacible@chromium.org, thakis@chromium.org TBR=vasilii@chromium.org Committed: https://crrev.com/0f924bea7baf260f8729e608e0ec1baac418f021 Cr-Commit-Position: refs/heads/master@{#381740}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -2 lines) Patch
M chrome/browser/ui/cocoa/passwords/password_prompt_view_bridge.mm View 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 17 (5 generated)
Mike West
vabr@: WDYT? apacible@, thakis@: Is there any test we could add that would prevent changes ...
4 years, 9 months ago (2016-03-17 11:05:48 UTC) #1
vabr (Chromium)
This LGTM, thanks for fixing the issue so quickly! Vaclav
4 years, 9 months ago (2016-03-17 13:07:03 UTC) #2
vabr (Chromium)
On 2016/03/17 13:07:03, vabr (Chromium) wrote: > This LGTM, thanks for fixing the issue so ...
4 years, 9 months ago (2016-03-17 13:50:27 UTC) #3
apacible
LGTM Thanks for the fix! Sorry for the inconvenience. This will need to be merged ...
4 years, 9 months ago (2016-03-17 17:29:16 UTC) #4
Mike West
> It makes sense to check to make sure the dialog has actually been shown, ...
4 years, 9 months ago (2016-03-17 17:40:19 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1809043002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1809043002/1
4 years, 9 months ago (2016-03-17 17:40:47 UTC) #9
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 9 months ago (2016-03-17 17:46:06 UTC) #10
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/0f924bea7baf260f8729e608e0ec1baac418f021 Cr-Commit-Position: refs/heads/master@{#381740}
4 years, 9 months ago (2016-03-17 17:47:14 UTC) #12
Nico
Yup, having test coverage here would be excellent. Looks like it landed here https://codereview.chromium.org/1610653002 without ...
4 years, 9 months ago (2016-03-18 18:46:53 UTC) #13
vabr (Chromium)
On 2016/03/18 18:46:53, Nico wrote: > Yup, having test coverage here would be excellent. Looks ...
4 years, 9 months ago (2016-03-21 14:05:22 UTC) #14
Nico
groby, you wrote some web contents constrained dialog thing once, didn't you? Do you remember ...
4 years, 9 months ago (2016-03-21 20:29:15 UTC) #16
groby-ooo-7-16
4 years, 9 months ago (2016-03-22 01:05:48 UTC) #17
Message was sent while issue was closed.
On 2016/03/21 20:29:15, Nico wrote:
> groby, you wrote some web contents constrained dialog thing once, didn't you?
Do
> you remember if that had tests checking for sizing somewhere?
> 
> (vabr: Asking for help for this is cool, but that's something that should
happen
> before committing untested code... If I'm misremembering groby's past
> adventures, I'd recommend asking on chromium-dev)

The closest I remember is probably the autocomplete sign-in dialog, here:
https://codereview.chromium.org/97993006 (the part to make this work was cycling
the runloop and draining the AR pool)

I'm not sure that's directly applicable here, though? What specifically are you
trying to test? Shouldn't CreateAndShowWebModalDialogMac cover the resize part?
(And looking at msg15 we tried for PrintPreview. IIRC what I did, it seems
_those_ tests need runloop cycling?)

Powered by Google App Engine
This is Rietveld 408576698