diff options
author | eroman@chromium.org <eroman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-31 22:10:11 +0000 |
---|---|---|
committer | eroman@chromium.org <eroman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-31 22:10:11 +0000 |
commit | a5e9f2cddd474bf0ea266e998251431493471325 (patch) | |
tree | ce0a42af022ae058372065a2887962a9eca73474 /net/data | |
parent | f31b7a05f88fbddd14428827b351fe736133e26e (diff) | |
download | chromium_src-a5e9f2cddd474bf0ea266e998251431493471325.zip chromium_src-a5e9f2cddd474bf0ea266e998251431493471325.tar.gz chromium_src-a5e9f2cddd474bf0ea266e998251431493471325.tar.bz2 |
Fix a crash when calling a PAC binding from the global scope.
BUG=40026
TEST=ProxyResolverV8Test.BindingCalledDuringInitialization
Review URL: http://codereview.chromium.org/1520009
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43268 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/data')
-rw-r--r-- | net/data/proxy_resolver_v8_unittest/binding_from_global.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/net/data/proxy_resolver_v8_unittest/binding_from_global.js b/net/data/proxy_resolver_v8_unittest/binding_from_global.js new file mode 100644 index 0000000..91bbcf2 --- /dev/null +++ b/net/data/proxy_resolver_v8_unittest/binding_from_global.js @@ -0,0 +1,8 @@ +// Calls a bindings outside of FindProxyForURL(). This causes the code to +// get exercised during initialization. + +var x = myIpAddress(); + +function FindProxyForURL(url, host) { + return "PROXY " + x + ":80"; +} |