Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion lib/debug/server_cdp.rb
Original file line number Diff line number Diff line change
Expand Up @@ -419,6 +419,7 @@ def send **msg

def extract_data
first_group = @sock.getbyte
raise Detach if first_group == nil
fin = first_group & 0b10000000 != 128
raise 'Unsupported' if fin

Expand Down Expand Up @@ -489,7 +490,8 @@ def process
id: SecureRandom.hex
when 'Runtime.terminateExecution'
send_response req
exit
@q_msg << 'q!'
pause unless SESSION.in_subsession?
when 'Page.startScreencast', 'Emulation.setTouchEmulationEnabled', 'Emulation.setEmitTouchEventsForMouse',
'Runtime.compileScript', 'Page.getResourceContent', 'Overlay.setPausedInDebuggerMessage',
'Runtime.releaseObjectGroup', 'Runtime.discardConsoleEntries', 'Log.clear', 'Runtime.runIfWaitingForDebugger'
Expand Down
Loading