@@ -838,7 +838,7 @@ def open_start_page(self):
838
838
"""Navigates the current browser window to the start_page.
839
839
You can set the start_page on the command-line in three ways:
840
840
'--start_page=URL', '--start-page=URL', or '--url=URL'.
841
- If the start_page is not set, then "data:, " will be used."""
841
+ If the start_page is not set, then "about:blank " will be used."""
842
842
self.__check_scope()
843
843
start_page = self.start_page
844
844
if type(start_page) is str:
@@ -854,9 +854,11 @@ def open_start_page(self):
854
854
self.__dont_record_open = False
855
855
else:
856
856
logging.info('Invalid URL: "%s"!' % start_page)
857
- self.open("data:,")
857
+ if self.get_current_url() != "about:blank":
858
+ self.open("about:blank")
858
859
else:
859
- self.open("data:,")
860
+ if self.get_current_url() != "about:blank":
861
+ self.open("about:blank")
860
862
861
863
def open_if_not_url(self, url):
862
864
"""Opens the url in the browser if it's not the current url."""
@@ -11721,9 +11723,9 @@ def setUp(self, masterqa_mode=False):
11721
11723
self.open(new_start_page)
11722
11724
self.__dont_record_open = False
11723
11725
if self.recorder_ext or (self._crumbs and not good_start_page):
11724
- if self.get_current_url() != "data:, ":
11726
+ if self.get_current_url() != "about:blank ":
11725
11727
self.__new_window_on_rec_open = False
11726
- self.open("data:, ")
11728
+ self.open("about:blank ")
11727
11729
self.__new_window_on_rec_open = True
11728
11730
if self.recorder_ext:
11729
11731
self.__js_start_time = int(time.time() * 1000.0)
0 commit comments