-
Notifications
You must be signed in to change notification settings - Fork 9.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(firefox): introduce /lib/Events (#3949)
Declare all events in `/lib/Events.js`, similarly to how we do it in Puppeteer.
- Loading branch information
1 parent
6b18e8c
commit 72c0047
Showing
4 changed files
with
51 additions
and
50 deletions.
There are no files selected for viewing
This file contains 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 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
const Events = { | ||
Page: { | ||
Close: 'close', | ||
Console: 'console', | ||
Dialog: 'dialog', | ||
DOMContentLoaded: 'domcontentloaded', | ||
FrameAttached: 'frameattached', | ||
FrameDetached: 'framedetached', | ||
FrameNavigated: 'framenavigated', | ||
Load: 'load', | ||
PageError: 'pageerror', | ||
}, | ||
Browser: { | ||
TargetCreated: 'targetcreated', | ||
TargetChanged: 'targetchanged', | ||
TargetDestroyed: 'targetdestroyed', | ||
}, | ||
BrowserContext: { | ||
TargetCreated: 'targetcreated', | ||
TargetChanged: 'targetchanged', | ||
TargetDestroyed: 'targetdestroyed', | ||
}, | ||
|
||
Connection: { | ||
Disconnected: Symbol('Events.Connection.Disconnected'), | ||
}, | ||
}; | ||
|
||
module.exports = {Events}; |
This file contains 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