Skip to content

Improve firefox support #2476

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

Merged
merged 12 commits into from
Apr 18, 2017
Merged

Improve firefox support #2476

merged 12 commits into from
Apr 18, 2017

Conversation

mrmr1993
Copy link
Contributor

@mrmr1993 mrmr1993 commented Apr 16, 2017

This merges all of the code mentioned in my comment on #2425.

As listed there:

  • link hints for opening links anywhere except the current tab do not work
  • clipboard operations do not work.

Also, there are still issues with focus in the find mode HUD.
(Branch hud-focus seems to improve the situation, by using separate persistent elements for normal HUD and the HUD find input. Not sure if this is a direction we want to take.)

Copy link
Collaborator

@smblott-github smblott-github left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, @mrmr1993. Could you check my two small comments, please. Then I'll merge.

try
result = window.find(query, options.caseSensitive, options.backwards, true, false, true, false)
catch # Failed searches throw on Firefox.
options.postFindFocus?.focus()
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the indentation correct here? Looks like XXX.focus() should happen only if the exception is raised.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. window.find in Firefox focuses the window that we call it on, so this gives us an opportunity to refocus the HUD window.

Should I add a newline between the try ... catch and this line, to clearly separate them?

@@ -0,0 +1,28 @@
injectContentScripts = ->
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this file actually being used?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, sorry. The revert commit reintroduced it and I didn't notice. I'll remove it

@mrmr1993
Copy link
Contributor Author

@smblott-github I've pushed some commits to address your comments.

@smblott-github smblott-github merged commit 8058a54 into philc:master Apr 18, 2017
@smblott-github
Copy link
Collaborator

@mrmr1993 OK. Merged this. I'm about to merge #2470 too (move to keydown, event.key). I don't use Firefox, so the ball is largely in your court in terms of figuring out what works and what doesn't.

@mrmr1993 mrmr1993 deleted the firefox branch June 1, 2017 18:58
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.

2 participants