Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(878)

Unified Diff: tests/com/google/caja/plugin/test-scan-core.js

Issue 214110043: Repair Safari Throw-Thaw Vulnerability (Closed) Base URL: http://google-caja.googlecode.com/svn/trunk/
Patch Set: Repair Safari Throw-Thaw Vulnerability Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/com/google/caja/ses/whitelist.js ('k') | tests/com/google/caja/plugin/test-scan-guest.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/com/google/caja/plugin/test-scan-core.js
===================================================================
--- tests/com/google/caja/plugin/test-scan-core.js (revision 5716)
+++ tests/com/google/caja/plugin/test-scan-core.js (working copy)
@@ -240,7 +240,11 @@
}
return instances.get(ctor);
}
- obtainInstance.define = instances.set.bind(instances);
+ obtainInstance.define = function(ctor, instance) {
+ if (ctor !== undefined) { // allow not-implemented-in-this-browser
+ instances.set(ctor, instance);
+ }
+ };
return obtainInstance;
}
« no previous file with comments | « src/com/google/caja/ses/whitelist.js ('k') | tests/com/google/caja/plugin/test-scan-guest.js » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b