chrismessina / greasekit

Automatically exported from code.google.com/p/greasekit
MIT License
0 stars 1 forks source link

JSObjectKeys broken #16

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Use headers in the xmlhttprequest
2. make xmlhttprequest to a server

What is the expected output? 
Request should work as expected

What do you see instead?
onload was never called.

What version of the product are you using? On what operating system?
OS X 10.4.11
Safari 3.0.4
Greasekit 1.3

Fix:
JSObjectKeys() in Utils.m
change first line to:
    WebScriptObject* func = [obj evaluateWebScript: @"this.__keysFromHash = function(hash) {var 
result=[]; for(var key in hash) result.push(key); return result;}"];

Original issue reported on code.google.com by sei...@gmail.com on 20 Dec 2007 at 8:38

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Thank you for reporting.

Original comment by kato.kaz...@gmail.com on 25 Dec 2007 at 1:56