Bug 1607408 - Remove InspectorUtils.getBindingURLs. r=jwatt

Does nothing, and it's unused.

Differential Revision: https://phabricator.services.mozilla.com/D58914

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Emilio Cobos Álvarez 2020-01-09 19:08:30 +00:00
parent dbe20e6bb4
commit d6d99aaf8a
5 changed files with 0 additions and 24 deletions

View file

@ -49,8 +49,6 @@ namespace InspectorUtils {
Node? getParentForNode(Node node, boolean showingAnonymousContent);
[NewObject] NodeList getChildrenForNode(Node node,
boolean showingAnonymousContent);
// FIXME(emilio, bug 1607408): Remove this.
sequence<DOMString> getBindingURLs(Element element);
[Throws] boolean setContentState(Element element, unsigned long long state);
[Throws] boolean removeContentState(
Element element,

View file

@ -510,10 +510,6 @@ bool InspectorUtils::IsValidCSSColor(GlobalObject& aGlobalObject,
return ServoCSSParser::IsValidCSSColor(aColorString);
}
void InspectorUtils::GetBindingURLs(GlobalObject& aGlobalObject,
Element& aElement,
nsTArray<nsString>& aResult) {}
/* static */
bool InspectorUtils::SetContentState(GlobalObject& aGlobalObject,
Element& aElement, uint64_t aState,

View file

@ -186,9 +186,6 @@ class InspectorUtils {
static already_AddRefed<nsINodeList> GetChildrenForNode(
nsINode& aNode, bool aShowingAnonymousContent);
static void GetBindingURLs(GlobalObject& aGlobal, Element& aElement,
nsTArray<nsString>& aResult);
/**
* Setting and removing content state on an element. Both these functions
* call EventStateManager::SetContentState internally; the difference is

View file

@ -54,14 +54,6 @@ function do_test() {
is(e.name, "TypeError", "got the expected exception");
}
try {
InspectorUtils.getBindingURLs(null);
ok(false, "expected an exception");
}
catch(e) {
is(e.name, "TypeError", "got the expected exception");
}
try {
InspectorUtils.getContentState(null);
ok(false, "expected an exception");

View file

@ -58,13 +58,6 @@ function do_test() {
}
catch(e) { ok(false, "got an unexpected exception:" + e); }
try {
var res = InspectorUtils.getBindingURLs(docElement);
ok(Array.isArray(SpecialPowers.unwrap(res)), "getBindingURLs result type");
is(res.length, 0, "getBindingURLs array length");
}
catch(e) { ok(false, "got an unexpected exception:" + e); }
try {
InspectorUtils.getContentState(docElement);
ok(true, "Should not throw");