Closed Bug 629859 Opened 13 years ago Closed 3 years ago

Drop support for localStorage[int]

Categories

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

defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME
Tracking Status
blocking2.0 --- -

People

(Reporter: Ms2ger, Assigned: maciej.malecki)

References

()

Details

Attachments

(3 files)

      No description provided.
Assignee: nobody → honzab.moz
blocking2.0: --- → ?
Why should this block 2.0?
This should go out ASAP, if the patch is simple.  But if there are voices again, then probably just release after Fx4.
No, we should not do this for FF4. The risk of breaking existing sites is too big (there's always gecko-specific code paths).

Would be great to do asap after FF4 though.
blocking2.0: ? → -
My apologies again for this, by the way.
This patch duplicates behavior of nsStorage2SH::SetProperty, which "casts" each key to string.
Attachment #540332 - Flags: review?(jonas)
Assignee: honzab.moz → maciej.malecki
Status: NEW → ASSIGNED
Comment on attachment 540332 [details] [diff] [review]
Patch to drop support for localStorage[int]

Don't we also need to remove the nsIDOMStorage::Key function implementation?
Attachment #540332 - Flags: review?(jonas) → review+
This patch removes definition of nsIDOMStorage::key (dom/interfaces/storage/nsIDOMStorage.idl) and it's implementation in nsDOMStorage2::Key (dom/src/storage/nsDOMStorage.cpp).
Attachment #546353 - Flags: review?(jonas)
I'm not sure if should we test to verify if this method is not working anymore or is just removing these tests enough?
Attachment #546355 - Flags: review?(jonas)
Comment on attachment 546355 [details] [diff] [review]
Remove relevant tests

There are more test you have to remove this API checks from:
dom\tests\mochitest\localstorage\frameOrder.html
dom\tests\mochitest\localstorage\test_localStorageBase.html
dom\tests\mochitest\localstorage\test_localStorageBasePrivateBrowsing.html
dom\tests\mochitest\localstorage\test_localStorageBaseSessionOnly.html
dom\tests\mochitest\localstorage\test_localStorageKeyOrder.html
dom\tests\mochitest\sessionstorage\test_sessionStorageBase.html
Comment on attachment 546353 [details] [diff] [review]
Removes nsIDOMStorage::Key implementation (in nsDOMStorage2) and definition

Wait! the key function is still in the spec? Appears my previous suggestion to remove it was wrong. I didn't realize that it was a publicly exposed function required by spec.
Attachment #546353 - Flags: review+ → review-
Did the approved patch land?
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: