GithubHelp home page GithubHelp logo

Opening more than 2 URLs about urls-list HOT 8 CLOSED

crssi avatar crssi commented on August 11, 2024
Opening more than 2 URLs

from urls-list.

Comments (8)

moritz-h avatar moritz-h commented on August 11, 2024

No, all tabs should open. This sounds like a bug. I tested again with 20+ tabs, no problem for me. Can you please give more information? (Operating system, Firefox version, example URLs)

The only limitation I build in is that an already opened URL is not opened again. All URLs that match exactly to an already opened tab are excluded, all other tabs should open.
(This is, that you can just extend the list with new URLs and the already opened URLs which are also listed in the box, are not opened again.)

from urls-list.

crssi avatar crssi commented on August 11, 2024

Hi... tested it again against clean profile and it works.
Then I have narrowed down the conflicting addon, I am using, Close Unused Blank Tabs.

But for example Close Unused Blank Tabs does not conflict with addon Tab Session Manager which can normally open a lot of tabs.

Cheers

from urls-list.

moritz-h avatar moritz-h commented on August 11, 2024

I'm just using the official API to open an new tab with the given url:
browser.tabs.create({url: url});
This is the most simple case, see Mozilla Documentation: https://developer.mozilla.org/en-US/Add-ons/WebExtensions/API/tabs/create

There is not much I can change therefore this would be an issue of Close Unused Blank Tabs.
It seems that Tab Session Manager does configure a lot more options. Perhaps this does workaround the issue of Close Unused Blank Tabs.
But when Close Unused Blank Tabs breaks with the most simple case documented by Mozilla to open a new tab, it is most likely that the bug is there.

from urls-list.

crssi avatar crssi commented on August 11, 2024

Perhaps it is or it is not.
I am just saying that the author of "Tab Session Manager" found the right procedure for this to work.
Maybe you can peek into his code and make your product even better and bullet prof against some other addon breakage. ;)

There is additional functionality of Tab Session Manager", where it can open tabs without immediately loading the content, which could also be nice to have in your addon. :)

Cheers

from urls-list.

moritz-h avatar moritz-h commented on August 11, 2024

@crssi I think that "Tab Session Manager" does not have this issue is more or less random and the problem is caused by "Close unused tabs".

I like to keep things as simple as possible. This is normally the most stable approach for any kind of problems. The most simple approach to create a new tab is calling browser.tabs.create({url: 'some-url-to-open'});. As documented by Mozilla! Therefore I do not think changing this will improve anything.

I installed "Close tabs" and I don't have any problems. Can you please test if there is not any third AddOn involved? (Fresh profile with just this AddOn and "Close Tabs")

I can just guess where this problem comes from. I read also the source of "Close Tabs". There is a event listener to tab creation. Then empty tabs are filtered and directly closed. Perhaps this is some race condition within Firefox between create tab => fire event => close empty tab => load content to tab. But I don't know anything about Firefox internals, I can only guess.
I cannot do anything else than use the normal tab creation API.

Please also report this to the "Close Tabs" AddOn.

from urls-list.

crssi avatar crssi commented on August 11, 2024

@moritz-h Thank you for your time

I have tried 2 ways to exclude racing problem.

  1. Clean FF profile, installed UL and then TSM. Same problem
  2. Clean FF profile, installed TSM and then UL. Same problem

I am on FF57, windows.
Are you on different?

from urls-list.

moritz-h avatar moritz-h commented on August 11, 2024

If this really is a race condition (I can only guess) it has nothing to with installation order. This would be Firefox internals on execution. Only the solution would be then that "Clean Tabs" should add a short delay before closing tabs.

I'm using Firefox 57.0.1 on Ubuntu 16.04

from urls-list.

crssi avatar crssi commented on August 11, 2024

Thank you. Will report to "Clean Tabs" author.

Cheers and thank you for your nice addon.

from urls-list.

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.