{"action":"created","issue":{"url":"https://api.github.com/repos/atom/electron/issues/3176","labels_url":"https://api.github.com/repos/atom/electron/issues/3176/labels{/name}","comments_url":"https://api.github.com/repos/atom/electron/issues/3176/comments","events_url":"https://api.github.com/repos/atom/electron/issues/3176/events","html_url":"https://github.com/atom/electron/issues/3176","id":112791605,"number":3176,"title":"Specify a PAC file URL to session.setProxy(config, callback)","user":{"login":"romaincointepas","id":797899,"avatar_url":"https://avatars.githubusercontent.com/u/797899?v=3","gravatar_id":"","url":"https://api.github.com/users/romaincointepas","html_url":"https://github.com/romaincointepas","followers_url":"https://api.github.com/users/romaincointepas/followers","following_url":"https://api.github.com/users/romaincointepas/following{/other_user}","gists_url":"https://api.github.com/users/romaincointepas/gists{/gist_id}","starred_url":"https://api.github.com/users/romaincointepas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/romaincointepas/subscriptions","organizations_url":"https://api.github.com/users/romaincointepas/orgs","repos_url":"https://api.github.com/users/romaincointepas/repos","events_url":"https://api.github.com/users/romaincointepas/events{/privacy}","received_events_url":"https://api.github.com/users/romaincointepas/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/atom/electron/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-10-22T12:24:19Z","updated_at":"2015-10-24T18:26:11Z","closed_at":"2015-10-23T02:36:38Z","body":"https://github.com/atom/electron/blob/master/docs/api/session.md#sessionsetproxyconfig-callback\r\nSame as the switch `--proxy-pac-url=http://www.example.com/proxy.pac` but for a session.\r\n\r\nI also have some questions regarding the proxy behavior (I couldn't find clear documentation on it).\r\n\r\nQuestion 1: Can this setProxy be used multiple times after the session has \"started\"?\r\n- Load http://www.google.com with a http://www.example.com/proxy1.pac.\r\n- call session.setProxy and specify a new http://www.example.com/proxy2.pac\r\n- Load http://www.google.com, this time it should use http://www.example.com/proxy2.pac\r\n\r\nQuestion 2: Could a proxy (config or PAC URL) be specified for a webview and not the entire Browser window?"},"comment":{"url":"https://api.github.com/repos/atom/electron/issues/comments/150839569","html_url":"https://github.com/atom/electron/issues/3176#issuecomment-150839569","issue_url":"https://api.github.com/repos/atom/electron/issues/3176","id":150839569,"user":{"login":"deepak1556","id":964386,"avatar_url":"https://avatars.githubusercontent.com/u/964386?v=3","gravatar_id":"","url":"https://api.github.com/users/deepak1556","html_url":"https://github.com/deepak1556","followers_url":"https://api.github.com/users/deepak1556/followers","following_url":"https://api.github.com/users/deepak1556/following{/other_user}","gists_url":"https://api.github.com/users/deepak1556/gists{/gist_id}","starred_url":"https://api.github.com/users/deepak1556/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deepak1556/subscriptions","organizations_url":"https://api.github.com/users/deepak1556/orgs","repos_url":"https://api.github.com/users/deepak1556/repos","events_url":"https://api.github.com/users/deepak1556/events{/privacy}","received_events_url":"https://api.github.com/users/deepak1556/received_events","type":"User","site_admin":false},"created_at":"2015-10-24T18:26:11Z","updated_at":"2015-10-24T18:26:11Z","body":"hmm expose `webview.setProxy` would be a better option.\r\n\r\n/cc @zcbenz "}}