Closed
Bug 687579
Opened 14 years ago
Closed 13 years ago
Remove support for globalStorage
Categories
(Core :: DOM: Core & HTML, defect)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla13
People
(Reporter: mayhemer, Assigned: matjk7)
References
(Blocks 1 open bug)
Details
(Keywords: addon-compat, dev-doc-complete)
Attachments
(2 files)
|
21.71 KB,
patch
|
jst
:
review+
|
Details | Diff | Splinter Review |
|
37.36 KB,
patch
|
jst
:
review+
|
Details | Diff | Splinter Review |
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.
Keywords: dev-doc-needed
| Assignee | ||
Updated•14 years ago
|
Assignee: nobody → matjk7
Status: NEW → ASSIGNED
| Assignee | ||
Comment 1•14 years ago
|
||
Attachment #565866 -
Flags: review?(jst)
| Assignee | ||
Comment 2•14 years ago
|
||
Attachment #565867 -
Flags: review?(jst)
Comment 4•14 years ago
|
||
I'm in favor of doing this, but cc:ing some more people who might have thoughts on timing of this etc.
| Reporter | ||
Comment 5•14 years ago
|
||
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.
| Reporter | ||
Comment 6•14 years ago
|
||
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.
Comment 8•14 years ago
|
||
(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 ?
Comment 9•14 years ago
|
||
I added a warning for 9; see dep.
Comment 10•14 years ago
|
||
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+
Updated•14 years ago
|
Attachment #565867 -
Flags: review?(jst) → review+
| Reporter | ||
Comment 11•13 years ago
|
||
Any updates here?
Removing this stuff would simplify a lot of code and patches. Also we should do this as an evangelism change soon.
Comment 12•13 years ago
|
||
The patches are reviewed, and Johnny suggested it land a couple weeks ago. What sort of updates are you looking for?
| Reporter | ||
Comment 13•13 years ago
|
||
(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 :)
Comment 14•13 years ago
|
||
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.
Comment 15•13 years ago
|
||
Comment 16•13 years ago
|
||
Do we really want to land this so late in a cycle?
| Reporter | ||
Comment 17•13 years ago
|
||
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.
Comment 18•13 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/8cdce56098cd
https://hg.mozilla.org/mozilla-central/rev/7c62688f88fa
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla13
Comment 19•13 years ago
|
||
Someone already took care of this.
Keywords: dev-doc-needed → dev-doc-complete
Blocks: 762823
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•