Replace Firefogg callbacks with OOJS events

Cleaner, yay!

Bug: T77124
Change-Id: I7f8bf7f628862f7462e2599bf9e70d78bd97441e
Merge "Replace Firefogg callbacks with OOJS events"