Closed Bug 687579 Opened 14 years ago Closed 13 years ago

Remove support for globalStorage

Categories

(Core :: DOM: Core & HTML, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla13

People

(Reporter: mayhemer, Assigned: matjk7)

References

(Blocks 1 open bug)

Details

(Keywords: addon-compat, dev-doc-complete)

Attachments

(2 files)

This is currently unspecified feature. I plan to do optimization of our DOM storage code. Removing globalStorage, that force us to keep compatibility suboptimal code, makes it easier.
Depends on: 688190
Keywords: dev-doc-needed
Assignee: nobody → matjk7
Status: NEW → ASSIGNED
Attachment #565866 - Flags: review?(jst)
Attachment #565867 - Flags: review?(jst)
We should probably land this for 11.
Keywords: addon-compat
I'm in favor of doing this, but cc:ing some more people who might have thoughts on timing of this etc.
Comment on attachment 565866 [details] [diff] [review] part 1: Remove globalStorage implementation Review of attachment 565866 [details] [diff] [review]: ----------------------------------------------------------------- ::: dom/src/storage/nsDOMStorage.cpp @@ -2103,5 @@ > - *aResult = newstorage->InitAsGlobalStorage(usedDomain); > - if (NS_FAILED(*aResult)) { > - mStorages.Remove(usedDomain); > - return nsnull; > - } You cannot return a storage w/o initiation. nsDOMStorageList class should be completely removed since it is (was) only returned by window.globalStorage attribute.
Blocks: 495337
Comment on attachment 565866 [details] [diff] [review] part 1: Remove globalStorage implementation Review of attachment 565866 [details] [diff] [review]: ----------------------------------------------------------------- And also "dom-storage-changed" observer topic invocation (nsDOMStorage::BroadcastChangeNotification) and observing (nsGlobalWindow::Observe) should be removed.
I do think we should do this. But I suspect that we'll need to do one release which warns about usage first. So we should either get such a warning into aurora (I think we've done that in the past), or land such a warning now and do removal after next aurora branch.
(In reply to Jonas Sicking (:sicking) from comment #7) > I do think we should do this. But I suspect that we'll need to do one > release which warns about usage first. I'd say at least one release. > So we should either get such a > warning into aurora (I think we've done that in the past), or land such a > warning now and do removal after next aurora branch. Could we get the warning to aurora now, and remove the feature from FF 11 ?
I added a warning for 9; see dep.
Comment on attachment 565866 [details] [diff] [review] part 1: Remove globalStorage implementation Sorry for taking so long to get to this :( This change looks all good. It might not apply cleanly any more, but fixing that up should be pretty easy. Now would be a good time to land this as we're still pretty early in a release cycle.
Attachment #565866 - Flags: review?(jst) → review+
Attachment #565867 - Flags: review?(jst) → review+
Any updates here? Removing this stuff would simplify a lot of code and patches. Also we should do this as an evangelism change soon.
The patches are reviewed, and Johnny suggested it land a couple weeks ago. What sort of updates are you looking for?
(In reply to Josh Matthews [:jdm] from comment #12) > The patches are reviewed, and Johnny suggested it land a couple weeks ago. > What sort of updates are you looking for? To land it then :)
Try run for 0aca0bcc3f07 is complete. Detailed breakdown of the results available here: https://tbpl.mozilla.org/?tree=Try&rev=0aca0bcc3f07 Results (out of 49 total builds): success: 42 warnings: 7 Builds (or logs if builds failed) available at: http://ftp.mozilla.org/pub/mozilla.org/firefox/try-builds/josh@joshmatthews.net-0aca0bcc3f07 Timed out after 06 hours without completing.
Do we really want to land this so late in a cycle?
While looking at the patches, there is more to be removed - global window and dom storage still have a code to handle "dom-storage-changed", or what is the name, event indicating change in globalStorage. We can freely remove it too. I'll have a followup and do the clean up after this bug settles down.
Blocks: 732708
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla13
Depends on: 736731
Depends on: 734125
Depends on: 739976
Depends on: 745516
Someone already took care of this.
Depends on: 764546
Depends on: 765494
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: