Commit 8ffd6173 authored by Xunran Ding's avatar Xunran Ding Committed by Commit Bot

Start same-origin URLs with slash in cache storage dev tools

Bug: 760102
Change-Id: I3811976622dcc06845ac970de7436d7f1fb6896e
Reviewed-on: https://chromium-review.googlesource.com/1146122Reviewed-by: default avatarDmitry Gozman <dgozman@chromium.org>
Commit-Queue: Xunran Ding <xunran.ding@samsung.com>
Cr-Commit-Position: refs/heads/master@{#578893}
parent 677bce2c
......@@ -9,9 +9,9 @@ Dumping CacheStorage tree:
(cache empty)
Dumping CacheStorage tree:
cache: testCache1 - http://127.0.0.1:8000
1, text/plain, 0
2, text/plain, 0
/1, text/plain, 0
/2, text/plain, 0
cache: testCache2 - http://127.0.0.1:8000
1, text/plain, 0
2, text/plain, 0
/1, text/plain, 0
/2, text/plain, 0
......@@ -9,11 +9,11 @@ Dumping CacheStorage tree:
(cache empty)
Dumping CacheStorage tree:
cache: testCache1 - http://127.0.0.1:8000
1, text/plain, 0
2, text/plain, 0
/1, text/plain, 0
/2, text/plain, 0
cache: testCache2 - http://127.0.0.1:8000
1, text/plain, 0
2, text/plain, 0
/1, text/plain, 0
/2, text/plain, 0
Deleting CacheStorage cache testCache2
Dumping CacheStorage tree:
(empty)
......
......@@ -4,15 +4,15 @@ Dumping CacheStorage tree:
(empty)
Dumping CacheStorage tree:
cache: testCache1 - http://127.0.0.1:8000
1, text/plain, 0
2, text/plain, 0
/1, text/plain, 0
/2, text/plain, 0
cache: testCache2 - http://127.0.0.1:8000
1, text/plain, 0
2, text/plain, 0
/1, text/plain, 0
/2, text/plain, 0
Deleting CacheStorage entry http://fake.request2.com/2 in cache testCache2
Dumping CacheStorage tree:
cache: testCache1 - http://127.0.0.1:8000
1, text/plain, 0
/1, text/plain, 0
cache: testCache2 - http://127.0.0.1:8000
1, text/plain, 0
/1, text/plain, 0
......@@ -8,7 +8,7 @@ Dumping CacheStorage tree:
Added entry
Dumping CacheStorage tree:
cache: testCache1 - http://127.0.0.1:8000
1, text/plain, 0
/1, text/plain, 0
Deleted entry
Dumping CacheStorage tree:
cache: testCache1 - http://127.0.0.1:8000
......
......@@ -341,8 +341,6 @@ Resources.ServiceWorkerCacheView.DataGridNode = class extends DataGrid.DataGridN
this._path = Common.ParsedURL.extractPath(request.url());
if (!this._path)
this._path = request.url();
if (this._path.length > 1 && this._path.startsWith('/'))
this._path = this._path.substring(1);
this._request = request;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment