@@ -23,6 +23,8 @@ var STACK_SUBSTRINGS_TO_FILTER = [
23
23
'protractor/lib/'
24
24
] ;
25
25
26
+ var DEFAULT_RESET_URL = 'data:text/html,<html></html>' ;
27
+
26
28
/*
27
29
* Mix in other webdriver functionality to be accessible via protractor.
28
30
*/
@@ -841,6 +843,11 @@ var Protractor = function(webdriverInstance, opt_baseUrl, opt_rootElement) {
841
843
*/
842
844
this . params = { } ;
843
845
846
+ /**
847
+ * The reset URL to use between page loads.
848
+ */
849
+ this . resetUrl = DEFAULT_RESET_URL ;
850
+
844
851
/**
845
852
* Information about mock modules that will be installed during every
846
853
* get().
@@ -981,7 +988,7 @@ Protractor.prototype.get = function(destination, opt_timeout) {
981
988
return this . driver . get ( destination ) ;
982
989
}
983
990
984
- this . driver . get ( 'about:blank' ) ;
991
+ this . driver . get ( this . resetUrl ) ;
985
992
this . driver . executeScript (
986
993
'window.name = "' + DEFER_LABEL + '" + window.name;' +
987
994
'window.location.replace("' + destination + '");' ) ;
@@ -991,7 +998,7 @@ Protractor.prototype.get = function(destination, opt_timeout) {
991
998
this . driver . wait ( function ( ) {
992
999
return self . driver . executeScript ( 'return window.location.href;' ) .
993
1000
then ( function ( url ) {
994
- return url !== 'about:blank' ;
1001
+ return url !== self . resetUrl ;
995
1002
} , function ( err ) {
996
1003
if ( err . code == 13 ) {
997
1004
// Ignore the error, and continue trying. This is because IE
0 commit comments