projects
/
gssweb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
83dfa7c
)
Use a lookup table of implemented GSS method names for easier checking logic
author
Mark Donnelly
<mark@painless-security.com>
Tue, 21 Oct 2014 02:38:51 +0000
(22:38 -0400)
committer
Mark Donnelly
<mark@painless-security.com>
Tue, 21 Oct 2014 02:38:51 +0000
(22:38 -0400)
chrome/app/navigator.gss.js
patch
|
blob
|
history
diff --git
a/chrome/app/navigator.gss.js
b/chrome/app/navigator.gss.js
index
f5f5815
..
268fa99
100644
(file)
--- a/
chrome/app/navigator.gss.js
+++ b/
chrome/app/navigator.gss.js
@@
-10,6
+10,7
@@
var GSSEap = (function ()
{
// Public attributes
this.version = "0.0.1";
+ this.implemented_methods = ["gss_import_name"];
this.callbacks = {};
this.methods = {};
this.errors = {};
@@
-44,7
+45,7
@@
var GSSEap = (function ()
*/
method = event.data.method;
if (
- (
method != "gss_import_name"
) ||
+ (
-1 == this.implemented_methods.indexOf(method)
) ||
("undefined" == typeof (event.data.return_values)) ||
("undefined" == typeof (event.data.cookies)))
{