Skip to content

Commit

Permalink
refactor(firefox): introduce FrameManager (#3964)
Browse files Browse the repository at this point in the history
Split out frame management from Page into FrameManager.
FrameManager will keep track of page's frames and DOMWorlds.
  • Loading branch information
aslushnikov committed Feb 9, 2019
1 parent 2a7ed1a commit c64e02e
Show file tree
Hide file tree
Showing 5 changed files with 783 additions and 734 deletions.
7 changes: 7 additions & 0 deletions experimental/puppeteer-firefox/lib/Events.js
Expand Up @@ -24,6 +24,13 @@ const Events = {
Connection: {
Disconnected: Symbol('Events.Connection.Disconnected'),
},

FrameManager: {
Load: Symbol('Events.FrameManager.Load'),
DOMContentLoaded: Symbol('Events.FrameManager.DOMContentLoaded'),
FrameAttached: Symbol('Events.FrameManager.FrameAttached'),
FrameDetached: Symbol('Events.FrameManager.FrameDetached'),
}
};

module.exports = {Events};

0 comments on commit c64e02e

Please sign in to comment.