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

Links from GMail always open in foreground tab #865

Open
The-Compiler opened this issue Aug 10, 2015 · 3 comments
Open

Links from GMail always open in foreground tab #865

The-Compiler opened this issue Aug 10, 2015 · 3 comments
Labels
bug: behavior Something doesn't work as intended, but doesn't crash. priority: 1 - middle Issues which should be done at some point, but aren't that important.

Comments

@The-Compiler
Copy link
Member

Even when using tabs -> background-tabs = True, middle-clicking (or ctrl-clicking) a link on GMail will open it in the foreground.

This isn't (only) because of the target="_blank" it seems - I can't reproduce it with a minimal example using that.

This might or might not be related to #676.

@arp242
Copy link
Contributor

arp242 commented Aug 10, 2015

I have a related issue on site (behind a paywall) where middle-click will just open the page in the current tab.

@arp242
Copy link
Contributor

arp242 commented Aug 25, 2015

I've noticed this on more sites as of late; I think this used to work better.

Here's a test case:

<html>
    <head>
        <meta charset="utf-8">
        <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
        <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap-theme.min.css">
        <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css">
    </head>
    <body>
        <p><a href="http://example.com">Click me!</a></p>
        <p><a href="#">Click me too!</a></p>
        <p><a href="http://example.com">and me!</a></p>

        <script src="http://sugarjs.com/release/current/sugar.min.js"></script>
        <script src="http://code.jquery.com/jquery-2.1.4.min.js"></script>
        <script>
            $('a:eq(1)').on('click', function() { window.location = 'http://example.com' })
            $('a:eq(2)').on('click', function() { window.location = 'http://example.com' })
        </script>
    </body>
</html>

The first link works, but the 2nd and 3rd don't.

@The-Compiler
Copy link
Member Author

Thanks! I uploaded it to http://qutebrowser.org/bug-tests/issue-865.html

@The-Compiler The-Compiler added the priority: 1 - middle Issues which should be done at some point, but aren't that important. label Oct 1, 2015
@The-Compiler The-Compiler added bug: behavior Something doesn't work as intended, but doesn't crash. and removed bug labels Jul 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug: behavior Something doesn't work as intended, but doesn't crash. priority: 1 - middle Issues which should be done at some point, but aren't that important.
Projects
None yet
Development

No branches or pull requests

2 participants