Override the user agent value of child window using the the one of its parent window.

Fix #597.