-
Notifications
You must be signed in to change notification settings - Fork 114
Hide autofill popup only when webcontent is focused #170
Conversation
There will be a follow-up cleanup in browser-laptop and I will mark issue fixed there. Address fcaecc2 Auditors: @bridiver, @bbondy, @bsclifton
fix #7763 fix #7768 Auditors: @bridiver, @bbondy, @bsclifton Test Plan: Covered by automatic test
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
++
requires brave/muon#170 fix #7763 fix #7768 Auditors: @bridiver, @bbondy, @bsclifton Test Plan: Covered by automatic test
@@ -196,7 +196,7 @@ void AtomAutofillClient::UpdateAutofillPopupDataListValues( | |||
} | |||
|
|||
void AtomAutofillClient::HideAutofillPopup() { | |||
if (api_web_contents_) { | |||
if (api_web_contents_ && api_web_contents_->IsFocused()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure if this is the best way to handle this. I think the root of the problem is that we don't check the tabId before clearing the contextMenuDetail state in browser-laptop WINDOW_AUTOFILL_POPUP_HIDDEN
, but if we are going to keep something like this I think it should track the current popup_visible state by setting it along with the calls to OnPopupShown
and OnPopupHidden
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
addressed in brave/browser-laptop@396cdbc
and we will keep api_web_contents_->IsFocused()
for dismiss popup when scrolling page
follow-up of brave/muon#170 (comment) Auditors: @bridiver, @bbondy Test Plan: Covered by automatic test
follow-up of brave/muon#170 (comment) Auditors: @bridiver, @bbondy Test Plan: Covered by automatic test
There will be a follow-up cleanup in browser-laptop and I will mark
issue fixed there.
Address fcaecc2
Auditors: @bridiver, @bbondy, @bsclifton