Provide API to change resource/url for BrowserWindowOpener (#12733).

Change-Id: I48d3bc36ea5283225524a75bcbc941534e4a419a