• myFAV.ES
  • Help Center
  • Tutorials
  • Extensions
  • Blogs

  

  • Logos
  • Logo Requests
  • Themes
  • Backgrounds
  • Forums
  • Contact

Error message

Warning: count(): Parameter must be an array or an object that implements Countable in antispam_user_load() (line 1555 of /home/ul/public_html/userlogos/sites/all/modules/antispam/antispam.module).
Home » Forums » 10192013 » Problem with FF24 and getBrowser().addTab

Problem with FF24 and getBrowser().addTab

shaba2 —Sat, 10/19/2013 - 10:09

Good addon

Works very well on FF24
I have only a problem
I have several selfmade button like this:
getBrowser().addTab ("http://www.google.com/");
And when i use it FastDial it don't close himself
On my old FF18 it works perfectly
How can i solve?
Thanks

Open Firefox menu Web Developer > Browser Console - a console window opens. Then try to close the page and see if any errors appear in console.

Whit WEB developer and Error console i have no error...

It seems to me that Fast Dial don't see getBrowser().addTab event

For me is enough something like this

if CURRENT TAB is FAST DIAL then
getBrowser().loadURI ("http://www.google.it");
else
getBrowser(). addTab ("http://www.google.it");

Can you help me?
Thanks

  • Fast Dial
  • Log in or register to post comments or vote.
  • 0
  • 0 votes
telega's picture

Re: Problem with FF24 and getBrowser().addTab

Submitted by telega on Sat, 10/19/2013 - 12:41

Well, in fact Fast Dial intercepts gBrowser.addTab() function and if addTab() is called with "about:newtab" or "about: blank" parameter, then replaces this parameter with "chrome://fastdial/content/fastdial.html" value in order for Fast Dial page to be opened in new tabs. However Fast Dial tries to do this very correctly and I'm not sure why problem occurs.

To identify if current tab is Fast Dial, you can try the following code:

var doc = getBrowser().contentDocument;
if (doc.location == "chrome://fastdial/content/fastdial.html") { ... }

See https://developer.mozilla.org/en-US/docs/Code_snippets/Tabbed_browser

  • log in or register to post comments
shaba2's picture

Re: Problem with FF24 and getBrowser().addTab

Submitted by shaba2 on Sat, 10/19/2013 - 14:43

Yess
Works!

var doc = getBrowser().contentDocument;
if (doc.location == "chrome://fastdial/content/fastdial.html") {
getBrowser().loadURI (" ");
} else {
getBrowser().addTab (" ");
}

Very very well!
Thanks!!!

  • log in or register to post comments

Search logos

Search site

Navigation

  • Blogs
  • Forums
  • Online users
  • Recent content

User login

  • Create new account
  • Request new password
 
  • Changelog
  • Latest releases
  • Important links
 
 
  • Changelog
  • Latest releases
  • Important links
  • Support Forum
 

Top Rated

  • google.com
  • youtube.com
  • fast dial folder
  • wikipedia.org
  • Firefox Black
  • fd folders, folders, folder
  • generic gaming logos
  • mail.google.com, gmail.com, googlemail.com
  • Carbon Fiber
  • iphone app style icon template
more

Recent Polls

  • What are you resolution of screen use
  • Which version of Fast Dial do you run?
  • How often do you visit Userlogos?
  • Which FD iPhone logo format do you find preferable
  • How many themes do you run in Fast Dial ?
more

Online users

There are currently 0 users online.
Active - 15 mins:
No registered users :(
  • Last 24 hours

Recent comments

  • Keeping up with several
    by: hammadamir90
    3 days 10 hours ago
  • Boxing and MMA have
    by: hammadamir90
    3 days 10 hours ago
  • Boxing and MMA have
    by: hammadamir90
    3 days 11 hours ago
  • Boxing and MMA have
    by: hammadamir90
    3 days 11 hours ago
  • Keeping up with several
    by: hammadamir90
    3 days 11 hours ago
  • Keeping up with several
    by: hammadamir90
    3 days 11 hours ago
  • Sports bring people together
    by: hammadamir90
    3 days 11 hours ago
  • dsdad
    by: wakawaka
    1 week 1 day ago
more

Recent topics

  • Planning a Memorable Albany Getaway Through Every Season
  • Exploring Albany Through Sustainable Tourism and Thoughtful Travel Planning
  • Fórumos tapasztalat: Szuper kezdő bónusz a BetMatch kaszinóban!
  • Gyakorlati tapasztalatok: RoyalSea PWA és Android alkalmazás
  • Servizi di scrittura di tesi di laurea
  • Шампуні для волосся: природна сила у кожній краплі
  • Gold’s Role as a Safe-Haven Asset
  • I have some news!
more

Top contributors

User Total user points
Mafia_Penguin 912
jimmy1024 888
Deva 552
gumanov 490
jumpordie 471
Karmody 457
macleod.mac 402
ingalls 354
spaljeni 310
zigzag 290
Rog 265
Sastre 256
famecky 160
x-b 152
danger83 147
more

2008-2017 userlogos.org. All logos/images belong to their respective owners. Contact administrator.

  • Logos
  • Logo Requests
  • Themes
  • Backgrounds
  • Forums
  • Contact