Bug 753490 - Fix find_element regression, r=mdas, DONTBUILD because NPOTB
authorJonathan Griffin <jgriffin@mozilla.com>
Fri, 27 Jul 2012 09:39:55 -0700
changeset 100717 160c92e9a25459d628e15c81fcdd2e417aec52df
parent 100716 e3b08a3c9bd74e6df22d5b34a598f977ae2a2873
child 100724 2abd21593e57151f5d84657f0f1bc19c72a4ae65
push id23190
push userjgriffin@mozilla.com
push dateFri, 27 Jul 2012 16:40:22 +0000
treeherdermozilla-central@160c92e9a254 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmdas, DONTBUILD
bugs753490
milestone17.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 753490 - Fix find_element regression, r=mdas, DONTBUILD because NPOTB
testing/marionette/marionette-elements.js
--- a/testing/marionette/marionette-elements.js
+++ b/testing/marionette/marionette-elements.js
@@ -57,17 +57,17 @@ ElementManager.prototype = {
   * @param nsIDOMElement element
   *        The element to add
   *
   * @return string
   *        Returns the server-assigned reference ID
   */
   addToKnownElements: function EM_addToKnownElements(element) {
     for (let i in this.seenItems) {
-      if (this.seenItems[i] == element) {
+      if (XPCNativeWrapper(this.seenItems[i]) == XPCNativeWrapper(element)) {
         return i;
       }
     }
     var id = uuidGen.generateUUID().toString();
     this.seenItems[id] = element;
     return id;
   },