HTML5 Application Cache notice has a broken behavior when in private browsing mode




6 years ago
2 years ago


(Reporter: Maxime RETY, Unassigned)


10 Branch

Firefox Tracking Flags

(Not tracked)




6 years ago
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_3) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.56 Safari/535.11

Steps to reproduce:

I tested on:
   Firefox 10.0.2 (Windows 7, XP and Mac OS X 10.7.3)
   Firefox 11 latest beta (Mac OS X 10.7.3)
   Aurora latest version (Mac OS X 10.7.3)

and followed these steps:

1. go to "Options" -> "Privacy", and select "Never remember history"
(or "Use custom settings for history" + "Always use private browsing mode")

2. open any HTML page referencing a HTML5 manifest (via the "manifest" attribute on html tag)

Actual results:

First, a notice appears at the top of the page.

If you click on "Allow" :
   Windows 7 : the notice disappears
   Windows XP / Mac OS X 10.7.3 : nothing happens, the notice is still displayed with the 3 buttons

If you execute "window.applicationCache.update()" :
   Windows 7 : throws a NS_ERROR_OUT_OF_MEMORY error (if I did click on "Allow") or throws a NS_ERROR_DOM_SECURITY_ERR error (otherwise)
   Windows XP / Mac OS X 10.7.3 : throws a NS_ERROR_OUT_OF_MEMORY error (whether I previously clicked on broken "Allow" button or not)

Expected results:

First of all, I would expect a consistent behavior whatever OS I use.

Then, I would probably not expect a notice to be displayed in private browsing mode, as applicationCache doesn't seem to be available.

Finally, I would enjoy having a consistent way to detect that "HTML5 offline features" are not usable because of private browsing mode. As of today, applicationCache fires a NS_ERROR_OUT_OF_MEMORY or NS_ERROR_DOM_SECURITY_ERR error, whereas indexedDB fires an exception with errorCode 6 (DOMException.NO_DATA_ALLOWED_ERR) when calling in private browsing mode.

That last point is a suggestion which can be considered as "not part of the bug report".


6 years ago
OS: Mac OS X → All
Hardware: x86 → All
Component: Untriaged → Networking
Product: Firefox → Core
QA Contact: untriaged → networking
appcache is going away...
Last Resolved: 2 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.