Changeset 76693 in webkit


Ignore:
Timestamp:
Jan 26, 2011 9:32:54 AM (13 years ago)
Author:
commit-queue@webkit.org
Message:

2011-01-26 Mansi Mithal <mansi.mithal@nokia.com>

Reviewed by Antonio Gomes.

QtTestBrowser should have a UI Setting to disable plugins
https://bugs.webkit.org/show_bug.cgi?id=52408

Added a new action item named "Disable Plugins"
under the "Settings" menu.

  • QtTestBrowser/launcherwindow.cpp: (LauncherWindow::createChrome): (LauncherWindow::togglePlugins):
  • QtTestBrowser/launcherwindow.h:
Location:
trunk/Tools
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r76656 r76693  
     12011-01-26  Mansi Mithal  <mansi.mithal@nokia.com>
     2
     3        Reviewed by Antonio Gomes.
     4
     5        QtTestBrowser should have a UI Setting to disable plugins
     6        https://bugs.webkit.org/show_bug.cgi?id=52408
     7       
     8        Added a new action item named "Disable Plugins"
     9        under the "Settings" menu.
     10
     11        * QtTestBrowser/launcherwindow.cpp:
     12        (LauncherWindow::createChrome):
     13        (LauncherWindow::togglePlugins):
     14        * QtTestBrowser/launcherwindow.h:
     15
    1162011-01-25  Patrick Gansterer  <paroga@webkit.org>
    217
  • trunk/Tools/QtTestBrowser/launcherwindow.cpp

    r76646 r76693  
    372372    toggleAutoLoadImages->setChecked(false);
    373373
     374    QAction* togglePlugins = settingsMenu->addAction("Disable Plugins", this, SLOT(togglePlugins(bool)));
     375    togglePlugins->setCheckable(true);
     376    togglePlugins->setChecked(false);
     377
    374378    QAction* toggleInterruptingJavaScripteEnabled = settingsMenu->addAction("Enable interrupting js scripts", this, SLOT(toggleInterruptingJavaScriptEnabled(bool)));
    375379    toggleInterruptingJavaScripteEnabled->setCheckable(true);
     
    780784}
    781785
     786void LauncherWindow::togglePlugins(bool enable)
     787{
     788    page()->settings()->setAttribute(QWebSettings::PluginsEnabled, !enable);
     789}
     790
    782791#if defined(QT_CONFIGURED_WITH_OPENGL)
    783792void LauncherWindow::toggleQGLWidgetViewport(bool enable)
  • trunk/Tools/QtTestBrowser/launcherwindow.h

    r76646 r76693  
    165165    void toggleJavascriptCanOpenWindows(bool enable);
    166166    void toggleAutoLoadImages(bool enable);
     167    void togglePlugins(bool enable);
    167168
    168169#if defined(QT_CONFIGURED_WITH_OPENGL)
Note: See TracChangeset for help on using the changeset viewer.