• 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

  • I think this is one of the
    by: peter654
    1 year 5 months ago
  • I really loved reading your
    by: peter654
    1 year 5 months ago
  • I’m impressed, I must say.
    by: wakawaka
    1 year 5 months ago
  • Thanks for taking the time to
    by: peter654
    1 year 5 months ago
  • Thanks for posting this info.
    by: peter654
    1 year 5 months ago
  • I was surfing the Internet
    by: peter654
    1 year 5 months ago
  • I am definitely enjoying your
    by: peter654
    1 year 5 months ago
  • Excellent post. I was
    by: peter654
    1 year 5 months ago
more

Recent topics

  • Servizi di scrittura di tesi di laurea
  • Шампуні для волосся: природна сила у кожній краплі
  • Gold’s Role as a Safe-Haven Asset
  • I have some news!
  • How the 100 Oz Silver Bar from Royal Canadian Mint Stands the Test of Time
  • Top Disposable Vapes and E-Liquids in Dubai: Fummo, Vozol, Elf Bar, and More
  • Explore the Best Vaping Experience with Pod Salt, Vapes Bars, and More in UAE
  • Copper vs Silver: Which Metal Is a Better Investment? 
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