Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
casperjs
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
bc7f8568
...
bc7f856881a383a8342406b56b7c1ad0e5da4d4e
authored
2013-09-19 09:32:26 +0300
by
Dharrya
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
refs #637 - fix navigationRequested when navigationLocked
1 parent
0dcd7fb5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
modules/casper.js
modules/casper.js
View file @
bc7f856
...
...
@@ -2435,11 +2435,12 @@ function createPage(casper) {
newUrl
=
newUrl
.
substring
(
0
,
pos
);
}
// for URLs that are only different by their hash part
// or if navigation locked (willNavigate == false)
// don't turn navigationRequested to true, because
// there will not be loadStarted, loadFinished events
// so it could cause issues (for exemple, checkStep that
// do no execute the next step -> infinite loop on checkStep)
if
(
currentUrl
!==
newUrl
)
if
(
willNavigate
&&
currentUrl
!==
newUrl
)
casper
.
navigationRequested
=
true
;
if
(
willNavigate
)
{
...
...
Please
register
or
sign in
to post a comment