Few bugs I found when testing my extension ...



  • *A - When an extension opens Bookmarks from background.js using

    chrome.tabs.create({url:"vivaldi://bookmarks/"});
    

    one gets "This site can’t be reached" but typing that directly in Address Bar works.

    *B - When an extension opens Settings from background.js using

    chrome.tabs.create({url:"vivaldi://settings/"});
    

    one gets an empty page that says Vivaldi, again typing manually in Address Bar works.

    *C - I've reported this before but it seems it was ignored, there's issues removing the Start Page during Startup:

    chrome.runtime.onStartup.addListener(function()
    {
    	chrome.tabs.query({currentWindow:true,active:true},function(tab)
    	{
    		if (tab[0].url.toLowerCase().indexOf("/components/startpage/startpage.html") != -1)
    		{
    			chrome.tabs.create({url:custompage,active:true,index:tab[0].index+1});
    			setTimeout(function(){ chrome.tabs.remove(tab[0].id); }, 3000); // Why the delay?
    			chrome.tabs.remove(tab[0].id); // This should be enough, works in Chrome + Opera
    		}
    	});
    });
    

    As you can see, the remove doesn't work until we pause for at least 2 seconds, 1 second is not enough on my test system.

    Also, if the above code (one inside onStartup) is run from "chrome.tabs.onUpdated.addListener" it works without delay.

    Here's my extension for reference ...

    New Tab Start Page Pro:
    https://chrome.google.com/webstore/detail/new-tab-start-page-pro/mjfahldkpjhcnfbbmdhpjolcjpcfhcpj



  • if you reported it at https://vivaldi.com/bugreport/ don't expect a reply, if you have explained how to reproduce it will be eventually fixed.


  • Moderator

    You want the chrome pages?
    vivaldi://chrome/bookmarks/
    vivaldi://chrome/settings/



  • @iAN-CooG Thanks, I've submitted a bug report.



  • @Gwen-Dragon said in Few bugs I found when testing my extension ...:

    You want the chrome pages?
    vivaldi://chrome/bookmarks/
    vivaldi://chrome/settings/

    Thanks, I would prefer for the native settings and bookmarks pages to work,
    ideally vivaldi://settings/all/ but unfortunately it only works from the address bar,
    and when triggered from extensions it doesn't work,- history and downloads work 🙂


  • Moderator

    I think the mapping of internal Vivaldi urls to chromium extension API is incomplete yet.


 

Looks like your connection to Vivaldi Forum was lost, please wait while we try to reconnect.