I have to say it that those codes are written by me and sent to Punam. The reason I use that is to keep the whole test within video app. The mock_window_mozactivity can intercept the activity before system app handles it. It is fine to use switch to system app and check the existence of camera iframe. But we need to make sure that camera iframe is activity iframe.