Changeset 61527 in webkit
- Timestamp:
- Jun 20, 2010 9:38:51 PM (14 years ago)
- Location:
- trunk/WebKitTools
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebKitTools/ChangeLog
r61515 r61527 1 2010-06-20 Kent Tamura <tkent@chromium.org> 2 3 Reviewed by Dimitri Glazkov. 4 5 [DRT/Chromium] Add --allow-external-pages option 6 https://bugs.webkit.org/show_bug.cgi?id=40762 7 8 Add --allow-external-pages introduced by Chromium r45403. 9 http://src.chromium.org/viewvc/chrome?view=rev&revision=45403 10 11 * DumpRenderTree/chromium/DumpRenderTree.cpp: 12 (main): 13 * DumpRenderTree/chromium/TestShell.cpp: 14 (TestShell::TestShell): 15 * DumpRenderTree/chromium/TestShell.h: 16 (TestShell::allowExternalPages): 17 (TestShell::setAllowExternalPages): 18 * DumpRenderTree/chromium/WebViewHost.cpp: 19 (WebViewHost::willSendRequest): 20 1 21 2010-06-20 Joseph Pecoraro <joepeck@webkit.org> 2 22 -
trunk/WebKitTools/DumpRenderTree/chromium/DumpRenderTree.cpp
r61299 r61527 48 48 static const char optionPixelTestsWithName[] = "--pixel-tests="; 49 49 static const char optionTestShell[] = "--test-shell"; 50 static const char optionAllowExternalPages[] = "--allow-external-pages"; 50 51 51 52 static void runTest(TestShell& shell, TestParams& params, const string& testName, bool testShellMode) … … 90 91 bool serverMode = false; 91 92 bool testShellMode = false; 93 bool allowExternalPages = false; 92 94 for (int i = 1; i < argc; ++i) { 93 95 string argument(argv[i]); … … 104 106 testShellMode = true; 105 107 serverMode = true; 106 } else if (argument.size() && argument[0] == '-') 108 } else if (argument == optionAllowExternalPages) 109 allowExternalPages = true; 110 else if (argument.size() && argument[0] == '-') 107 111 fprintf(stderr, "Unknown option: %s\n", argv[i]); 108 112 else … … 116 120 { // Explicit scope for the TestShell instance. 117 121 TestShell shell(testShellMode); 122 shell.setAllowExternalPages(allowExternalPages); 118 123 if (serverMode && !tests.size()) { 119 124 params.printSeparators = true; -
trunk/WebKitTools/DumpRenderTree/chromium/TestShell.cpp
r61329 r61527 81 81 , m_focusedWidget(0) 82 82 , m_testShellMode(testShellMode) 83 , m_allowExternalPages(false) 83 84 { 84 85 WebRuntimeFeatures::enableGeolocation(true); -
trunk/WebKitTools/DumpRenderTree/chromium/TestShell.h
r61328 r61527 108 108 void testTimedOut(); 109 109 110 bool allowExternalPages() const { return m_allowExternalPages; } 111 void setAllowExternalPages(bool allowExternalPages) { m_allowExternalPages = allowExternalPages; } 112 110 113 #if defined(OS_WIN) 111 114 // Access to the finished event. Used by the static WatchDog thread. … … 150 153 TestParams m_params; 151 154 int m_timeout; // timeout value in millisecond 155 bool m_allowExternalPages; 152 156 153 157 // List of all windows in this process. -
trunk/WebKitTools/DumpRenderTree/chromium/WebViewHost.cpp
r61458 r61527 919 919 && host != "127.0.0.1" 920 920 && host != "255.255.255.255" 921 && host != "localhost") { 921 && host != "localhost" 922 && !m_shell->allowExternalPages()) { 922 923 printf("Blocked access to external URL %s\n", requestURL.c_str()); 923 924
Note: See TracChangeset
for help on using the changeset viewer.