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

Issue 6902196: When start dragging event is detected, call hidePopups() to hide all popup windows. (Closed)

Created:
9 years, 7 months ago by honten
Modified:
9 years, 2 months ago
Reviewers:
Ilya Sherman, dhollowa
CC:
chromium-reviews, jam
Visibility:
Public.

Description

When start dragging event is detected, call hidePopups() to hide all popup windows. When hide autofill popup window, we should not clear autofilled text. The patch also needs WebKit side change. Please refer to https://bugs.webkit.org/show_bug.cgi?id=60010 BUG=80817 TEST= 1.open the page with multi fields (name,surname,email,confirm email, email pro...) 2.autofill the name fields 3.select (to move/copy) name field 4.start drag'n'drop the name field and autofill popup windows should be dismissed.

Patch Set 1 #

Patch Set 2 : Fix assert problem. #

Patch Set 3 : Change to use acceptCurrentAutoFilled(). #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -0 lines) Patch
M content/renderer/render_view.cc View 1 2 1 chunk +6 lines, -0 lines 3 comments Download

Messages

Total messages: 19 (0 generated)
honten.org
Please review it. Just I added two lines to dismiss autofill popup window once drag'n'drop ...
9 years, 7 months ago (2011-05-01 20:17:40 UTC) #1
dhollowa
I'm seeing an assert fire and what appears to be a race in the drag-n-drop ...
9 years, 7 months ago (2011-05-02 16:19:54 UTC) #2
takano.naoki_gmail.com
I'll make sure with debug binary... On Mon, May 2, 2011 at 9:19 AM, <dhollowa@chromium.org> ...
9 years, 7 months ago (2011-05-02 16:49:16 UTC) #3
honten.org
The reason why the assertion failed was the autofilled field was cleared when dragging started. ...
9 years, 7 months ago (2011-05-03 05:40:20 UTC) #4
Ilya Sherman
On 2011/05/03 05:40:20, honten wrote: > The reason why the assertion failed was the autofilled ...
9 years, 7 months ago (2011-05-03 05:45:47 UTC) #5
takano.naoki_gmail.com
Ilya, I also commented in bugzilla. Could you take a look? Thanks, On Mon, May ...
9 years, 7 months ago (2011-05-03 06:37:22 UTC) #6
honten.org
Please review. Also I updated WebKit patch. Thanks, On 2011/05/03 06:37:22, takano.naoki_gmail.com wrote: > Ilya, ...
9 years, 7 months ago (2011-05-07 02:17:58 UTC) #7
honten.org
Oops, still there is problem in debug version... I'll look into it... On 2011/05/07 02:17:58, ...
9 years, 7 months ago (2011-05-07 07:36:15 UTC) #8
Ilya Sherman
http://codereview.chromium.org/6902196/diff/9001/content/renderer/render_view.cc File content/renderer/render_view.cc (right): http://codereview.chromium.org/6902196/diff/9001/content/renderer/render_view.cc#newcode1671 content/renderer/render_view.cc:1671: webview()->acceptCurrectAutoFilled(); You probably want to swap the order of ...
9 years, 7 months ago (2011-05-07 09:07:10 UTC) #9
honten.org
http://codereview.chromium.org/6902196/diff/9001/content/renderer/render_view.cc File content/renderer/render_view.cc (right): http://codereview.chromium.org/6902196/diff/9001/content/renderer/render_view.cc#newcode1671 content/renderer/render_view.cc:1671: webview()->acceptCurrectAutoFilled(); Hmmm... Even if I change the order of ...
9 years, 7 months ago (2011-05-09 02:30:32 UTC) #10
Ilya Sherman
http://codereview.chromium.org/6902196/diff/9001/content/renderer/render_view.cc File content/renderer/render_view.cc (right): http://codereview.chromium.org/6902196/diff/9001/content/renderer/render_view.cc#newcode1671 content/renderer/render_view.cc:1671: webview()->acceptCurrectAutoFilled(); On 2011/05/09 02:30:32, honten wrote: > Hmmm... > ...
9 years, 7 months ago (2011-05-09 07:40:05 UTC) #11
honten.org
Now I know why we encounter assertion error. If hidePopup() is called, AutofillPopupWindow clears all ...
9 years, 7 months ago (2011-05-12 19:53:06 UTC) #12
Ilya Sherman
On 2011/05/12 19:53:06, honten wrote: > Now I know why we encounter assertion error. > ...
9 years, 7 months ago (2011-05-13 00:22:18 UTC) #13
takano.naoki_gmail.com
Thank you for your comment in Webkit bugzilla , Ilya. But still I wonder why ...
9 years, 7 months ago (2011-05-13 00:33:16 UTC) #14
Ilya Sherman
On 2011/05/13 00:33:16, takano.naoki_gmail.com wrote: > Thank you for your comment in Webkit bugzilla , ...
9 years, 7 months ago (2011-05-13 01:07:12 UTC) #15
takano.naoki_gmail.com
Ah-ha!! I got it. Thank you for your explanation. On Thu, May 12, 2011 at ...
9 years, 7 months ago (2011-05-13 01:30:05 UTC) #16
honten.org
After the discussion in WebKig bugzilla, the assertion bug is not only specific for autofill, ...
9 years, 7 months ago (2011-05-17 17:04:29 UTC) #17
dhollowa
It sounds like the correct path is to fix the underlying drag&drop bug first. On ...
9 years, 7 months ago (2011-05-17 19:55:01 UTC) #18
takano.naoki_gmail.com
9 years, 7 months ago (2011-05-17 19:56:24 UTC) #19
I try it.

