Giter VIP home page Giter VIP logo

Comments (16)

Cimbali avatar Cimbali commented on June 19, 2024

Works for me, both with scroll-button click and ctrl + click. even the "switch to tab" option

Can you be more specific? CleanLinks version, Firefox version, platform? Thanks

from cleanlinks.

Imold avatar Imold commented on June 19, 2024

I can confirm that middle click and control left click both open the link in the current tab, not in a new tab.
Browser: Waterfox 56.2.0 (64-bit)

from cleanlinks.

Cimbali avatar Cimbali commented on June 19, 2024

Interesting. You have outgoing HTTP requests cleaning disabled, is that right?

It appears if you activate it the request gets denied, and on a second click it then works. Both work fine on firefox 60.0.

from cleanlinks.

Cimbali avatar Cimbali commented on June 19, 2024

Turns out we use the openerTabId property which is compatible with ff 57+, to indicate to which tab to return on closing the new tab. We'll probably need to figure out which is the lowest version we want to support and account for that.

from cleanlinks.

nerone avatar nerone commented on June 19, 2024

Did a bit of testing.
I can still reproduce this using v3.0.3 on clean Firefox 60.0.2 install on OS X 10.11.6. But I have tried on Windows and it works as expected.

from cleanlinks.

Cimbali avatar Cimbali commented on June 19, 2024

Can you maybe open the Console (Ctrl + Alt + Shift + i, it's going to ask for remote debugging confirmation) to check for error messages?

Basically on the toolbox that the shortcut opens, go to the Console tab, purge the history for ease of reading (trash can in the top left corner), and click a link that fails.

There should be an error message from either cleanlink.js, background.js or inject.js which are the 3 CleanLinks scripts involved.

from cleanlinks.

nerone avatar nerone commented on June 19, 2024

I tried add-on debugging console, but it shows nothing related to Clean Links extension when I Cmd + click on links in Google search results.

from cleanlinks.

Cimbali avatar Cimbali commented on June 19, 2024

Ah, my bad, the error doesn't show because there already is a fallback in case of error. I've added a print, in the debug_print_22 branch.

I don't have a mac to reproduce this, so what would be helpful to debug this issue would be for you to get that branch with the debug print, and report the error.

Here's a step by step guide:

  • get the debug_print_22 branch (there is a zip download in the "Clone or download" button)
  • extract the zip if you downloaded the addon zipped
  • disable your current cleanlinks in your browser
  • type about:debugging#addons in your firefox address bar
  • tick "Enable add-on debugging"
  • click "Load Temporary Addon"
  • select the manifest.json file from the source code you just downloaded/extracted

Now just repeat the steps to look at the debugging console while doing Cmd + Click and an error message should appear. You can filter the console by "Logging > Errors" using the buttons in the top row.

from cleanlinks.

nerone avatar nerone commented on June 19, 2024

clean-links

I get only this in console when Google search results loaded and nothing else when Cmd + clicking on links.

from cleanlinks.

Cimbali avatar Cimbali commented on June 19, 2024

Alright, well that's a start. Maybe that exception in the background script prevented it from correctly opening a new window later on or something. I fixed it, now let's see if it works.

from cleanlinks.

nerone avatar nerone commented on June 19, 2024

Now that error has gone and no other appear.

from cleanlinks.

nerone avatar nerone commented on June 19, 2024

@Cimbali, can you please re-open the issue, if itโ€™s not already fixed?

from cleanlinks.

Cimbali avatar Cimbali commented on June 19, 2024

@nerone My main problem with this issue is just that I can't reproduce it. It is fixed for Waterfox and FF < 57 though, just not your setup (maybe os x is the troublemaker?)

from cleanlinks.

Bt7fdbufffdk avatar Bt7fdbufffdk commented on June 19, 2024

this issue also occurs on reddit when clicking on any of those types of links shown in the screenshot
sfdgchvjb

from cleanlinks.

Cimbali avatar Cimbali commented on June 19, 2024

I think this is actually a really simple bug now I look back at it. We recreated the ctrl + click behaviour manually:

let open_newtab = evt.ctrlKey || evt.button == 1;
let open_newwin = evt.shiftKey;

On macOS the default is to use cmd + click instead of ctrl + click. So now we check for both. There should not be too much interference from meta + click on other OSs, as this is not a meaningful combo usually.

Some testing on macOS still needs to happen, because ctrl + click should open the context menu, so we maybet accidentally overwrite that behaviour. Ideally I would like not going down the rabbit hole of detecting which OS we are running on to adapt behaviour etc.

from cleanlinks.

Cimbali avatar Cimbali commented on June 19, 2024

I can confirm this now works as expected.

from cleanlinks.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.