[GTK] WebDriver: disable XSS auditor when running WebDriver tests
authorcarlosgc@webkit.org <carlosgc@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 28 Nov 2017 13:23:40 +0000 (13:23 +0000)
committercarlosgc@webkit.org <carlosgc@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 28 Nov 2017 13:23:40 +0000 (13:23 +0000)
https://bugs.webkit.org/show_bug.cgi?id=180075

Reviewed by Carlos Alberto Lopez Perez.

Some tests are now doing inline('<script>window.alert()</script>') which is rejected by the XSS auditor because
the script source is part of the request URL.

* Scripts/webkitpy/webdriver_tests/webdriver_driver_gtk.py:
(WebDriverGtk.capabilities): Disable XSS auditor.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@225214 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Tools/ChangeLog
Tools/Scripts/webkitpy/webdriver_tests/webdriver_driver_gtk.py

index b6116d6..ef6c2c6 100644 (file)
@@ -1,5 +1,18 @@
 2017-11-28  Carlos Garcia Campos  <cgarcia@igalia.com>
 
+        [GTK] WebDriver: disable XSS auditor when running WebDriver tests
+        https://bugs.webkit.org/show_bug.cgi?id=180075
+
+        Reviewed by Carlos Alberto Lopez Perez.
+
+        Some tests are now doing inline('<script>window.alert()</script>') which is rejected by the XSS auditor because
+        the script source is part of the request URL.
+
+        * Scripts/webkitpy/webdriver_tests/webdriver_driver_gtk.py:
+        (WebDriverGtk.capabilities): Disable XSS auditor.
+
+2017-11-28  Carlos Garcia Campos  <cgarcia@igalia.com>
+
         WebDriver: add timeout option to run-webdriver-tests script
         https://bugs.webkit.org/show_bug.cgi?id=179940
 
index 3c05fff..ab010b5 100644 (file)
@@ -37,7 +37,7 @@ class WebDriverGtk(WebDriver):
     def capabilities(self):
         return {'webkitgtk:browserOptions': {
             'binary': self._port._build_path('bin', 'MiniBrowser'),
-            'args': ['--automation', '--javascript-can-open-windows-automatically=true']}}
+            'args': ['--automation', '--javascript-can-open-windows-automatically=true', '--enable-xss-auditor=false']}}
 
 
 register_driver('gtk', WebDriverGtk)