Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Greasemonkey 3.0: abort() method throwing error with GM_xmlhttpRequest #2154

Closed
janekptacijarabaci opened this issue Apr 30, 2015 · 1 comment
Milestone

Comments

@janekptacijarabaci
Copy link
Contributor

Source: https://groups.google.com/forum/#!topic/greasemonkey-users/xEFODGFI85M
See also #2033 (comment) ( exposedProps )

Under Greasemonkey 3.0/3.1, the following error is thrown when using abort() with GM_xmlhttpRequest:

Exposing privileged or cross-origin callable is prohibited

Under Greasemonkey 2.3, it completes normally, and the 'abort OK' message is displayed. Under Greasemonkey 3.0/3.1, it won't.

Here is a sample script that shows the problem:

// ==UserScript==
// @name        Abort Test
// @namespace   http://gmscripts.locusprime.net
// @include     http*://*
// @grant       GM_log
// @grant       GM_xmlhttpRequest
// ==/UserScript==

var req = GM_xmlhttpRequest({
  method: "GET",
  url: "https://www.github.com/",
  onload: function (result) {
    GM_log(result.responseText);
  }
});

req.abort();
GM_log("abort OK");
@arantius
Copy link
Collaborator

arantius commented May 8, 2015

Fix above confirmed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants