Walk around Firefox's offline storage warning? - html

I am developing an web app with HTML5 offline browsing support. I wrote a manifest file as shown below:
CACHE MANIFEST
CACHE:
audio/a.ogg
NETWORK:
*
When I visit my app in Firefox, A warning message prompts saying:
'This website [192.168.2.14] is asking to store data on your computer for offline use. Allow, Never for this site, Not Now'.
See https://dl.dropbox.com/u/83574968/ff-offline.png
I am using FF 14.0.1 stable on Ubuntu 12.04 and Chrome works fine. Apparently I can't control which browser end users use and it seems users tend to disable offline storage on seeing the warning message: see here
So, is there any way to walk around this warning message in FF if I want to use offline storage?
Thanks.

No, that's currently not possible. Removing that warning would allow developers to do some pretty horrible stuff
Here's an ongoing discussion on the subject:
https://bugzilla.mozilla.org/show_bug.cgi?id=648064#c1
How a web application can download and store over 2GB without you even knowing it

Related

Loadrunner during recording with truclient protocol chrome/firefox instances were opening in incognito mode

In Loadrunner Truclient protocol while recording the web application Google Chrome/Firefox instances is opening in incognito mode but the issue is my application will not work incognito mode.
My application is working fine in only normal mode of Google Chrome/Firefox instances.
Could anyone please let me know during recording with truclient how to change the Chrome/Firefox instances from incognito mode to normal mode.
You already posted this question on the official product forum (https://community.softwaregrp.com/t5/LoadRunner-Practitioners-Forum/Urgent-Truclient-chrome-instance-is-opening-in-Incognito-mode/m-p/1624503) and got a response by the lead developer of the TruClient protocol.
His answer is:
TruClient runs the browser in Incognito/Privacy mode to allow separation of
Vusers during a load test.
This cannot be disabled or changed.
Perhaps you can elaborate on why your application is not working in these
modes, so we can try to find a workaround.
and then
Some browser features behave differently in privacy mode.
For example, IndexedDB cache mechanism is not implemented in Firefox
private mode [See the bug in Mozilla]
https://bugzilla.mozilla.org/show_bug.cgi?id=781982
From the error you mentioned, it seems this is related a similar browser issue.
As mentioned before, it is not possible to run TruClient in non-private mode.
Workaround: Run one full GUI Virtual User in a singular operating system instance. run one of these per business process on dedicated OS instances. Run the remainder of your load using API level (HTTP) virtual users.

Viewing offline HTML5 site (not connected to network)

My team and I have just developed an offline portion of a web application utilizing HTML5, jquery and a cache manifest. The problem I am running into is when I disconnect from a wireless network, I am not able to view my offline site ( I receive a default screen from IE saying please connect to a network )?
I know that I have coded my offline cached site correctly because the site can be viewed when I disable my network adapter, just not a network adapter is on and not connected to a network?
Does anyone know if there is a way to bypass this default screen in IE when trying to view an offline site after disconnecting from a network?
Here is an offline page that was generated from our system:https://learn.questce.com/BranchAudit/OfflineSync/149/55/Michael-Kirk201372692619.html
IE9 does not support cache manifest. IE 10+ does, but it seems if you close the browser you can't re-open the site while offline (see my question here).
I did not get your question very clearly. But from what i understand, i will advice you to check out the offline browsing feature of internet explorer.
If you have already tried it and it is not working properly then you can try to run it in a browser named: "BackStreet Browser 3.2".
It is a high speed downloading browser and it is capable of downloading "HTML", "Java applets", "graphics" and many more features.
You can also view more details about this browser from: http://www.spadixbd.com/backstreet/

HTML5 localStorage for offline websites

I'm creating a simple app that a user will download onto his/her computer and then open it with a browser off the harddrive. I need it to be able to store data, using any of the standard browsers. (Although data does not have to be accessible between browsers).
As described by this link, If using HTML5's localstorage, Internet Explorer throws an error if the url of the site is something like file:///C:/Web/mylocaltodo.html. It says it can be gotten round by using 'localhost', but the sample application it provides doesn't how how this would be done.
Is it possible to save data locally for an offline site without the user installing a web server on localhost? And have it work on any modern browser, including Internet Explorer?
Thanks
Although the question is still old, I was facing a similiar problem when creating an application that should synchronize between multiple windows.
So I'd just like to share my experiences with other developers, that may avoid a long search for the problem.
In fact, due to the same origin policy (as for local file access via XMLHttpRequest), access is denied for reading the localStorage, so that changes won't get synchronized between windows.
In short: If you're using file:/// as URL, it won't be able to synchronize the localStorage. Using a simple webserver and http://localhost/ as URL, it will.
Strange behavior and sadly, there is no error message in the javascript console. Keep that in mind when trying out some localStorage experiments offline and don't get crazy searching for the issue in your code ;-)

How to disable favicon fetching in google chrome

How can I tell chrome not to fetch any favicon.ico files from a webserver? For web development and debugging, I find this very annoying when I read server side logs. Loading the favicon is also bias when measuring and optimizing my page load times so I want to completely disabled it on the client side in chrome.
Look at this Chrome extension I hate your favicon, or build your own one, which utilizes webRequest module and trap all outgoing requests for favicons.
Also you could possibly set up one of ad blocking extensions to do the same job.
P.S. You can read discussion about whether to consider this as a bug, or feature in the issue 39402 at Chromium porject, I think it applies to Chrome as well. And it seems there will be no easy way to turn this behaviour off via options in the near future.

Disable Application Cache in Chrome and Safari

I’m using the AppCache in order to enable offline access for a web app. The issue is that for development every time I make a change to my JavaScript I also need to make a change to the manifest (in order to trigger a re-download of the cached field). Now I know that in FireFox you can disable the AppCache (in fact you are prompted when you first visit the page whether to grant permission to web site to store data locally) which makes it a lot more convenient for development.
My question is there a similar option for chrome and safari?
I know that I can view/Edit the AppCache in chrome via chrome://appcache-internals/, what I’m looking for is a way to disable it.
Thanks
In Chrome, use Incognito Mode. Okay, it's probably not what it was originally intended for, but it does the job. Nothing gets cached, and now developers everywhere have a handy excuse for why they might be using Incognito Mode.
I assume there's similar 'Private Browsing' functionality available in Safari.
EDIT: I see from your comment that you want to disable Cache Manifest functionality only. Try starting Chrome from a Command Line with the --disable-application-cache switch.