Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Restore enablePrivilege hack for non-browser-chrome consumers in mock…

…Objects.js
  • Loading branch information...
commit 90e0beaf126741577fcb51ffd76b83066c1fac0d 1 parent 1dbe9d6
Dão Gottwald authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  toolkit/content/tests/browser/common/mockObjects.js
2  toolkit/content/tests/browser/common/mockObjects.js
View
@@ -65,6 +65,7 @@ MockObjectRegisterer.prototype = {
* to ensure that unregister() is called.
*/
register: function MOR_register() {
+ netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
if (this._originalCID)
throw new Exception("Invalid object state when calling register()");
@@ -96,6 +97,7 @@ MockObjectRegisterer.prototype = {
* Restores the original factory.
*/
unregister: function MOR_unregister() {
+ netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
if (!this._originalCID)
throw new Exception("Invalid object state when calling unregister()");
Please sign in to comment.
Something went wrong with that request. Please try again.