Commit Graph
12 Commits
Author SHA1 Message Date
Sigurd Schneider 818087f47f Move more cache-related classes to ApplicationPanelCacheSection.ts
This CL moves to more classes to ApplicationPanelCacheSection.ts,
making progress towards having all cache-related tree item logic
for the Application panel in that file.

Bug: chromium:1157484
Change-Id: I880fcbb22a0e194b491b59207a925f4b1a6e7e7b
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2587022
Commit-Queue: Sigurd Schneider <sigurds@chromium.org>
Reviewed-by: Wolfgang Beyer <wolfi@chromium.org>
2020-12-14 11:38:46 +00:00
Tim van der Lippe 5e1aeb0577 Remove suppress annotations
All of these were Closure-specific.

R=szuend@chromium.org

No-Presubmit: True
Bug: 1011811
Change-Id: Ia580e21cd3b06f532bb5a63a770ccfa3d7c796ee
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2569761
Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>
Reviewed-by: Simon Zünd <szuend@chromium.org>
2020-12-02 17:27:02 +00:00
Tim van der Lippe 8b068ffba1 Remove initialization of globals in Runtime
We initialize the globals in the `-legacy.js` files and therefore
don't require the additional assignments in the Runtime itself.

R=jacktfranklin@chromium.org

Bug: 1127902
Fixed: 1058320
Change-Id: Id6c13d9f2b9d781bfab73957621324335d394a2b
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2410225
Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
2020-09-15 12:08:12 +00:00
Tim van der Lippe 83f02be257 Standardize license headers
Many of the license headers were incorrect or corrupted. To prepare for
a check that verifies correct license headers are added to source code,
we should fix up the existing license headers to use the correct format.

The license headers that include non-Google/non-Chromium authors are
left as-is.

Change-Id: Iab9bdc41d815ac7ab07ccacf44818f3b56a75230
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2016745
Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>
Reviewed-by: Benedikt Meurer <bmeurer@chromium.org>
2020-01-23 13:00:41 +00:00
Tim van der Lippe 1d6e57a0e3 Always add braces to single-line if-statements
The Chromium/Google style guides does not enforce curly braces for
single-line if-statements, but does strongly recommend doing so. Adding
braces will improve code readability, by visually separating code
blocks. This will also prevent issues where accidental additions are
pushed to the "else"-clause instead of in the if-block.

This CL also updates the presubmit `eslint` to run the fix with the
correct configuration. It will now fix all issues it can fix.

