Bug 257188 - Web Inspector: Give the possibility to create different breakpoints for the same event
Summary: Web Inspector: Give the possibility to create different breakpoints for the s...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: WebKit Nightly Build
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-05-23 01:05 PDT by Karl Dubost
Modified: 2023-05-23 01:05 PDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Karl Dubost 2023-05-23 01:05:06 PDT
1. Go to a site
2. Open Web Inspector
3. Go to Sources
4. Click on the + in the breakpoint section
5. Choose Event Breakpoint…
6. a widget appears… in the Event field, type: resize 
7. Add Action. Choose Log Message on the drop down
8. Type RESIZE in for the log message
9. Check the options Box for automatically continue after evaluating
10. Click outside of the widget
11. Click again the + and choose Event Breakpoint…
12. In the Event type field, type: resize
13. in the condition type: window.getComputedStyle(document.body).width == "1000px"
14. Click outside of the window

Results:
The breakpoint is not added.
A beep notifies about it.

Note:
It would be practical to be able to add multiple breakpoints for the same type of event with different conditions. 
Maybe it would require to distinguish in between names of the breakpoint and name of the event we want to target.
Comment 1 Radar WebKit Bug Importer 2023-05-23 01:05:17 PDT
<rdar://problem/109702814>