Migrated browser-related code.