Skip to content
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.

Commit

Permalink
Support: Turn off pushState inside FF iframes
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriel Schulhof committed Feb 20, 2013
1 parent 1294caa commit 54a3d79
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions js/jquery.mobile.support.js
Expand Up @@ -193,6 +193,8 @@ $.extend( $.support, {
// https://developers.google.com/chrome/mobile/docs/user-agent#chrome_for_ios_user-agent
pushState: "pushState" in history &&
"replaceState" in history &&
// When running inside a FF iframe, calling replaceState causes an error
!( window.navigator.userAgent.indexOf( "Firefox" ) >= 0 && window.top !== window ) &&
( window.navigator.userAgent.search(/CriOS/) === -1 ),

mediaquery: $.mobile.media( "only all" ),
Expand Down

0 comments on commit 54a3d79

Please sign in to comment.