Bug 833808 followup. Placate over-strict test in CLOSED TREE.
authorBoris Zbarsky <bzbarsky@mit.edu>
Wed, 13 Feb 2013 11:32:40 -0500
changeset 121759 dcc017a7cd4d7f9659f6b16c68b6a5e36e61238e
parent 121758 5e63610b9072fcc9a52f9a5fd8f866e5b28a49f8
child 121760 b87f9a587e86347399c90c78b9d7d05d0ef1e0f5
push id24307
push useremorley@mozilla.com
push dateThu, 14 Feb 2013 10:47:46 +0000
treeherdermozilla-central@aceeea086ccb [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs833808
milestone21.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 833808 followup. Placate over-strict test in CLOSED TREE.
layout/inspector/src/inDOMUtils.cpp
--- a/layout/inspector/src/inDOMUtils.cpp
+++ b/layout/inspector/src/inDOMUtils.cpp
@@ -194,17 +194,17 @@ inDOMUtils::GetCSSStyleRules(nsIDOMEleme
   return NS_OK;
 }
 
 static already_AddRefed<StyleRule>
 GetRuleFromDOMRule(nsIDOMCSSStyleRule *aRule, ErrorResult& rv)
 {
   nsCOMPtr<nsICSSStyleRuleDOMWrapper> rule = do_QueryInterface(aRule);
   if (!rule) {
-    rv.Throw(NS_ERROR_INVALID_ARG);
+    rv.Throw(NS_ERROR_INVALID_POINTER);
     return nullptr;
   }
 
   nsRefPtr<StyleRule> cssrule;
   rv = rule->GetCSSStyleRule(getter_AddRefs(cssrule));
   if (rv.Failed()) {
     return nullptr;
   }