Change-Id: I4b616f21a99393f168dec743c0bcbdc7f5db04a9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1821526
Commit-Queue: Tim Van der Lippe <tvanderlippe@chromium.org>
Reviewed-by: Yang Guo <yangguo@chromium.org>
Reviewed-by: Jeff Fisher <jeffish@microsoft.com>
Cr-Original-Commit-Position: refs/heads/master@{#701070}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 7e0bdbe2d7f9fc2386bfaefda3cc29c66ccc18f9
2019-09-30 11:55:34 +00:00
Harley Li b2ac6e7066 [DevTools] Expose all IndexedDB databases to DevTools
Before this patch, only the main frame's IndexedDBs are exposed in
DevTools>Application>IndexedDB panel.

Bug: 943770
Change-Id: Ia8e13e06065ca7ceedb83f8f6edf0dffabf63f2d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1539214
Reviewed-by: Joel Einbinder <einbinder@chromium.org>
Commit-Queue: Haihong Li (Harley) <hhli@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#649705}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 198fb2cf9272b63c1f7e34d4dc5d292232c6dcb1
2019-04-10 23:19:38 +00:00
Harley Li 2ba8ce75f8 [DevTools] Add entry counter to Application>Cache Storage
Without an entry counter, users might get confused how many entries
are in a cache storage, because the UI indication is not obvious enough.
Besides, adding an entry counter is consistent with IndexedDB tables.

When the path filter is not an empty string, the count reflects how
many responses were matched in total.

Bug: 930865
Change-Id: I058562a251163459eeb2adc24def4888f9a9e863
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1537254
Commit-Queue: Haihong Li (Harley) <hhli@chromium.org>
Reviewed-by: Dmitry Gozman <dgozman@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#644523}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 45237b838f0aaf393967a9a8b46d83bbee20851b
2019-03-26 21:17:21 +00:00
Harley Li 915e7e4ded [DevTools] Add request headers to cached response matching
In Applocation>Cache Storage, to preview a cached response, DevTools
needs to call requestCachedResponse() to the backend to fetch it.
Originally, DevTools is unable to fetch cached responses for requests
that have headers, and this is because in DevTools's beckend, the field
'headers' of mojom::blink::FetchAPIRequest remains unfilled. This
patch fixes the issue by filling this field.


Bug: 890359
Change-Id: I599cc1393d5c02baa7d7f90fc22fd379b1745090
Reviewed-on: https://chromium-review.googlesource.com/c/1455272
Reviewed-by: Dmitry Gozman <dgozman@chromium.org>
Commit-Queue: Haihong Li (Harley) <hhli@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#630005}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 8a7dcd563bc62a5f48731b2c83a0413e59994990
2019-02-07 17:53:55 +00:00
Harley Li 69e6a06ae7 [DevTools] Add a test case for cache entry matching
The patch adds a DevTools test case where two caches have two different
entries but these two entries share the same request URL. Originally in
DevTools, the content of the first such entry is shown for both of these
two entries. Now DevTools should be able to show the contents of them
separately.

The root cause was in the backend, and was addressed by CL1395998.

Bug: 917826
Change-Id: Ia94d13a76458e6122284aeb83250730a913ce4c9
Reviewed-on: https://chromium-review.googlesource.com/c/1454903
Reviewed-by: Dmitry Gozman <dgozman@chromium.org>
Commit-Queue: Haihong Li (Harley) <hhli@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#629254}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: b981c487360d2bb4fa5e65a48f28d2e801d4b8ce
2019-02-05 19:22:00 +00:00
Harley Li 574c7204c8 [DevTools] URL path filter in Application > cache storage
With this patch users are able to search for cache entries which contain a given
URL path in Application panel's cache storage table. Only entries that have the
matching URL paths will be displayed in the table, which supports pagination if
there are too many entries returned.

Bug: 884194
Change-Id: If285cc43859e82f5e59b80b1b761e9836aa5f510
Reviewed-on: https://chromium-review.googlesource.com/c/1345421
Reviewed-by: Dmitry Gozman <dgozman@chromium.org>
Commit-Queue: Haihong Li (Harley) <hhli@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#613204}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 3c68e3a7bc37f6eeb338e7768735087ae469a329
2018-12-03 19:55:54 +00:00
Harley Li 044c7ac96c Add indication of the type of response a cached resource came from
If a cached resource is from an opaque response, it will by design takes
up more cache storage space than its real size. The indication inside the
data grid of Application > Cache Storage shows the response type so users
won't be baffled about unexpectedly huge cache storage usage.

Resolved the merge conflict in CL1256018.

Bug: 847462
Change-Id: I885dd62cc3528d29fd4abd789e4727aca028ba59
Reviewed-on: https://chromium-review.googlesource.com/c/1259299
Reviewed-by: Erik Luo <luoe@chromium.org>
Reviewed-by: Dmitry Gozman <dgozman@chromium.org>
Commit-Queue: Haihong Li (Harley) <hhli@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#603096}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: ce8a01b63e902ded8046d723aa16e905909dd15e
2018-10-26 15:14:20 +00:00
Blink Reformat 4c46d0969f The Great Blink mv for source files, part 2.
Move and rename files.

NOAUTOREVERT=true
NOPRESUBMIT=true
NOTREECHECKS=true
Bug: 768828
TBR=darin@chromium.org
NOTRY=true

Change-Id: I66d3b155808bc5bdbf237b80208e1e552bcf7f28
Reviewed-on: https://chromium-review.googlesource.com/1001153
Reviewed-by: Blink Reformat <blink-reformat@chromium.org>
Commit-Queue: Blink Reformat <blink-reformat@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#549061}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 0aee4434a4dba42a42abaea9bfbc0cd196a63bc1
2018-04-07 15:32:37 +00:00