Bug 1390209 - Follow-up patch to remove a reference to removed interfaces. r?qdot draft
authorMasatoshi Kimura <VYV03354@nifty.ne.jp>
Wed, 23 Aug 2017 06:49:22 +0900
changeset 650805 f27cb3e1f1b8245046dfe6e3cea3d4748f116f3e
parent 650804 879dccc6b07833d9f738d5fb76d8d3ec2613b579
child 727502 8831ee43a1dc552f3d3439479deb1b898df341e3
push id75502
push userVYV03354@nifty.ne.jp
push dateTue, 22 Aug 2017 22:39:29 +0000
reviewersqdot
bugs1390209
milestone57.0a1
Bug 1390209 - Follow-up patch to remove a reference to removed interfaces. r?qdot MozReview-Commit-ID: LLHItOR1atG
mobile/android/chrome/content/browser.js
--- a/mobile/android/chrome/content/browser.js
+++ b/mobile/android/chrome/content/browser.js
@@ -7096,17 +7096,17 @@ HTMLContextMenuItem.prototype = Object.c
   callback: {
     value: function(target) {
       let elt = this.menuElementRef.get();
       if (!elt) {
         return;
       }
 
       // If this is a menu item, show a new context menu with the submenu in it
-      if (elt instanceof Ci.nsIDOMHTMLMenuElement) {
+      if (elt instanceof HTMLMenuElement) {
         try {
           NativeWindow.contextmenus.menus = {};
 
           let elt = this.menuElementRef.get();
           let target = this.targetElementRef.get();
           if (!elt) {
             return;
           }
@@ -7139,14 +7139,14 @@ HTMLContextMenuItem.prototype = Object.c
         return null;
       }
 
       return {
         id: this.id,
         icon: elt.icon,
         label: elt.label,
         disabled: elt.disabled,
-        menu: elt instanceof Ci.nsIDOMHTMLMenuElement
+        menu: elt instanceof HTMLMenuElement
       };
     }
   },
 });