mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 915202 - Remove a hack enabling DOMException in xpcshell. r=khuey
This commit is contained in:
parent
b12d399e5b
commit
307aecf368
@ -6,9 +6,6 @@ const C_i = Components.interfaces;
|
||||
|
||||
const UNORDERED_TYPE = C_i.nsIDOMXPathResult.ANY_UNORDERED_NODE_TYPE;
|
||||
|
||||
// Instantiate nsIDOMScriptObjectFactory so that DOMException is usable in xpcshell
|
||||
Components.classesByID["{9eb760f0-4380-11d2-b328-00805f8a3859}"].getService(C_i.nsISupports);
|
||||
|
||||
/**
|
||||
* Determine if the data node has only ignorable white-space.
|
||||
*
|
||||
|
@ -5,9 +5,6 @@
|
||||
|
||||
const { 'classes': Cc, 'interfaces': Ci } = Components;
|
||||
|
||||
// Instantiate nsIDOMScriptObjectFactory so that DOMException is usable in xpcshell
|
||||
Components.classesByID["{9eb760f0-4380-11d2-b328-00805f8a3859}"].getService(Ci.nsISupports);
|
||||
|
||||
function assert_equals(a, b, msg) {
|
||||
dump("assert_equals(" + a + ", " + b + ", \"" + msg + "\")");
|
||||
do_check_eq(a, b, Components.stack.caller);
|
||||
|
@ -8,7 +8,6 @@
|
||||
|
||||
#include "nsIConsoleService.h"
|
||||
#include "nsIDiskSpaceWatcher.h"
|
||||
#include "nsIDOMScriptObjectFactory.h"
|
||||
#include "nsIFile.h"
|
||||
#include "nsIFileStorage.h"
|
||||
#include "nsIObserverService.h"
|
||||
@ -40,8 +39,6 @@ USING_INDEXEDDB_NAMESPACE
|
||||
using namespace mozilla::dom;
|
||||
USING_QUOTA_NAMESPACE
|
||||
|
||||
static NS_DEFINE_CID(kDOMSOF_CID, NS_DOM_SCRIPT_OBJECT_FACTORY_CID);
|
||||
|
||||
BEGIN_INDEXEDDB_NAMESPACE
|
||||
|
||||
class FileManagerInfo
|
||||
@ -606,11 +603,6 @@ IndexedDatabaseManager::InitWindowless(const jsval& aObj, JSContext* aCx)
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
|
||||
// Instantiating this class will register exception providers so even
|
||||
// in xpcshell we will get typed (dom) exceptions, instead of general
|
||||
// exceptions.
|
||||
nsCOMPtr<nsIDOMScriptObjectFactory> sof(do_GetService(kDOMSOF_CID));
|
||||
|
||||
JS::Rooted<JSObject*> global(aCx, JS_GetGlobalForObject(aCx, obj));
|
||||
NS_ASSERTION(global, "What?! No global!");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user