Make the file download manager window the front window in Firefox/Safari - firefox

If Safari/Firefox have already downloaded files then they keep a download manager window open. When the user downloads a new file from my site, is there any way to force that download manager window to the front of all windows?

I don't think so. The Download manager is not under the site's control. Maybe through a Firefox extension, but definitely not using normal JavaScript.

Can't you make the download window close on completion? Then it will re-open each time, which usually results in it being on top.

Related

Accessing ExternalStoragePublicDirectory in Google Chrome ARC app

We have a feature in our app which can save file to ExternalStoragePublicDirectory. Below is the directory path we are using.
Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS);
It looks like file is getting saved in the directory. But I cant locate the saved file in Desktop or Chromebook. Can anybody please point me to right direction?
Under ARC, your external storage files are being read and written to the HTML5 filesystem. Under Chrome app (yours included) gets its own filesystem.
You can view this filesystem with Chrome (desktop or Chromebook) using some experimental developer tools. You have to enable them and then restart the browser. Here is how:
Visit "chrome://flags" in your browser.
Search for "Enable Developer Tools experiments", and click the "Enable" link.
A prompt to restart your browser should have appeared. Go ahead and click it to restart your browser.
Go ahead and launch your app. It needs to be running so that you can browse the filesystem.
Next visit the "chrome://inspect/#apps" page in your browser, and find your app in the list. Click the "inspect" link to bring up the inspector window.
Click the gear icon in the upper right of the window.
Click the "Experiments" tab listed on the left side of the popup. This is only visible if you enabled the experimental features at all.
Click the "Filesystem Inspection" checkbox to enable the filesystem viewer.
Finish up by closing the options page with the "x" at the top left.
Now you can view your app's filesystem.
From the inspector window for your app, click the "Resources" tab along the top.
You should see a "FileSystem" option appear in the list on the left side. Click it to expand it.
Click the "persistent -chrome extension:" subpanel.
You should be able to then navigate to the download directory by expanding the view that appears. I believe for downloads you want "/storage/sdcard/Download".
Selecting the directory will display basic metadata on all the files in the directory. Selecting the file might display it if it is supported. Or you might just get a "Binary File" message if not.
If you want to actually manipulate the data beyond that, you will need to connect with the browser with the Android adb command/shell, and you should be able to "adb pull" the file. See https://developer.chrome.com/apps/getstarted_arc#bestpractices to get going on that.
You can also add {"enableExternalDirectory": true} to your application's metadata. Enabling this option means that ARC will prompt you for the directory to use for for the external directory, and you can pick a real directory on your system to use. But if you already download a file prior to enabling this feature, you will have to download it again.

Sublime text 3 and Web Inspector plugin

