Cherry pick r91152 DOMWindow::open performs a security check on a wrong window DO NOT MERGE

Bug: 17050386

Change-Id: I17ca28b2dfe3327831dc283730dd1583d12baac2
Cherry pick r91611 Perform the JavaScript navigation check on a complete URL

Bug: 17050386

Change-Id: I613809864472007989938abde317b0a112c0a81c