WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
192719
Web Inspector: Debugger: move breakpoint storage to use `WI.ObjectStore`
https://bugs.webkit.org/show_bug.cgi?id=192719
Summary
Web Inspector: Debugger: move breakpoint storage to use `WI.ObjectStore`
Devin Rousso
Reported
2018-12-14 15:12:53 PST
Rather than having to `JSON.stringify` and `JSON.parse` each breakpoint in a giant list on `localStorage`, we can leverage IndexedDB to store breakpoints in a more "friendly" way. Additionally, this would allow us to not have to re-serialize all breakpoints when saving an update to a single breakpoint. The restoring process is already "async" (we purposely invoke a timeout so all agents have a chance to respond to the added breakpoints), so the async nature of IndexedDB probably won't be an issue.
Attachments
Patch
(79.94 KB, patch)
2019-03-16 02:02 PDT
,
Devin Rousso
no flags
Details
Formatted Diff
Diff
Archive of layout-test-results from ews103 for mac-highsierra
(2.46 MB, application/zip)
2019-03-16 03:05 PDT
,
EWS Watchlist
no flags
Details
Archive of layout-test-results from ews105 for mac-highsierra-wk2
(2.75 MB, application/zip)
2019-03-16 03:18 PDT
,
EWS Watchlist
no flags
Details
Archive of layout-test-results from ews117 for mac-highsierra
(2.26 MB, application/zip)
2019-03-16 03:49 PDT
,
EWS Watchlist
no flags
Details
Patch
(78.88 KB, patch)
2019-03-16 16:55 PDT
,
Devin Rousso
no flags
Details
Formatted Diff
Diff
Archive of layout-test-results from ews124 for ios-simulator-wk2
(2.55 MB, application/zip)
2019-03-16 19:00 PDT
,
EWS Watchlist
no flags
Details
Patch
(78.64 KB, patch)
2019-03-20 11:48 PDT
,
Devin Rousso
no flags
Details
Formatted Diff
Diff
Show Obsolete
(6)
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2018-12-14 16:59:58 PST
<
rdar://problem/46746857
>
Devin Rousso
Comment 2
2019-03-16 02:02:01 PDT
Created
attachment 364924
[details]
Patch
EWS Watchlist
Comment 3
2019-03-16 03:05:37 PDT
Comment hidden (obsolete)
Comment on
attachment 364924
[details]
Patch
Attachment 364924
[details]
did not pass mac-ews (mac): Output:
https://webkit-queues.webkit.org/results/11530442
New failing tests: inspector/worker/debugger-pause.html inspector/unit-tests/objectStore/clear.html
EWS Watchlist
Comment 4
2019-03-16 03:05:39 PDT
Comment hidden (obsolete)
Created
attachment 364928
[details]
Archive of layout-test-results from ews103 for mac-highsierra The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: ews103 Port: mac-highsierra Platform: Mac OS X 10.13.6
EWS Watchlist
Comment 5
2019-03-16 03:18:26 PDT
Comment hidden (obsolete)
Comment on
attachment 364924
[details]
Patch
Attachment 364924
[details]
did not pass mac-wk2-ews (mac-wk2): Output:
https://webkit-queues.webkit.org/results/11530485
New failing tests: inspector/worker/debugger-pause.html inspector/unit-tests/objectStore/clear.html
EWS Watchlist
Comment 6
2019-03-16 03:18:28 PDT
Comment hidden (obsolete)
Created
attachment 364929
[details]
Archive of layout-test-results from ews105 for mac-highsierra-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: ews105 Port: mac-highsierra-wk2 Platform: Mac OS X 10.13.6
EWS Watchlist
Comment 7
2019-03-16 03:49:04 PDT
Comment hidden (obsolete)
Comment on
attachment 364924
[details]
Patch
Attachment 364924
[details]
did not pass mac-debug-ews (mac): Output:
https://webkit-queues.webkit.org/results/11530625
New failing tests: inspector/worker/debugger-pause.html inspector/unit-tests/objectStore/clear.html
EWS Watchlist
Comment 8
2019-03-16 03:49:05 PDT
Comment hidden (obsolete)
Created
attachment 364930
[details]
Archive of layout-test-results from ews117 for mac-highsierra The attached test failures were seen while running run-webkit-tests on the mac-debug-ews. Bot: ews117 Port: mac-highsierra Platform: Mac OS X 10.13.6
Devin Rousso
Comment 9
2019-03-16 16:55:13 PDT
Created
attachment 364948
[details]
Patch
EWS Watchlist
Comment 10
2019-03-16 19:00:01 PDT
Comment hidden (obsolete)
Comment on
attachment 364948
[details]
Patch
Attachment 364948
[details]
did not pass ios-sim-ews (ios-simulator-wk2): Output:
https://webkit-queues.webkit.org/results/11536724
New failing tests: storage/indexeddb/modern/idbtransaction-objectstore-failures-private.html
EWS Watchlist
Comment 11
2019-03-16 19:00:03 PDT
Comment hidden (obsolete)
Created
attachment 364953
[details]
Archive of layout-test-results from ews124 for ios-simulator-wk2 The attached test failures were seen while running run-webkit-tests on the ios-sim-ews. Bot: ews124 Port: ios-simulator-wk2 Platform: Mac OS X 10.13.6
Timothy Hatcher
Comment 12
2019-03-20 08:52:01 PDT
Comment on
attachment 364948
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=364948&action=review
> Source/WebInspectorUI/UserInterface/Models/Breakpoint.js:224 > + type = type || WI.BreakpointAction.Type.Log;
Why do this?
> Source/WebInspectorUI/UserInterface/Models/Breakpoint.js:292 > + serializeOptions()
serializableOptions?
Devin Rousso
Comment 13
2019-03-20 11:47:00 PDT
Comment on
attachment 364948
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=364948&action=review
>> Source/WebInspectorUI/UserInterface/Models/Breakpoint.js:224 >> + type = type || WI.BreakpointAction.Type.Log; > > Why do this?
Since I removed `WI.Breakpoint.DefaultBreakpointActionType`. I'll put this in the caller.
>> Source/WebInspectorUI/UserInterface/Models/Breakpoint.js:292 >> + serializeOptions() > > serializableOptions?
This matches the naming scheme of other `serialize*` functions (e.g. `WI.HeapSnapshot.prototype.serializeNode`).
Devin Rousso
Comment 14
2019-03-20 11:48:46 PDT
Created
attachment 365372
[details]
Patch
WebKit Commit Bot
Comment 15
2019-03-20 12:50:26 PDT
Comment on
attachment 365372
[details]
Patch Clearing flags on attachment: 365372 Committed
r243226
: <
https://trac.webkit.org/changeset/243226
>
WebKit Commit Bot
Comment 16
2019-03-20 12:50:28 PDT
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug