Skip to content

Commit 69e8bc6

Browse files
authored
crash bug due to missing ENUM
When listening to events, if a frame is navigated by user clicking on a simple link, any attacked event watcher workers will crash. Tested on latest edge and chrome (chromium 113). Probably because the CDP has newer events that were not hardcoded in this ENUM. There may be more, I only added the one that was causing crash!
1 parent 5463a5f commit 69e8bc6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cdp/page.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -617,6 +617,7 @@ class ClientNavigationReason(enum.Enum):
617617
META_TAG_REFRESH = "metaTagRefresh"
618618
PAGE_BLOCK_INTERSTITIAL = "pageBlockInterstitial"
619619
RELOAD = "reload"
620+
ANCHOR_CLICK = "anchorClick"
620621

621622
def to_json(self) -> str:
622623
return self.value

0 commit comments

Comments
 (0)