Title: [98341] trunk/Source/WebCore
Revision
98341
Author
[email protected]
Date
2011-10-25 06:57:54 -0700 (Tue, 25 Oct 2011)

Log Message

Web Inspector: [Chromium] Audits panel context menu for links not working properly
https://bugs.webkit.org/show_bug.cgi?id=70813

Reviewed by Pavel Feldman.

* inspector/front-end/AuditResultView.js:
(WebInspector.AuditResultView):
(WebInspector.AuditResultView.prototype._contextMenuEventFired):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (98340 => 98341)


--- trunk/Source/WebCore/ChangeLog	2011-10-25 13:49:33 UTC (rev 98340)
+++ trunk/Source/WebCore/ChangeLog	2011-10-25 13:57:54 UTC (rev 98341)
@@ -1,3 +1,14 @@
+2011-10-25  Alexander Pavlov  <[email protected]>
+
+        Web Inspector: [Chromium] Audits panel context menu for links not working properly
+        https://bugs.webkit.org/show_bug.cgi?id=70813
+
+        Reviewed by Pavel Feldman.
+
+        * inspector/front-end/AuditResultView.js:
+        (WebInspector.AuditResultView):
+        (WebInspector.AuditResultView.prototype._contextMenuEventFired):
+
 2011-10-25  Vsevolod Vlasov  <[email protected]>
 
         Web Inspector: Resources panel: display the current search match index in the toolbar.

Modified: trunk/Source/WebCore/inspector/front-end/AuditResultView.js (98340 => 98341)


--- trunk/Source/WebCore/inspector/front-end/AuditResultView.js	2011-10-25 13:49:33 UTC (rev 98340)
+++ trunk/Source/WebCore/inspector/front-end/AuditResultView.js	2011-10-25 13:57:54 UTC (rev 98341)
@@ -43,8 +43,19 @@
     categoryResults.sort(categorySorter);
     for (var i = 0; i < categoryResults.length; ++i)
         this.element.appendChild(new WebInspector.AuditCategoryResultPane(categoryResults[i]).element);
+
+    this.element.addEventListener("contextmenu", this._contextMenuEventFired.bind(this), true);
 }
 
+WebInspector.AuditResultView.prototype = {
+    _contextMenuEventFired: function(event)
+    {
+        var contextMenu = new WebInspector.ContextMenu();
+        if (WebInspector.populateHrefContextMenu(contextMenu, null, event))
+            contextMenu.show(event);
+    }
+}
+
 WebInspector.AuditResultView.prototype.__proto__ = WebInspector.View.prototype;
 
 /**
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to