Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FindMode: clear focus of HUD iframe on exit #3409

Merged
merged 4 commits into from
Jan 10, 2020

Conversation

gdh1995
Copy link
Contributor

@gdh1995 gdh1995 commented Oct 13, 2019

On Firefox, if an <iframe> disappears when it's focused, then it will keep focused. This feature has caused the 2nd problem in #3245 .

This PR should fix #3245 , and it works well on my Firefox 69 (stable x64) + Win 10.

As for Firefox 67, there's still some incorrect results about colors of selection text after FindMode has exited, but I think it's because of inner bugs of Firefox - this PR works well enough on Firefox 69...

content_scripts/mode_find.coffee Outdated Show resolved Hide resolved
content_scripts/hud.coffee Show resolved Hide resolved
@gdh1995 gdh1995 force-pushed the blur-hud-on-firefox branch from 505aa08 to e99f58f Compare January 5, 2020 08:06
@gdh1995 gdh1995 force-pushed the blur-hud-on-firefox branch from e369c84 to a8e3a25 Compare January 5, 2020 08:12
in fact, the old `unfocusIfFocused` has been broken for a while,
since hud iframe is inside a shadowRoot on Firefox 63+.
@philc philc merged commit cd58476 into philc:master Jan 10, 2020
@gdh1995 gdh1995 deleted the blur-hud-on-firefox branch January 10, 2020 04:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Firefox] grey highlight in find mode, followed by locked commands in visual mode
2 participants