Closed
Bug 748617
Opened 12 years ago
Closed 12 years ago
Setting local storage raises exception when cookie expiration set to "ask me"
Categories
(Core :: Networking: Cookies, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 748620
People
(Reporter: j.b.gray, Unassigned)
Details
Attachments
(1 file)
458 bytes,
text/html
|
Details |
If the cookie expiration policy is set to "ask me every time," attempting to set a key in local storage will raise a security exception without asking permission. This is inconsistent with the setting chosen ("ask me every time") and can cause problems with sites using local storage that are difficult to track down. Steps to reproduce: 1. Clear local storage: go to Tools -> Clear Recent History -> Cookies, set "Time range to clear" to "Everything" and click "Clear Now". 2. Ensure that local storage is enabled and has an adequate quota: type "about:config" in the URL bar and ensure that "dom.storage.enabled" is "true" and "dom.storage.default_quota" is set to a value greater than 1. 3. Require cookies to prompt for an expiration date: go to "Tools -> Options -> Privacy, ensure that "Accept cookies from sites" is checked, set "Keep until" to "ask me every time" and click "OK". 4. Open the attachment "local-storage-test.html" and note the result. Actual result: The result on the attachment page reads: Local storage could not be set. [Exception... "Security error" code: "1000" nsresult: "0x805303e8 (NS_ERROR_DOM_SECURITY_ERR)" [...]] Expected result: The result on the attachment page reads: Local storage set successfully.
Reporter | ||
Updated•12 years ago
|
Attachment #618115 -
Attachment description: Tries to set a key in local storage. → Local storage test
Attachment #618115 -
Attachment mime type: text/plain → text/html
Reporter | ||
Updated•12 years ago
|
Status: UNCONFIRMED → RESOLVED
Closed: 12 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•