FireFox stealing app focus

Setup: FireFox 26.0 is running on OSX and open to a web page that uses javascript. The FireFox window can either be in the background or minimized, while any other application is in the foreground.
Problem: If the web page in FireFox inserts an HTML5 <embed> tag via javascript, FireFox mistakenly takes the application focus at that OS level.
To be clear, this behavior is inconsistent with the other browsers. It does not happen with Chrome, Safari nor Opera on OSX, nor should it. A well-behaved should remain in the background if put there by the user.
I suspect, given the number of support requests about this issue, that it has not been forwards to your developers.

In FireFox visit this [http://jsfiddle.net/dgerton/2DcwT/2/ JSFiddle] I created to demonstrate this problem. Switch to another application, an email program for instance
After 10 seconds a sound will play and FireFox will have moved on top of and taken away keyboard input from the email application.
It occurs to me that this is also a security risk. A malicious web page could be designed to cause a DOS attack of sorts, preventing the user from switching away from FireFox.

Similar Messages

  • When closing an app, focus doesn't return to previously open app

    Just as the subject line says. Is there a way to make OS X Leopard revert to the previously open window after closing an app? Perfect example: I open a pdf file from a website, and Preview opens to display the file. I close Preview when done but Firefox is not focused. I then have to click inside the Firefox window to make Firefox active, then I can resume whatever I'm doing in FF. Thanks.

    ericd67,
    Typically, focus will return to the previously active application when a second is quit. In the example you have given, however, my assumption would be that: 1) you have downloaded the PDF with Firefox, then 2) you opened the downloaded PDF by double-clicking on it.
    This second action on your part would naturally have been done within the Finder. As such, the Finder would be the "previously active" application, and will be the application that becomes active after Preview is quit.
    One way around this particular scenario would be to right-click (control-click) the downloaded file, and choose "Open" from the contextual menu. This is possible without actually making the FInder the active application. When the second application (Preview, in this case) is quit, the previous app will be come active, not the Finder.
    Scott

  • How to stop javascript alert popups from stealing tab focus?

    I have two gmail accounts, and usually a lot of tabs open. So sometimes I log into my other gmail account while a tab somewhere else still is logged in to my other. Sooner or later, the gmail with the old login session notices this, and makes a little alert() popup telling me I've been logged out, a couple minutes after I checked my emails on the other account.
    Now the problem is, that firefox because of this alert() popup instantly jumps to that tab, and I lose my place in my tab-jungle. This is very annoying. How do I prevent this inactive tab from stealing my focus/alert messages autofocusing tabs?

    Hello,
    Yes I know, but I don't want to do this. Is there any way to stop firefox from behaving this way?
    Thanks

  • Firefox Loses Window Focus, Mouse Button profiles change to default

    I have a G700 mouse, which supports various hotkey profiles. For default profile, i have most buttons disabled. For games, i have game-specific hotkeys, and for firefox, i have firefox specific hotkeys (new tab, close tab, etc).
    There are 2 times that I notice this behavior:
    1) During regular browsing, clicking on various links causes firefox to lose focus, and the mouse software reverts from the "firefox" profile to the "default" profile. Interacting with firefox in any way does not fix this problem. the only way for firefox to become the default profile again is to click a different window or on the desktop, and then click back into firefox. The profile seems to be lost right after clicking a (javascript) link, though the number of links clicked is arbitrary. I cannot reproduce this issue with any fixed results (number of click, time period before losing focus, etc). But I can reproduce this issue reliably.
    When the mouse buttons stop working, the keyboard hotkey shortcuts DONT stop working. I dont have to re-select the firefox window to use keyboard shortcuts, I only have to do that if i want to use the mouse shortcut.
    2) If I am in private browsing mode, clicking links (specifically for websites that contain flash) causes the window which contains flash to move into the background and the non-private window becomes the foreground. Again, the mouse loses focus and the only way to regain focus is to manually click the window or to click away on a non-firefox object, then click the window. I believe this is a flashplayer based issue, though, and is unrelated to the profiles issue. When this happens, any interaction with a flash video also forces firefox's KEYBOARD hotkeys to not work. Ctrl+w and ctrl+t dont do anything, hitting escape does not give firefox control over keyboard hotkeys, and hitting "tab" only selects elements within the flash object. For youtube, it cycles through various clickable controls.
    EDIT: I have tried resetting the firefox profile and using a completely new profile, and i have also tried syncing profiles. This is a persistent problem.

    I'm using Firefox 23. This has been a problem since I got my mouse in September ish of 2012. As I stated, I've worked with logitech on this issue, they have no idea why it happens because only firefox exhibits this behavior. No other app on my computer does this and Firefox reset and clean profile do not do anything to solve the problem. Using logitech logging, I can produce a log and output of whenever the profile switches. I might be able to use logitech scripting to output debug information about what exactly causes it but that would take dev time I don't have.

  • Sometime firefox steals keyfocus in Openbox 3

    Hello everyone,
    here i have used openbox for several months. and this annoying problem happens every one or two hours.
    at the beginning everything works fine. after once upgraded in Jan 2010, comes a problem to me. sometime i want to change focus from firefox to other programs with shortcutkey Alt+Tab, but it not works(focus NOT in flash). And if i change the focus with mouse, the window focus is right, but whatever i type, things show in firefox... for example, in pidgin chat window i press "Ctrl + W" to close the chat window, but the firefox tab closes. and the cursor in pidgin chat window dosenot blink.
    after i once clicked at the firefox's menu or bookmarks, or close firefox, things back to fine. I don't know which staff in firefox steals the key focus. i have tried uninstall all addons and upgraded my system, and once reinstall my archlinux, nothing works. also googled for some infomations... yep have asked in openbox's maillist, they say it may be a problem with firefox. and firefox dosenot reply.
    addons for firefox:
    Adblock Plus
    Flashblock
    FlashGot
    is.gd Creator
    Tiny Menu
    and:
    archlinux 2.6.34 i686
    openbox 3.4.11
    firefox 3.6.8
    i am here asking for some hints and help.
    regards
    P.S.  also have tried to downgrade firefox and openbox, still not works.
    code at #4 cannot solve this problem.
    Last edited by alvin_rxg (2010-08-02 12:28:47)

    valium97582 wrote:Hmm, there is a post about the same thing, with pidgin instead. The solution is a small piece of code. If you find it, you can apply it to firefox.
    thanks for your advice! and i find the post https://bbs.archlinux.org/viewtopic.php … 75#p800650
    now i put those lines in my openbox's rc.xml
    <application class="Namoroka">
    <focus>no</focus>
    </application>
    <application class="Navigator">
    <focus>no</focus>
    </application>
    <application class="firefox">
    <focus>no</focus>
    </application>
    i don't know if it works for me. i will see if the problem happens later.
    p.s. after 2 days test, it not really solves the problem.
    bernarcher wrote:
    Did something happen to your openbox configuration file? These lines should be there at least:
    <focus>
    <focusNew>yes</focusNew>
    <!-- always try to focus new windows when they appear. other rules do
    apply -->
    yes, those lines are there. and according to the #3 post in https://bbs.archlinux.org/viewtopic.php … 63#p683719
    I need to focus on new window..
    Last edited by alvin_rxg (2010-08-02 12:29:31)

  • How do I stop Firefox from auto-focusing on text boxes?

    How do I stop Firefox from auto-focusing on text boxes? Sometimes as a page is loading, I scroll down the page...only to have the page jump back to where there is a text box, with a blinking cursor, after the page is finished loading. It is an annoying feature and I want to turn it off.

    Some pages use an onload event to set the focus to a text area or search field.
    You can try NoScript to see if that blocks it.
    *NoScript: https://addons.mozilla.org/firefox/addon/noscript/

  • How do I delete bookmarks from the Firefox Home app on my iphone?

    I just installed Firefox Sync on my iphone and it has successfully synced all of my bookmarks. After I read a bookmark on my phone, I'd like to delete that bookmark permanently so I don't have to delete it on my computer as well. I can't find an option to delete bookmarks - am I missing something?

    No. It's very involved. That initial syncing of the bookmarks
    Was all done at once. After I processed the
    Firefox home app onto the phone. there has to be a way that automatically transfers any new bookmarks from the PC to
    The home app on the iPhone.
    it's supposed to sync automatically. but there is no new data.

  • The new firefox twitter app is great - except it disappears every time I shut down the computer and I have to remove and then reinstall it every day!?? I am working on an iMac - if that is causing the problem ...? Thanks.

    The new firefox twitter app (mini tab on left of page) is great - except it disappears every time I shut down the computer and I have to remove and then reinstall it every day!?? It won't appear on the page until I do. I am working on an iMac - if that is causing the problem ...? Thanks.

    Eustace, thank you so much for writing back.  I will try what you suggested!!
    thx for your reply - apparently when I went to the Apple store a long time ago, they restore maybe photos and itunes etc from my external hard drive (passport).  I guess at that time they reinstalled an earlier operating system than my macbook came with and that somehow corrupted FileVault.  apparently there was no sparse bundle (whatever that is) for my old admin account and they said that ever since the install of the older OS that it was actually NEVER backing up anything in my admin account.
    Then, I bought Time Capsule and starting backing up to that instead.  I started having problems with it being slow etc and then StartUp Disk full errors and didn't know what to do, so I "Restored" from Time Capsule and that's when I lost everything in my Admin account and was locked out when I tried to log in - it said File Vault error ..."
    anyway - that's THAT sad story.  I was told to create a new admin account and I've basically been trying to start over - even though I have a partial save of my computer in Crash Plan and I DO see a sparse bundle listed in there, but I just don't know enough about computers to know if it's something I can get back or if I am just totally doomed. 
    I'm afraid to reinstall anything because if there is even a remote shot that the other files are still floating around in my computer, I feel like that chance will be shot forever.  I need to hire McGee from NCIS, I just KNOW he could get those files back for me!!!

  • How to run Firefox OS apps without Simulator

    Sorry, just making sure, but is there a way to run Firefox OS apps in Firefox WITHOUT the Firefox OS Simulator?
    I have the Simulator (I actually have mutliple versions), but I would like to see if there is some way to "trick" Firefox into to thinking that it's Firefox OS so I could just go to the Marketplace and get apps.

    You can install Firefox Marketplace Apps from your Firefox web browser itself! You can just visit the marketplace (https://marketplace.firefox.com/) and start using the apps. But few apps like cut the rope maybe only available on mobile phones (hence you may have to depend on simulator)

  • I pressed Windows-M to minimize all screens, then Firefox 6.0.1 (Win XP VM) started to open large number ( 70 in a few seconds) of new Firefox windows (stopped only when I killed the Firefox process with Task Manager). Firefox had no focus at that time.

    Windows XP 64-bits Virtual Machine, ServicePack 2, 4MB of RAM, dual processor running on a Windows 7 64-bits host machine, ServicePack 1, 8MB, 8-core processor.
    I have worked with that for half a year, no particular issues.
    I was working in other program in my VM (so Firefox had no focus) , then wanted to view my VM desktop, so I pressed Windows-M to minimize all windows in my VM. Exactly at that time Firefox 6.0 started to issue new empty Firefox windows, at a pace of about 4 or 5 per second. So I killed the firefox.exe process in my TaskManager to prevent my machine of running out of memory. Then I started Firefox again, without further issues so far.

    I'm a Chrome user by choice. I use Firefox for two reasons only:
    1) Speedbit video downloader
    2) A second browser to handle secondary Google and Facebook sign-ins.
    If I remove Speedbit, I lose 50% of my reason to use your browser at all.
    Speedbit and Firefox worked together just fine before version 19.
    PLEASE PROVIDE A PATCH. DON'T BLAME SPEEDBIT.
    Thank you.

  • In Firefox sync can you have more than 2000 history pages sync to the Firefox Home app (for idevices)?

    I set up Firefox sync today with Firefox 4.0b7 (Firefox 4 Beta 7) and my ipod touch (Firefox Home app). I got it to sync and it synced almost everything except for my history. It did sync 2000 pages of my history but I checked and I have way more than that. So I wanted to know: Is 2000 pages of history the limit for syncing?

    @kalos
    Uninstalled everything PA, also uninstalled mangler which was the only thing that depended on PA. It didn't work anyway.
    No pulseaudio --kill command so I couldn't run.
    Checked systemd journal and there is no mention of PA this time.
    Checked top, and grepped ps aux and there is no PA there either.
    I also rebooted the machine completely just to make sure. However VLC and HTML5 have the same incompatibilities.
    _ vlc Videos/anime/fmab/01.mp4
    VLC media player 2.1.5 Rincewind (revision 2.1.4-49-gdab6cb5)
    [0x1bc30f8] pulse audio output error: PulseAudio server connection failure: Connection refused
    [0x1af4118] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
    Fontconfig warning: FcPattern object size does not accept value "0"
    Fontconfig warning: FcPattern object size does not accept value "0"
    Fontconfig warning: FcPattern object size does not accept value "0"
    Fontconfig warning: FcPattern object size does not accept value "0"
    [0x7fb604001248] main vout display error: Failed to resize display
    But the video and audio did work until I ran some HTML5 video, after which the audio worked, and then I opened it again and it didn't work...
    @nomorewindows
    I see. That's too bad. At least we're not alone.
    Last edited by Greduan (2014-11-14 01:34:29)

  • Everytime I close Firefox, my App Tabs close as well. Have to Re-Pin as App Tab everytime I open Firefox. Help??

    It started right after I made a Firefox Sync account for my mobile device. Since then, I have deactivated the device and the account hoping to fix the problem. Nothing has worked.

    App (pinned) tabs and Tab Groups (Panorama) are stored as part of the session data in the file sessionstore.js in the Firefox profile folder.
    * http://kb.mozillazine.org/Profile_folder_-_Firefox Firefox
    * http://kb.mozillazine.org/sessionstore.js
    * http://kb.mozillazine.org/Session_Restore
    Make sure that you do not use [[Clear Recent History]] to clear the "Browsing History" when Firefox is closed because that prevails and prevents Firefox from opening tabs from the previous session.
    *App Tab Initializer: https://addons.mozilla.org/firefox/addon/app-tab-initializer/

  • I followed the instructions for making an APP TAB and succeeded BUT everytime I close Firefox, the app tab disappears upon re-opening. Can someone help please? I held the control button plus I clicked and selected the "Pin..as app tab".

    As my question asks, I followed instructions for creating an APP TAB for my web mail account, and succeeded but each time I close and re-open Firefox, the app tab disappears. Can someone tell me what I am doing wrong please?

    For better or worse, I think it's part of the design for the app tabs to be window specific. I know my first reply didn't solve your problem, but that was one way that worked for me to get the app tabs back when I restarted Firefox. Also I noticed the tag for this post is Firefox 4. I've only tried it with Firefox 5.
    I agree with you that the way it's working isn't ideal. For the time being, I've stopped using the app tabs. Maybe they'll fix/improve it soon.

  • Where is the firefox sync app??? its not under options

    I a trying to set up the firefox app on my iphone..and i have not been able to find the firefox sync app/ add on to set up the sync account from my desktop version..its not under the options tool bar, and i am running the latest version of firefox.
    please help
    thanks

    Please see this article: [[Where can I find my Firefox Sync Key?]]
    To access the menu (''incorrect in the article for Firefox 5.0''), click the orange Firefox button, go to Options | Options | Sync

  • Free Firefox browser apps for BlackBerry curve

    I can I get a free Firefox browser apps for BlackBerry curve? I want to download free firefox browser for my BlackBerry curve mobile phone

    Unfortunately, there is no version of Firefox (or Firefox Home) for Blackberry OS.

Maybe you are looking for

  • How much does replacing the iPhone4 lock button cost?

    I have an iPhone 4 and the lock button does not work, I was wondering how much it would cost to get it replaced?

  • Megge column when export to excel

    User is requesting Excel column header to split for infoobjects that are displaying key & text. See attachment showing the column header splitting. (Currently all key & text headers merge when exported into Excel apart from last object in row.

  • Performance problem due to garbage collection?

    Hallo, we implemented a digital whiteboard with JavaFX: there is a scene (3200 x 2400 px) on which you can draw (insert paths) and add post-its (colored rectangles with paths or string a content). It's possible to drag the post-its around and it's al

  • OAS - LiveHtml

    I didn't find a discussion forum for Oracle Application Server, so I am using this forum for my problem since this one is the closest. After installing a livehtml application/cartridge on my OAS 408 and accessing the sample .shtml page, It prompts me

  • HT1151 I have a WD brand external hard drive that plays up with i plug it in, can i down load software to fix this?

    I have had a few problems with my extrenal hard drive on the mac pro. I have an old windows computer and it still works well with the new passport hard drive but when I plug it into the mac it will not let me delete, add folders or change anything in