{"action":"opened","number":13032,"pull_request":{"url":"https://api.github.com/repos/electron/electron/pulls/13032","id":189529154,"html_url":"https://github.com/electron/electron/pull/13032","diff_url":"https://github.com/electron/electron/pull/13032.diff","patch_url":"https://github.com/electron/electron/pull/13032.patch","issue_url":"https://api.github.com/repos/electron/electron/issues/13032","number":13032,"state":"open","locked":false,"title":"add native function to create preload script","user":{"login":"PalmerAL","id":10314059,"avatar_url":"https://avatars3.githubusercontent.com/u/10314059?v=4","gravatar_id":"","url":"https://api.github.com/users/PalmerAL","html_url":"https://github.com/PalmerAL","followers_url":"https://api.github.com/users/PalmerAL/followers","following_url":"https://api.github.com/users/PalmerAL/following{/other_user}","gists_url":"https://api.github.com/users/PalmerAL/gists{/gist_id}","starred_url":"https://api.github.com/users/PalmerAL/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PalmerAL/subscriptions","organizations_url":"https://api.github.com/users/PalmerAL/orgs","repos_url":"https://api.github.com/users/PalmerAL/repos","events_url":"https://api.github.com/users/PalmerAL/events{/privacy}","received_events_url":"https://api.github.com/users/PalmerAL/received_events","type":"User","site_admin":false},"body":"<!--\r\nThank you for your Pull Request. Please provide a description above and review\r\nthe requirements below.\r\n\r\nBug fixes and new features should include tests and possibly benchmarks.\r\n\r\nContributors guide: https://github.com/electron/electron/blob/master/CONTRIBUTING.md\r\n-->\r\n\r\nFixes #9276.\r\n\r\nIt looks like ```file:///``` and ```data:``` URL's are always able to use eval() regardless of what the CSP is, so I'm not really sure how to add a test for this. I guess a custom protocol might work?","created_at":"2018-05-22T01:56:49Z","updated_at":"2018-05-22T01:56:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/electron/electron/pulls/13032/commits","review_comments_url":"https://api.github.com/repos/electron/electron/pulls/13032/comments","review_comment_url":"https://api.github.com/repos/electron/electron/pulls/comments{/number}","comments_url":"https://api.github.com/repos/electron/electron/issues/13032/comments","statuses_url":"https://api.github.com/repos/electron/electron/statuses/b3eaa8f17f02dbfbf0c371a01630de87859d1e73","head":{"label":"PalmerAL:master","ref":"master","sha":"b3eaa8f17f02dbfbf0c371a01630de87859d1e73","user":{"login":"PalmerAL","id":10314059,"avatar_url":"https://avatars3.githubusercontent.com/u/10314059?v=4","gravatar_id":"","url":"https://api.github.com/users/PalmerAL","html_url":"https://github.com/PalmerAL","followers_url":"https://api.github.com/users/PalmerAL/followers","following_url":"https://api.github.com/users/PalmerAL/following{/other_user}","gists_url":"https://api.github.com/users/PalmerAL/gists{/gist_id}","starred_url":"https://api.github.com/users/PalmerAL/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PalmerAL/subscriptions","organizations_url":"https://api.github.com/users/PalmerAL/orgs","repos_url":"https://api.github.com/users/PalmerAL/repos","events_url":"https://api.github.com/users/PalmerAL/events{/privacy}","received_events_url":"https://api.github.com/users/PalmerAL/received_events","type":"User","site_admin":false},"repo":{"id":134334405,"name":"electron","full_name":"PalmerAL/electron","owner":{"login":"PalmerAL","id":10314059,"avatar_url":"https://avatars3.githubusercontent.com/u/10314059?v=4","gravatar_id":"","url":"https://api.github.com/users/PalmerAL","html_url":"https://github.com/PalmerAL","followers_url":"https://api.github.com/users/PalmerAL/followers","following_url":"https://api.github.com/users/PalmerAL/following{/other_user}","gists_url":"https://api.github.com/users/PalmerAL/gists{/gist_id}","starred_url":"https://api.github.com/users/PalmerAL/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PalmerAL/subscriptions","organizations_url":"https://api.github.com/users/PalmerAL/orgs","repos_url":"https://api.github.com/users/PalmerAL/repos","events_url":"https://api.github.com/users/PalmerAL/events{/privacy}","received_events_url":"https://api.github.com/users/PalmerAL/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/PalmerAL/electron","description":"Build cross platform desktop apps with JavaScript, HTML, and CSS","fork":true,"url":"https://api.github.com/repos/PalmerAL/electron","forks_url":"https://api.github.com/repos/PalmerAL/electron/forks","keys_url":"https://api.github.com/repos/PalmerAL/electron/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PalmerAL/electron/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PalmerAL/electron/teams","hooks_url":"https://api.github.com/repos/PalmerAL/electron/hooks","issue_events_url":"https://api.github.com/repos/PalmerAL/electron/issues/events{/number}","events_url":"https://api.github.com/repos/PalmerAL/electron/events","assignees_url":"https://api.github.com/repos/PalmerAL/electron/assignees{/user}","branches_url":"https://api.github.com/repos/PalmerAL/electron/branches{/branch}","tags_url":"https://api.github.com/repos/PalmerAL/electron/tags","blobs_url":"https://api.github.com/repos/PalmerAL/electron/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PalmerAL/electron/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PalmerAL/electron/git/refs{/sha}","trees_url":"https://api.github.com/repos/PalmerAL/electron/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PalmerAL/electron/statuses/{sha}","languages_url":"https://api.github.com/repos/PalmerAL/electron/languages","stargazers_url":"https://api.github.com/repos/PalmerAL/electron/stargazers","contributors_url":"https://api.github.com/repos/PalmerAL/electron/contributors","subscribers_url":"https://api.github.com/repos/PalmerAL/electron/subscribers","subscription_url":"https://api.github.com/repos/PalmerAL/electron/subscription","commits_url":"https://api.github.com/repos/PalmerAL/electron/commits{/sha}","git_commits_url":"https://api.github.com/repos/PalmerAL/electron/git/commits{/sha}","comments_url":"https://api.github.com/repos/PalmerAL/electron/comments{/number}","issue_comment_url":"https://api.github.com/repos/PalmerAL/electron/issues/comments{/number}","contents_url":"https://api.github.com/repos/PalmerAL/electron/contents/{+path}","compare_url":"https://api.github.com/repos/PalmerAL/electron/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PalmerAL/electron/merges","archive_url":"https://api.github.com/repos/PalmerAL/electron/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PalmerAL/electron/downloads","issues_url":"https://api.github.com/repos/PalmerAL/electron/issues{/number}","pulls_url":"https://api.github.com/repos/PalmerAL/electron/pulls{/number}","milestones_url":"https://api.github.com/repos/PalmerAL/electron/milestones{/number}","notifications_url":"https://api.github.com/repos/PalmerAL/electron/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PalmerAL/electron/labels{/name}","releases_url":"https://api.github.com/repos/PalmerAL/electron/releases{/id}","deployments_url":"https://api.github.com/repos/PalmerAL/electron/deployments","created_at":"2018-05-21T23:09:48Z","updated_at":"2018-05-22T01:45:26Z","pushed_at":"2018-05-22T01:45:14Z","git_url":"git://github.com/PalmerAL/electron.git","ssh_url":"git@github.com:PalmerAL/electron.git","clone_url":"https://github.com/PalmerAL/electron.git","svn_url":"https://github.com/PalmerAL/electron","homepage":"https://electronjs.org","size":38136,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"electron:master","ref":"master","sha":"ee57c95aa6c6b55d2cf5d32766c98fceb64c6bbf","user":{"login":"electron","id":13409222,"avatar_url":"https://avatars1.githubusercontent.com/u/13409222?v=4","gravatar_id":"","url":"https://api.github.com/users/electron","html_url":"https://github.com/electron","followers_url":"https://api.github.com/users/electron/followers","following_url":"https://api.github.com/users/electron/following{/other_user}","gists_url":"https://api.github.com/users/electron/gists{/gist_id}","starred_url":"https://api.github.com/users/electron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/electron/subscriptions","organizations_url":"https://api.github.com/users/electron/orgs","repos_url":"https://api.github.com/users/electron/repos","events_url":"https://api.github.com/users/electron/events{/privacy}","received_events_url":"https://api.github.com/users/electron/received_events","type":"Organization","site_admin":false},"repo":{"id":9384267,"name":"electron","full_name":"electron/electron","owner":{"login":"electron","id":13409222,"avatar_url":"https://avatars1.githubusercontent.com/u/13409222?v=4","gravatar_id":"","url":"https://api.github.com/users/electron","html_url":"https://github.com/electron","followers_url":"https://api.github.com/users/electron/followers","following_url":"https://api.github.com/users/electron/following{/other_user}","gists_url":"https://api.github.com/users/electron/gists{/gist_id}","starred_url":"https://api.github.com/users/electron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/electron/subscriptions","organizations_url":"https://api.github.com/users/electron/orgs","repos_url":"https://api.github.com/users/electron/repos","events_url":"https://api.github.com/users/electron/events{/privacy}","received_events_url":"https://api.github.com/users/electron/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/electron/electron","description":"Build cross platform desktop apps with JavaScript, HTML, and CSS","fork":false,"url":"https://api.github.com/repos/electron/electron","forks_url":"https://api.github.com/repos/electron/electron/forks","keys_url":"https://api.github.com/repos/electron/electron/keys{/key_id}","collaborators_url":"https://api.github.com/repos/electron/electron/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/electron/electron/teams","hooks_url":"https://api.github.com/repos/electron/electron/hooks","issue_events_url":"https://api.github.com/repos/electron/electron/issues/events{/number}","events_url":"https://api.github.com/repos/electron/electron/events","assignees_url":"https://api.github.com/repos/electron/electron/assignees{/user}","branches_url":"https://api.github.com/repos/electron/electron/branches{/branch}","tags_url":"https://api.github.com/repos/electron/electron/tags","blobs_url":"https://api.github.com/repos/electron/electron/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/electron/electron/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/electron/electron/git/refs{/sha}","trees_url":"https://api.github.com/repos/electron/electron/git/trees{/sha}","statuses_url":"https://api.github.com/repos/electron/electron/statuses/{sha}","languages_url":"https://api.github.com/repos/electron/electron/languages","stargazers_url":"https://api.github.com/repos/electron/electron/stargazers","contributors_url":"https://api.github.com/repos/electron/electron/contributors","subscribers_url":"https://api.github.com/repos/electron/electron/subscribers","subscription_url":"https://api.github.com/repos/electron/electron/subscription","commits_url":"https://api.github.com/repos/electron/electron/commits{/sha}","git_commits_url":"https://api.github.com/repos/electron/electron/git/commits{/sha}","comments_url":"https://api.github.com/repos/electron/electron/comments{/number}","issue_comment_url":"https://api.github.com/repos/electron/electron/issues/comments{/number}","contents_url":"https://api.github.com/repos/electron/electron/contents/{+path}","compare_url":"https://api.github.com/repos/electron/electron/compare/{base}...{head}","merges_url":"https://api.github.com/repos/electron/electron/merges","archive_url":"https://api.github.com/repos/electron/electron/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/electron/electron/downloads","issues_url":"https://api.github.com/repos/electron/electron/issues{/number}","pulls_url":"https://api.github.com/repos/electron/electron/pulls{/number}","milestones_url":"https://api.github.com/repos/electron/electron/milestones{/number}","notifications_url":"https://api.github.com/repos/electron/electron/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/electron/electron/labels{/name}","releases_url":"https://api.github.com/repos/electron/electron/releases{/id}","deployments_url":"https://api.github.com/repos/electron/electron/deployments","created_at":"2013-04-12T01:47:36Z","updated_at":"2018-05-22T01:49:30Z","pushed_at":"2018-05-21T23:22:57Z","git_url":"git://github.com/electron/electron.git","ssh_url":"git@github.com:electron/electron.git","clone_url":"https://github.com/electron/electron.git","svn_url":"https://github.com/electron/electron","homepage":"https://electronjs.org","size":38136,"stargazers_count":60326,"watchers_count":60326,"language":"C++","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":7890,"mirror_url":null,"archived":false,"open_issues_count":1037,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":7890,"open_issues":1037,"watchers":60326,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/electron/electron/pulls/13032"},"html":{"href":"https://github.com/electron/electron/pull/13032"},"issue":{"href":"https://api.github.com/repos/electron/electron/issues/13032"},"comments":{"href":"https://api.github.com/repos/electron/electron/issues/13032/comments"},"review_comments":{"href":"https://api.github.com/repos/electron/electron/pulls/13032/comments"},"review_comment":{"href":"https://api.github.com/repos/electron/electron/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/electron/electron/pulls/13032/commits"},"statuses":{"href":"https://api.github.com/repos/electron/electron/statuses/b3eaa8f17f02dbfbf0c371a01630de87859d1e73"}},"author_association":"NONE","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":10,"deletions":4,"changed_files":2}}
{"actor":{"display_login":"PalmerAL"}}