Closed Bug 926393 Opened 13 years ago Closed 12 years ago

localstorage in remote iframes

Categories

(Firefox Graveyard :: SocialAPI, defect)

26 Branch
x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: mixedpuppy, Unassigned)

Details

Attachments

(1 file)

While we generally removed localStorage support from our frameworker, we left it enabled for "whitelisted" providers (currently Facebook, Mixi, MSNNow and Cliqz). In general I feel we should no longer use the whitelist. With remote frameworkers, we no longer are able to add localStorage. This breaks the above providers that relied on localStorage. I would like to propose that for those providers only, we do not remote the frameworker until we are able to work with them to update their workers.
Attachment #816551 - Flags: feedback?(mhammond)
Attachment #816551 - Flags: feedback?(gavin.sharp)
How broken does it leave these providers? Have we reached out to them and asked them to change their provider to not rely on it? All in all though, I guess I'm not that bothered - it still seems as though the vast majority of users with more than 1 provider would have only 1 loaded in the chrome process. But it would still be best to avoid it :)
This seems intermittent. Facebook had stopped working for me, and I looked into console to see what might be happening, thus seeing errors from frameworker about localstorage. However, facebook now seems to be working just fine without this patch. I'll keep this open for a little while and monitor what is happening.
(In reply to Shane Caraveo (:mixedpuppy) from comment #0) > With remote frameworkers, we no longer are able to add localStorage. Why is this? I can see that being the case when we move to actual SharedWorkers, but localStorage still works in content processes... Remoting the workers has benefits even in the single provider case, so I would much rather push back on providers than land this patch.
Comment on attachment 816551 [details] [diff] [review] no-remote for whitelisted providers I might be convinced otherwise, but I don't like it!
Attachment #816551 - Flags: feedback?(gavin.sharp) → feedback-
Attachment #816551 - Flags: feedback?(mhammond)
(In reply to :Gavin Sharp (use gavin@gavinsharp.com for email) from comment #4) > (In reply to Shane Caraveo (:mixedpuppy) from comment #0) > > With remote frameworkers, we no longer are able to add localStorage. > > Why is this? I can see that being the case when we move to actual > SharedWorkers, but localStorage still works in content processes... I'm actually not certain localStorage was removed. Facebook stopped working and I saw the below messages in the console, which led me to believe that was the issue. However, per comment #3, It was/is an intermittent problem with facebook. 10:32:16.790 FrameWorker: failed to import API indexedDB [Exception... "The operation failed for reasons unrelated to the database itself and not covered by any other error code." code: "0" nsresult: "0x80660001 (UnknownError)" location: "<unknown>"] FrameWorkerContent.js:114 10:32:16.790 FrameWorker: failed to import API localStorage [Exception... "Component returned failure code: 0x80040111 (NS_ERROR_NOT_AVAILABLE) [nsIDOMWindow.localStorage]" nsresult: "0x80040111 (NS_ERROR_NOT_AVAILABLE)" location: "JS frame :: resource://gre/modules/FrameWorkerContent.js :: createSandbox/< :: line 111" data: no] FrameWorkerContent.js:114 10:32:16.791 FrameWorker: failed to import API indexedDB [Exception... "The operation failed for reasons unrelated to the database itself and not covered by any other error code." code: "0" nsresult: "0x80660001 (UnknownError)" location: "<unknown>"] FrameWorkerContent.js:114 10:32:16.791 FrameWorker: failed to import API localStorage [Exception... "Component returned failure code: 0x80040111 (NS_ERROR_NOT_AVAILABLE) [nsIDOMWindow.localStorage]" nsresult: "0x80040111 (NS_ERROR_NOT_AVAILABLE)" location: "JS frame :: resource://gre/modules/FrameWorkerContent.js :: createSandbox/< :: line 111" data: no] FrameWorkerContent.js:114
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → WORKSFORME
Product: Firefox → Firefox Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: