Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upImplement Storage::SupportedPropertyNames #7693
Conversation
|
Reviewed 5 of 5 files at r1. components/net/storage_task.rs, line 113 [r1] (raw file): Comments from the review on Reviewable.io |
|
Review status: all files reviewed at latest revision, 1 unresolved discussion, all commit checks successful. components/net/storage_task.rs, line 113 [r1] (raw file): All the empty elements are handled using Options types instead of casting them to empty string or vec![]. It kinda make sense as we have pattern matching available in rust and it's explicit. Comments from the review on Reviewable.io |
|
Review status: all files reviewed at latest revision, 2 unresolved discussions, all commit checks successful. components/net/storage_task.rs, line 122 [r1] (raw file): Comments from the review on Reviewable.io |
|
-S-awaiting-answer +S-needs-code-changes Review status: all files reviewed at latest revision, 2 unresolved discussions, all commit checks successful. components/net/storage_task.rs, line 113 [r1] (raw file): Comments from the review on Reviewable.io |
|
Review status: all files reviewed at latest revision, 1 unresolved discussion, all commit checks successful. components/net/storage_task.rs, line 113 [r1] (raw file): Length indeed provides a default value. However, key, setitem, getitem, removeitem all provides Option response as empty elements. If we move to a Vec when we have a empty element from IPCSender shall we send vec![] as default value ? If yes, i'll unwrap the ipc object and provide a default value. Thanks. Comments from the review on Reviewable.io |
|
Review status: all files reviewed at latest revision, 1 unresolved discussion, all commit checks successful. components/net/storage_task.rs, line 113 [r1] (raw file): Comments from the review on Reviewable.io |
a10f4d3
to
026467b
|
Review status: components/net/storage_task.rs, line 113 [r1] (raw file): Comments from the review on Reviewable.io |
|
@nox ping? |
|
-S-awaiting-review +S-needs-code-changes Reviewed 3 of 3 files at r2. components/net/storage_task.rs, line 122 [r2] (raw file): data.get(&origin).map_or(vec![], |entry| entry.keys().cloned().collect()))See the similar piece of code in length(). Comments from the review on Reviewable.io |
026467b
to
080f76a
|
Review status: 4 of 5 files reviewed at latest revision, 1 unresolved discussion, all commit checks successful. components/net/storage_task.rs, line 122 [r2] (raw file): Comments from the review on Reviewable.io |
|
@bors-servo r+ Reviewed 1 of 1 files at r3. Comments from the review on Reviewable.io |
|
|
|
|
Implement Storage::SupportedPropertyNames Hi guys, This is a rough draft for issue #7670 . It includes : - SupportedPropertyNames implementation - WPT with Object.supportedpropertynames with Local Storage and Session Storage. The following link help me understood the issue : http://www.w3.org/TR/webstorage/#the-storage-interface https://html.spec.whatwg.org/multipage/infrastructure.html#supported-property-names Thanks for looking into it. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7693) <!-- Reviewable:end -->
|
|
|
I'll rebase against master and see if test ref still fails on my desktop. |
080f76a
to
e7a3220
|
@bors-servo: r+ |
|
|
Implement Storage::SupportedPropertyNames Hi guys, This is a rough draft for issue #7670 . It includes : - SupportedPropertyNames implementation - WPT with Object.supportedpropertynames with Local Storage and Session Storage. The following link help me understood the issue : http://www.w3.org/TR/webstorage/#the-storage-interface https://html.spec.whatwg.org/multipage/infrastructure.html#supported-property-names Thanks for looking into it. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7693) <!-- Reviewable:end -->
|
|
ddrmanxbxfr commentedSep 21, 2015
Hi guys,
This is a rough draft for issue #7670 .
It includes :
The following link help me understood the issue :
http://www.w3.org/TR/webstorage/#the-storage-interface
https://html.spec.whatwg.org/multipage/infrastructure.html#supported-property-names
Thanks for looking into it.