Bug 1342297 - Start using <iframe useContentEventHandling> in devtools. r=ochameau draft
authorTim Nguyen <ntim.bugs@gmail.com>
Sat, 25 Feb 2017 13:13:51 +0000
changeset 489663 209ac747ca55f2a72270cc37a8a3672ea7ddd2fd
parent 489662 31fcecf320f528a0f56f1c05b18afede7780cd73
child 489664 cc410cd568de56d9453e68a9642b23b91d323998
push id46875
push userbmo:ntim.bugs@gmail.com
push dateSat, 25 Feb 2017 13:15:07 +0000
reviewersochameau
bugs1342297
milestone54.0a1
Bug 1342297 - Start using <iframe useContentEventHandling> in devtools. r=ochameau MozReview-Commit-ID: 4jS5trjw1za
devtools/client/framework/toolbox.js
--- a/devtools/client/framework/toolbox.js
+++ b/devtools/client/framework/toolbox.js
@@ -1402,16 +1402,17 @@ Toolbox.prototype = {
       return deferred.promise;
     }
 
     iframe = this.doc.createElement("iframe");
     iframe.className = "toolbox-panel-iframe";
     iframe.id = "toolbox-panel-iframe-" + id;
     iframe.setAttribute("flex", 1);
     iframe.setAttribute("forceOwnRefreshDriver", "");
+    iframe.setAttribute("useContentEventHandling", "true");
     iframe.tooltip = "aHTMLTooltip";
     iframe.style.visibility = "hidden";
 
     gDevTools.emit(id + "-init", this, iframe);
     this.emit(id + "-init", iframe);
 
     // If no parent yet, append the frame into default location.
     if (!iframe.parentNode) {