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
50255710
...
502557108eb595bee21449104f76516cae1f6937
authored
2013-03-12 13:55:26 +0400
by
Yevgeny Smirnov
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
navigationRequested is true only when navigating to a different URL
1 parent
3a4ed2c8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
modules/casper.js
modules/casper.js
View file @
5025571
...
...
@@ -2203,7 +2203,7 @@ function createPage(casper) {
page
.
onNavigationRequested
=
function
onNavigationRequested
(
url
,
type
,
lock
,
isMainFrame
)
{
casper
.
log
(
f
(
'Navigation requested: url=%s, type=%s, lock=%s, isMainFrame=%s'
,
url
,
type
,
lock
,
isMainFrame
),
"debug"
);
if
(
isMainFrame
)
{
if
(
isMainFrame
&&
casper
.
requestUrl
!==
url
)
{
casper
.
navigationRequested
=
true
;
}
casper
.
emit
(
'navigation.requested'
,
url
,
type
,
lock
,
isMainFrame
);
...
...
Please
register
or
sign in
to post a comment