Use httpReferrer and userAgent new names in webview.

This commit is contained in:
Haojian Wu 2015-06-09 10:44:06 +08:00
parent 488801e244
commit f1a8c5a1ca
2 changed files with 4 additions and 4 deletions

View file

@ -171,10 +171,10 @@ class SrcAttribute extends WebViewAttribute
# Navigate to |this.src|.
opts = {}
httpreferrer = @webViewImpl.attributes[webViewConstants.ATTRIBUTE_HTTPREFERRER].getValue()
if httpreferrer then opts.httpreferrer = httpreferrer
if httpreferrer then opts.httpReferrer = httpreferrer
useragent = @webViewImpl.attributes[webViewConstants.ATTRIBUTE_USERAGENT].getValue()
if useragent then opts.useragent = useragent
if useragent then opts.userAgent = useragent
guestContents = remote.getGuestWebContents(@webViewImpl.guestInstanceId)
guestContents.loadUrl @getValue(), opts