Bug 1208895 - Fix a typo in nsGenericHTMLElement::GetItemId(); r=baku
authorEhsan Akhgari <ehsan@mozilla.com>
Sun, 27 Sep 2015 16:57:21 -0400
changeset 264746 c9088ac1b03b98974f885c0322a2bec6237b65ca
parent 264745 bfdf182368019a3f0d9bce0e711f79729c7a7534
child 264747 ea5f69a5ddd8ca0dcfe04c3470d74b5aca19c131
push id29446
push userkwierso@gmail.com
push dateMon, 28 Sep 2015 22:36:46 +0000
treeherdermozilla-central@c7db5b605dd4 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbaku
bugs1208895
milestone44.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 1208895 - Fix a typo in nsGenericHTMLElement::GetItemId(); r=baku Found by Viva64.
dom/html/nsGenericHTMLElement.h
--- a/dom/html/nsGenericHTMLElement.h
+++ b/dom/html/nsGenericHTMLElement.h
@@ -404,17 +404,17 @@ public:
     return NS_OK;
   }
   NS_IMETHOD SetItemType(nsIVariant* aType) final override {
     return SetTokenList(nsGkAtoms::itemtype, aType);
   }
   NS_IMETHOD GetItemId(nsAString& aId) final override {
     nsString id;
     GetItemId(id);
-    aId.Assign(aId);
+    aId.Assign(id);
     return NS_OK;
   }
   NS_IMETHOD SetItemId(const nsAString& aId) final override {
     mozilla::ErrorResult rv;
     SetItemId(aId, rv);
     return rv.StealNSResult();
   }
   NS_IMETHOD GetProperties(nsISupports** aReturn) final override;