Am I the only person having problems with this plugin in Sublime Text 3? I cloned it from github repo, and when I try to start chrome's remote debugging via Sublime's command pallete, the new instance of chrome is being opened but the file is not being opened. Did anybody made this plugin to work is ST3? Thanks in advance
Before working with Web Inspector plugin, properly exit chrome.
In chrome use Ctrl+Shift+Q
First, make sure you are using the ST3 branch of the github repo, and have run git pull as there have been some changes in the last few hours and days. Also, make sure you read completely through the Getting Started section of the README. It looks like you need to manually open your application's URL in Chrome after you've started it via Sublime using CtrlShiftR - you can't use an already-running Chrome session. You can then hit CtrlShiftR again and choose "Start debugging", then choose the correct tab from the list.
If you're still having issues, I'd fill out a detailed issue on Github and let the developer know what's going on. Make sure you include all the steps you've followed, and the complete text of any error messages that may appear in the Console (Ctrl`).

Files not uploading via Aptana 3

I'm new to Aptana 3. I recently switched from using an FTP (Filezilla) and text editor just to speed the file editing process up a bit.
I'm dealing mainly with Wordpress sites on a shared Godaddy hosting account, and am having some trouble uploading the files I have edited via Aptana to my live site.
i.e. I've edited several lines in my "main.css" file. I save it in my "Project Explorer" window in Aptana, have my FTP connection all set up and working, and click the "Upload" icon. I refresh my browser and nothing has changed, and I can see the website is still pulling in the old css. I've also tried "synchronizing" my files and hitting the "Publish" button, but that doesn't work either?
I've also tried just editing the file in a new Remote Connection tab, but no joy either.
I've hunted all over for simple walkthrough for deployment or file sync guides for Aptana, and watched a few video tutorials but nothing has worked so far.
Hold Control+F5 for a few seconds in your browser. You probably are just running a cached version of the CSS in your browser. That should prune it.
I had the same problem. What I found I had to do was an initial synchronization, I know you mention that you did this but it may be that it didn't fully sync as its not always clear what is going on with the Aptana sync.
What I did:
Make sure your Project has a connection in it and that it points to the server location that you want to sync with
Select the Remote tab and right-click on a file within the chosen connection, choose File Transfer...
This will open the sync window and it will initiate a compare, this is where confusion set in for me, if the folder structure is not identical it will propose to create and delete lots of files. I found I was deselecting items to be safe but meant that it did not correctly sync. Make sure you are syncing from the same root level and then let it do a full sync, this seems to register or record a link between the local and remote files.
Run the sync. when it is complete you will now be able to upload individual files successfully from the Project tab using the upload icon (before a successful sync this will not work - even though it looks like it is doing an upload).
Hope this helps.

How do you install Firebug if your computer is isolated from the internet?

I have noticed that Firebug and some other addons I have browsed require that Firefox be installed and running for them to be installed.
That's a little inconvenient, given that my development machine is not connected to the internet. Is there a way to download and install the addins using a flash drive?
To manually install a Firefox extension into Firefox, download the add-on to your computer. If the download option isn't available, right click on the extension install link and select "Save Link As..". Be sure not to change the file extension. A Firefox extension will usually be a .XPI file.
Next, go to the Firefox drop down menus at the top of the browser. Select File > Open File then select the addon.xpi file and click on Open. The Software Installation window will appear, click install, restart Firefox.
open any indexes of version u want,http://getfirebug.com/releases/firebug/1.6/
right click on any of the link and choose "save as"
There will be one ".xpi" file which l b downloaded locally to ur computer.
Copy tat .xpi file and paste it in ur computer/server where there is no internet connection.
In that PC/sever,open firefox-->go to tools -->add ons
Drag tat copied .xpi file into add ons window and click on install
restart firefox
ur work is done :)
some different way to solve this by using portable version of firefox, you can pack them with all what you need and save it in your flash drive.
http://portableapps.com/apps/internet/firefox_portable
Much easier than download any extension for each instance and install them.
You could trick the program into thinking that you're connected to the Internet

How to change Firefox icon?

Is there any way to change Firefox system icon (the one on the left top of the window)?
Precision : I want to change the icon of a bundled version of Firefox with apache/php and my application. So manual operation on each computer is not a solution.
I try Resource Hacker and it's the good solution. The add ons one is good too.
Resource hacker does the job of swapping application icons in Windows (up to XP, not tested with Vista yet).
Available at:
http://www.angusj.com/resourcehacker/
#phloopy's good suggestion to use http://iconpacks.mozdev.org/ unfortunately doesn't work with newer versions of Firefox (I think to the omni.jar change). You can still use their ICO files (or your own), but you now need to do the following manual steps...
Unzip omni.ja in your Firefox application directory.
Delete omni.ja or rename it (e.g. omni.ja.off).
Create directories icons/default in the Firefox chrome application directory.
Copy the icon file you want to chrome/icons/default/main-window.ico
Start Firefox and enjoy your new icon
Notes:
There are other ICO file names you can use for other windows. The ones I have personally seen work are:
main-window.ico for browser windows and Scratchpad
downloadManager.ico for Downloads
If you know others please comment so I can add them. I personally would love one for Firebug and the Error Console. One for Library (Bookmarks) would be nice also (bookmark-window.ico does not work).
Your start time will be a little slower (due to the unzipping of omni.ja). In theory you can jar it up again, but I am not 100% sure that will work once they get the omni.ja optimization working again (it's "broken" in Firefox 10 so omni.ja is actually normal JAR/ZIP file).
If you let Firefox update you will need to do this again
Note many zip tools cannot read Firefox’s variation on the JAR format (see https://bugzilla.mozilla.org/show_bug.cgi?id=605524).
More info is available at http://iconpacks.mozdev.org/docs/faq.html
There are icon packs available at http://iconpacks.mozdev.org/ that work by installing an extension. If you want to use your own icon, extensions are just zipped files so change the extension from xpi to zip and examine the source code and images it contains to customize it. If you do customize it, I suggest changing the GUID that so it doesn't auto-update and overwrite your customizations.
I think you mean the system icon, not the site icon as someone else thought. On a Mac, you can hold-Click -> Get Info on Firefox.app, then drag or paste an image on top of the icon.
I'm not sure about Windows, but I think you may need to compile from source to change it.
If you're talking about the application icon (which under Windows is typically located in the top-left corner of the application's window), then... no... and yes.
Like most windows apps, the icon you see there is probably a resource compiled into the application itself, so you can't change it.
There may be add-ins to Firefox that let you do this, but I doubt it - that icon is trademarked and "identifies" the Firefox "brand" (if you will). So it's unlikely that you could change it at run-time.
Firefox is open-source; you could always just download & compile your own version, replacing the icon resource with your own. A bit dramatic, but possible.

Resources