-
Notifications
You must be signed in to change notification settings - Fork 286
CDP basic #215
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
CDP basic #215
Changes from 1 commit
Commits
Show all changes
117 commits
Select commit
Hold shift + click to select a range
c57bb9e
WIP: CDP
francisbouvier babac69
Remove alloc from CmdContext struct
francisbouvier defab0c
Free msg at the right place
francisbouvier cfd6fc9
Working sendLater (I/O timeout)
francisbouvier 95a64b7
Handle concurrent calls to sendLater
francisbouvier e908cb0
Use send as normal behavior in cmdCallback
francisbouvier ffbfd36
Add stringify function in cdp
francisbouvier 5e1fe65
send Target.attachedToTarget after Target.setAutoAttach
francisbouvier 9805710
Big refacto
francisbouvier b124220
Add Page domain
francisbouvier a708a7f
Add Page.getFrameTree
francisbouvier 626fae0
Add Log domain
francisbouvier e073e33
Add Runtime domain
francisbouvier 0a03dcb
Add Page.setLifecycleEventsEnabled
francisbouvier 86b1c85
Add Page.addScriptToEvaluateOnNewDocument
francisbouvier aff2250
Add Emulation domain
francisbouvier 67bbd99
Add Network domain
francisbouvier 211fa3d
Handle several JSON msg in 1 read
francisbouvier 26eda90
Add setFocusEmulationEnabled
francisbouvier 36dbc28
Add Runtime.runIfWaitingForDebugger
francisbouvier 9e8b765
Allow method with sessionId and use it when appropriate (*.enable)
francisbouvier 05c5d06
Change Page.addScriptToEvaluateOnNewDocument
francisbouvier 21afa1f
Do not emit optional null value in JSON output
francisbouvier 4d8cdc6
Handle sessionId in result
francisbouvier e59fc90
Return a result in Page.getFrameTree
francisbouvier 1620138
Return sessionId in Emulation.setFocusEmulationEnabled
francisbouvier e4ae2df
Add some optional params in methods
francisbouvier 43a558f
Make getParams return nullable
francisbouvier 490eb40
Add method cdp function
francisbouvier 69f5bb9
Add sessionId in Runime.runIfWaitingForDebugger response
francisbouvier 06f161c
Add Target.getTargetInfo
francisbouvier 0506a7b
Add Browser.createBrowserContext
francisbouvier 9974b56
Add Target.createTarget
francisbouvier f02de77
Add getContent
francisbouvier 508741c
Add Browser.getWindowForTarget
francisbouvier fc1b3d5
Contextual frameTree
francisbouvier c7ba567
Handle non-empty void params in getContent
francisbouvier aec7455
Add Emulation.setDeviceMetricsOverride
francisbouvier c54b50e
Add Browser.setWindowBounds
francisbouvier 9ce574a
Add Page.createIsolatedWorld
francisbouvier 4f0b071
Fix getContent algo
francisbouvier 1a1cd03
Add dummy Page.navigate
francisbouvier ed38705
Basic version using Browser
francisbouvier 9e13ffb
Add sendEvent utility function
francisbouvier 1b1b7cd
Add page_life_cycle_events in CDP state
francisbouvier 4a31dd8
Let Page.navigate do actually navigation
francisbouvier 7a03562
Typo fix Page.LifecycleEvent
francisbouvier 28d5c68
Use sendEvent in Runtime.executionContextCreated and expose it
francisbouvier 3396c70
Send Runtime.executionContextCreated events in Page.navigate
francisbouvier 96906df
Implement own protocol to handle msg size
francisbouvier ba12945
Move read input from Cmd callback to allow unit tests
francisbouvier bafdca3
MsgBuffer to handle both combined and multipart read
francisbouvier c57e50c
Handle Runtime.evaluate (no-op)
francisbouvier bfb9db2
Basic Runtime.evaluate run
francisbouvier 3ad19df
Handle CDP msg with order <id, method> and <method, id>
francisbouvier dc1456f
Handle CDP messages with different order
francisbouvier fa82160
Add target.getBrowserContexts
francisbouvier ad8c9fa
Add target.setDiscoverTargets
francisbouvier 1929eed
Add contextID in state
francisbouvier 7d67d13
Add network.setCacheDisabled
francisbouvier cecc03e
Add fetch.disable
francisbouvier 08c11ac
Add performance.enable
francisbouvier 9120b9c
Add emulation.setTouchEmulationEnabled
francisbouvier 7abb727
Fix call to Runtime.executionContextCreated in Page.navigate
francisbouvier 4099696
Add Runtime.addBinding
francisbouvier 4d756b5
Add a dumpFile utility function
francisbouvier 9319e4a
Handle Runtime.callFunctionOn
francisbouvier 5eae158
Add some optional fields in Runtime.evaluate
francisbouvier 0f8b47b
Move MsgBuffer in it's own file for unit test purpose
francisbouvier aca64ee
Uniformize calling name conventions
francisbouvier ea410c8
Fix changes in Zig 0.12 std lib
francisbouvier 4140903
Adapt to refacto in js_exec from zig-js-runtime
francisbouvier 14a3a66
Fix response of runtime.Evaluate
francisbouvier 94d2d28
Redirect Runtime domain to JS engine Inspector
francisbouvier 1675f69
Add Target.closeTarget
francisbouvier 8bdd2a1
Add Target.disposeBrowserContext
francisbouvier 2f3a581
Add TODOs and comments
francisbouvier 5ab1d2a
Add License in new cdp files
francisbouvier 9c913b2
Move loop outside Browser
francisbouvier 4c225e5
server: let the caller of sendSync free the string
francisbouvier 76a9034
server: newSession on disposeBrowserContext
francisbouvier 49adb61
server: handle close and re-open connection
francisbouvier c35c09d
server: timeout mechanism
francisbouvier b0ff325
server: move to TCP conn
francisbouvier c8a91d4
server: merge Cmd and Accept in Ctx
francisbouvier cea38a1
server: rename buf in read_buf
francisbouvier a2f65eb
server: simplify onInspector methods
francisbouvier f9b0977
Simplify browser session.setInspector
francisbouvier 15414f5
server: remove unused sendLater
francisbouvier ff0bbc3
server: simplify Send I/O
francisbouvier 9400dd7
Add cli options for server (host, port, timeout)
francisbouvier c564702
server: formatting
francisbouvier 2bc58be
server: rename public -> jsruntime
francisbouvier bf56345
msg: comments typos
francisbouvier 0d89b98
cdp: ensure token is a string when needed in parser
francisbouvier eaf5c6f
cdp: ensure method action is present
francisbouvier fa4920b
browser: rename setInspector -> initInspector
francisbouvier 28593d9
browser: panic if callInspector without Inspector
francisbouvier e53b9d9
browser: add comment for auxData param in page.navigate
francisbouvier 17c6418
msg: return error if input does not have "size:"
francisbouvier 7ad03fb
cdp: fix a comment on page.navigate
francisbouvier 4b495f2
cdp: add comment on hard coded ID for page.createIsolatedWorld
francisbouvier fd6c25d
msg: improve comments on reallocation
francisbouvier ec68059
msg: set a hard limit max size
francisbouvier cbf6348
server: panic if sendInspector without an inspector
francisbouvier efca715
browser: put back VM is an arg for browser init
francisbouvier ea9af21
Remove heap allocation for Session
francisbouvier 7750956
msg: Add a more complex test case with 2 multipart messages combined
francisbouvier 84c49fb
cdp: ensure there is an ID on each request
francisbouvier 8e05f09
server, cdp: improve logging
francisbouvier 7bc7da5
browser: back on createPage returning a Page (pointer)
francisbouvier 2311765
Remove some dead code
francisbouvier 462485b
Update zig-v8 and zig-js-runtime deps
francisbouvier b0634cd
Adapt wpt and shell to zig-js-runtime changes
francisbouvier 7f08d08
Update zig-v8 again
francisbouvier e450072
ci: add zig v8 version into the cache key
krichprollsch 8d83dfa
ci: force ubuntu version (24.04)
francisbouvier File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.