Chromium Code Reviews
DescriptionServiceWorker: Scope should match url in longest-prefix-match way
Current implementation matches a registration in the first-match way, but the
spec[1] requires to match one in the longest-prefix-match way. To support it,
this CL introduces FindLongestScopeMatch().
[1] http://www.w3.org/TR/2014/WD-service-workers-20140508/
BUG=370773
TEST=content_unittests --gtest_filter=ServiceWorkerStorageTest.*
TEST=content_unittests --gtest_filter=ServiceWorkerUtilsTest.*
Patch Set 1 : remake (drop the exact-match) #
Total comments: 1
Patch Set 2 : fix compile error #
Messages
Total messages: 5 (0 generated)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||