{"action":"created","issue":{"url":"https://api.github.com/repos/greasemonkey/greasemonkey/issues/2206","labels_url":"https://api.github.com/repos/greasemonkey/greasemonkey/issues/2206/labels{/name}","comments_url":"https://api.github.com/repos/greasemonkey/greasemonkey/issues/2206/comments","events_url":"https://api.github.com/repos/greasemonkey/greasemonkey/issues/2206/events","html_url":"https://github.com/greasemonkey/greasemonkey/issues/2206","id":91283772,"number":2206,"title":"GM_xmlhttpRequest does not work on pages with url \"Data:text/html,<html><body>...\"","user":{"login":"User4martin","id":7429624,"avatar_url":"https://avatars.githubusercontent.com/u/7429624?v=3","gravatar_id":"","url":"https://api.github.com/users/User4martin","html_url":"https://github.com/User4martin","followers_url":"https://api.github.com/users/User4martin/followers","following_url":"https://api.github.com/users/User4martin/following{/other_user}","gists_url":"https://api.github.com/users/User4martin/gists{/gist_id}","starred_url":"https://api.github.com/users/User4martin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/User4martin/subscriptions","organizations_url":"https://api.github.com/users/User4martin/orgs","repos_url":"https://api.github.com/users/User4martin/repos","events_url":"https://api.github.com/users/User4martin/events{/privacy}","received_events_url":"https://api.github.com/users/User4martin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-06-26T15:44:21Z","updated_at":"2015-06-27T15:34:56Z","closed_at":null,"body":"If a page was generated using an url like\r\ndata:text/html,<html><body>Foo</body></html>\r\n\r\nGM_xmlhttpRequest will give an error that it is not defined"},"comment":{"url":"https://api.github.com/repos/greasemonkey/greasemonkey/issues/comments/116089566","html_url":"https://github.com/greasemonkey/greasemonkey/issues/2206#issuecomment-116089566","issue_url":"https://api.github.com/repos/greasemonkey/greasemonkey/issues/2206","id":116089566,"user":{"login":"User4martin","id":7429624,"avatar_url":"https://avatars.githubusercontent.com/u/7429624?v=3","gravatar_id":"","url":"https://api.github.com/users/User4martin","html_url":"https://github.com/User4martin","followers_url":"https://api.github.com/users/User4martin/followers","following_url":"https://api.github.com/users/User4martin/following{/other_user}","gists_url":"https://api.github.com/users/User4martin/gists{/gist_id}","starred_url":"https://api.github.com/users/User4martin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/User4martin/subscriptions","organizations_url":"https://api.github.com/users/User4martin/orgs","repos_url":"https://api.github.com/users/User4martin/repos","events_url":"https://api.github.com/users/User4martin/events{/privacy}","received_events_url":"https://api.github.com/users/User4martin/received_events","type":"User","site_admin":false},"created_at":"2015-06-27T15:34:56Z","updated_at":"2015-06-27T15:34:56Z","body":"No, I have \r\n  data:text/html,Foo\r\nin the url bar of my Firefox\r\n\r\n```javascript\r\n  GM_xmlhttpRequest({\r\n    method: \"GET\",\r\n    url: new_dest,\r\n    onload: function(response) {\r\n      alert(response.responseText);\r\n    }\r\n  }) ;\r\n```\r\n\"new_dest\" contains a valid url (http/://somedomain.com/page), I checked with console.log before.\r\n\r\nFurther\r\n```javascript\r\n// ==UserScript==\r\n// @name        adf_vid\r\n// @namespace   mfr\r\n// @version     2\r\n// @include http://mydomain.com/*\r\n// @include data:text/html*\r\n// @grant GM_xmlhttpRequest\r\n// ==/UserScript==\r\n\r\nconsole.log(GM_xmlhttpRequest);\r\n```\r\n\r\nWhen I go to mydomain.com then it logs that this is a function.\r\n\r\nWhen I create the data:text/html,Foo then it logs an error. I believe that error happens before my console.log guess to log, because the argument to console.log is invalid.\r\n\r\n--------------\r\nI have a page, that contains a link with the data: url. I want to run my user script when I click this link, and act on the content of the data.\r\nSo for I only triggered it from the editor, by using \"reload and run\" from the context menu.\r\n"}}