Permalink
Browse files

Support: Turn off pushState inside FF iframes

  • Loading branch information...
1 parent 1294caa commit 54a3d798ac612c75fd63b99f2135b5c1c245e1cc @gabrielschulhof gabrielschulhof committed Feb 20, 2013
Showing with 2 additions and 0 deletions.
  1. +2 −0 js/jquery.mobile.support.js
@@ -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" ),

0 comments on commit 54a3d79

Please sign in to comment.