Files
angular.js/test
Georgios Kalpakas 9f5526f861 fix($sniffer): fix history sniffing in Chrome Packaged Apps
Although `window.history` is present in the context of Chrome Packaged Apps, it is not allowed to
access `window.history.pushState` or `window.history.state`, resulting in errors when trying to
"sniff" history support.
This commit fixes it by detecting a Chrome Packaged App (through the presence of
`window.chrome.app.runtime`). Note that `window.chrome.app` is present in the context of "normal"
webpages as well, but it doesn't have the `runtime` property, which is only available to packaged
apps (e.g. see https://developer.chrome.com/apps/api_index).

(It also also contains some style changes for making the structure and layout of `$sniffer` tests
 more consistent.)

Fixes #11932

Closes #13945
2016-03-22 11:32:18 +02:00
..
2016-03-16 09:15:21 +00:00
2016-03-16 09:15:21 +00:00
2016-03-16 09:15:21 +00:00
2016-03-16 09:15:21 +00:00
2016-03-16 09:15:21 +00:00
2016-03-16 09:15:21 +00:00
2016-03-16 09:15:21 +00:00