This is really wrong. mozbrowser API is 'mozbrowser iframe' specific. You would get all resize events from other apps.