Changeset 128272 in webkit


Ignore:
Timestamp:
Sep 12, 2012 12:39:51 AM (12 years ago)
Author:
commit-queue@webkit.org
Message:

[WK2][WTR] Some of TestRunner special options are not reset before testing
https://bugs.webkit.org/show_bug.cgi?id=96384

Patch by Mikhail Pozdnyakov <mikhail.pozdnyakov@intel.com> on 2012-09-12
Reviewed by Kenneth Rohde Christiansen.

Now values of the following special options are reset:
void setAcceptsEditing(in boolean value);
void setCloseRemainingWindowsWhenComplete(in boolean value);
void setXSSAuditorEnabled(in boolean value);
void setAllowFileAccessFromFileURLs(in boolean value);
void setPluginsEnabled(in boolean value);
void setPopupBlockingEnabled(in boolean value);

  • WebKitTestRunner/InjectedBundle/InjectedBundle.cpp:

(WTR::InjectedBundle::beginTesting):

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r128261 r128272  
     12012-09-12  Mikhail Pozdnyakov  <mikhail.pozdnyakov@intel.com>
     2
     3        [WK2][WTR] Some of TestRunner special options are not reset before testing
     4        https://bugs.webkit.org/show_bug.cgi?id=96384
     5
     6        Reviewed by Kenneth Rohde Christiansen.
     7
     8        Now values of the following special options are reset:
     9        void setAcceptsEditing(in boolean value);
     10        void setCloseRemainingWindowsWhenComplete(in boolean value);
     11        void setXSSAuditorEnabled(in boolean value);
     12        void setAllowFileAccessFromFileURLs(in boolean value);
     13        void setPluginsEnabled(in boolean value);
     14        void setPopupBlockingEnabled(in boolean value);
     15
     16        * WebKitTestRunner/InjectedBundle/InjectedBundle.cpp:
     17        (WTR::InjectedBundle::beginTesting):
     18
    1192012-09-11  Ryuan Choi  <ryuan.choi@samsung.com>
    220
  • trunk/Tools/WebKitTestRunner/InjectedBundle/InjectedBundle.cpp

    r128186 r128272  
    243243    WKBundleSetMinimumTimerInterval(m_bundle, m_pageGroup, 0.010); // 10 milliseconds (DOMTimer::s_minDefaultTimerInterval)
    244244    WKBundleSetSpatialNavigationEnabled(m_bundle, m_pageGroup, false);
     245    WKBundleSetAllowFileAccessFromFileURLs(m_bundle, m_pageGroup, true);
     246    WKBundleSetPluginsEnabled(m_bundle, m_pageGroup, true);
     247    WKBundleSetPopupBlockingEnabled(m_bundle, m_pageGroup, false);
    245248
    246249    WKBundleRemoveAllUserContent(m_bundle, m_pageGroup);
     
    248251    m_testRunner->setShouldDumpFrameLoadCallbacks(booleanForKey(settings, "DumpFrameLoadDelegates"));
    249252    m_testRunner->setUserStyleSheetEnabled(false);
     253    m_testRunner->setXSSAuditorEnabled(false);
     254    m_testRunner->setCloseRemainingWindowsWhenComplete(false);
     255    m_testRunner->setAcceptsEditing(true);
    250256
    251257    page()->prepare();
Note: See TracChangeset for help on using the changeset viewer.