But I've never fixed Drag&Drop related bug, so it might take a while.

Thanks,

On Tue, May 17, 2011 at 12:55 PM,  <dhollowa@chromium.org> wrote:
>
> It sounds like the correct path is to fix the underlying drag&drop bug
> first.
>
> On 2011/05/17 17:04:29, honten wrote:
>>
>> After the discussion in WebKig bugzilla, the assertion bug is not only
>
> specific
>>
>> for autofill, but more general drag&drop bug in WebKit.
>
>> Tony suggested we can review and land, but the behavior might be changed
>> if we
>> don't fix the drag&drop bug.
>
>> So should I fix the drag&drop bug first?
>
>> Or can I continue fixing this bug and land it?
>
>> Thanks,
>
>> On 2011/05/13 01:30:05, http://takano.naoki_gmail.com wrote:
>> > Ah-ha!!
>> >
>> > I got it. Thank you for your explanation.
>> >
>> > On Thu, May 12, 2011 at 6:07 PM,  <mailto:isherman@chromium.org> wrote:
>> > > On 2011/05/13 00:33:16, http://takano.naoki_gmail.com wrote:
>> > >>
>> > >> Thank you for your comment in Webkit bugzilla , Ilya.
>> > >
>> > >> But still I wonder why we need to call clear whenever accept the
>> > >> suggested results.
>> > >> For example, select tag just leaves the result when hidePopup() is
>
> called.
>>
>> > >
>> > > For Autofill, there are two types of values that text fields can have.
>> &nbsp;When
>> > > the
>> > > popup menu is open and you hover over the suggestions, the fields have
>> > > "suggested" values, which are displayed to the user, but not visible
>> > > to
>> > > JavaScript. &nbsp;When the user selects a suggestion, we want to
>> > > commit
>> these
>> > > suggestions, so that they are also visible to JavaScript.
>> > > &nbsp;Currently,
>> we do
>> > > this
>> > > by first clearing all of the suggested values, and then subsequently
>
> setting
>>
>> > > all
>> > > of the actual values. &nbsp;We don't have to do these two steps
>
> separately,
>>
>> but
>> > > in
>> > > the end we want each field to have an actual value set and no
>> > > suggested
>> > > value
>> > > set.
>> > >
>> > > http://codereview.chromium.org/6902196/
>> > >
>
>
>
> http://codereview.chromium.org/6902196/
>

Powered by Google App Engine
This is Rietveld 408576698