Chromium Code Reviews
DescriptionQuotaTracker: Use 'raw' string as key for origin
Prior to r382660 the QuotaTracker API took DatabaseIdentifiers, and a
serialization was used as the key in maps. This was changed to take
SecurityOrigins instead and the serialization via toString(). This
introduced additional special cases e.g. "null" for file:// origins in
some cases, leading to mismatches between setting and lookup in the
map depending on when the SecurityOrigin was minted. To fix, use
toRawString() which matches the old behavior without special cases.
BUG=604811
R=michaeln@chromium.org
Committed: https://crrev.com/976f8fa83bf90a5983af3ca8a6e74d34044b93ff
Cr-Commit-Position: refs/heads/master@{#389607}
Patch Set 1 #Patch Set 2 : Added unit tests #
Messages
Total messages: 7 (2 generated)
|
|||||||||||||||||||||||||||||||||||||