Commit 18fe8172 authored by christian@webkit.org's avatar christian@webkit.org

Regression: Back, Forward, Reload hidden in context menu

https://bugs.webkit.org/show_bug.cgi?id=54393

Reviewed by Gustavo Noronha Silva.

* page/ContextMenuController.cpp: Always show Back, Forward,
    Reload and Stop context menu items for the GTK+ port.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@78480 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 3a58f84c
2011-02-14 Christian Dywan <christian@lanedo.com>
Reviewed by Gustavo Noronha Silva.
Regression: Back, Forward, Reload hidden in context menu
https://bugs.webkit.org/show_bug.cgi?id=54393
* page/ContextMenuController.cpp: Always show Back, Forward,
Reload and Stop context menu items for the GTK+ port.
2011-02-14 Johnny Ding <jnd@chromium.org>
Reviewed by Andreas Kling.
......@@ -780,6 +780,14 @@ void ContextMenuController::populate()
#if ENABLE(INSPECTOR)
if (!(frame->page() && frame->page()->inspectorController()->hasInspectorFrontendClient())) {
#endif
// In GTK+ unavailable items are not hidden but insensitive
#if PLATFORM(GTK)
appendItem(BackItem, m_contextMenu.get());
appendItem(ForwardItem, m_contextMenu.get());
appendItem(StopItem, m_contextMenu.get());
appendItem(ReloadItem, m_contextMenu.get());
#else
if (frame->page() && frame->page()->backForward()->canGoBackOrForward(-1))
appendItem(BackItem, m_contextMenu.get());
......@@ -792,6 +800,7 @@ void ContextMenuController::populate()
appendItem(StopItem, m_contextMenu.get());
else
appendItem(ReloadItem, m_contextMenu.get());
#endif
#if ENABLE(INSPECTOR)
}
#endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment