Ticket #2529572 (closed defect)

Reporter


Stephen Woods
Opened: 12/2/10
Last modified: 01/14/11
Status: closed
Type: defect
Resolution: fixed

Owner


Jenny Donnelly
Target Release: 3.3.0
Priority: P3 (normal)
Summary: YUI Cache.* throws security exception in Firefox 3.6 when dom.storage.enabled = false
Description:

Some of our users manually/or use plugins to disable localStorage. Unfortunately, Firefox 3.6 SETS w.globalStorage even if it is disabled, but throws a security exception on any kind of access to the
object. Anytime you touch it in needs to be wrapped in a try/catch

Type: defect Observed in Version: 3.2.0
Component: Cache Severity: S2 (high)
Assigned To: Jenny Donnelly Target Release: 3.3.0
Location: Library Code Priority: P3 (normal)
Tags: Relates To:
Browsers: Firefox 3.x - All
URL:
Test Information:

In firefox about:config set dom.storage.enabled to false. Go to any YUI page and use('cache'), observer following error:

Security error" code: "1000
[Break on this error] var localStorage = Y.config.win.localStorage,

Change History

Stephen Woods

YUI Contributor

Posted: 12/2/10

Jenny Donnelly

YUI Developer

Posted: 12/2/10
  • location changed to Library Code
  • milestone changed to 3.3.0
  • priority changed to P3 (normal)
  • status changed from new to accepted

Jenny Donnelly

YUI Developer

Posted: 12/2/10
  • status changed from accepted to checkedin

Jenny Donnelly

YUI Developer

Posted: 12/2/10
  • resolution changed to fixed

[fix #2529572] Support disabled localStorage FF3.6.nnFF3.6 bug causes JS error when accessing win.localStoragenwhen it has been disabled in the browser. This commit wrapsnsuch calls in try/catch to prevent such an error.
View Commit: b06aac8fdb642d439d8684a78be559c9f69b1eb1

George

YUI Developer

Posted: 01/14/11
  • status changed from checkedin to closed