SIGN IN SIGN UP
angular / angular.js UNCLAIMED

AngularJS - HTML enhanced for web apps!

0 0 0 JavaScript

fix($sniffer): don't use `history.pushState` in sandboxed Chrome Packaged Apps

While sandboxed Chrome Packaged Apps (CPAs) have the same restrictions wrt
accessing `history.pushState` as "normal" CPAs, they can't be detected in the
same way, as they do not have access to the same APIs.
Previously, due to their differences from normal CPAs, `$sniffer` would fail to
detect sandboxed CPAs and incorrectly assume `history.pushState` is available
(which resulted in an error being thrown).
This commit fixes the detection of sandboxed CPAs in `$sniffer`.

See #11932 and #13945 for previous work.

Closes #15021
T
Tyler Romeo committed
3f759b191dc0710b38042897749df17d50279de7
Parent: a83a209
Committed by Georgios Kalpakas <kalpakas.g@gmail.com> on 9/8/2016, 8:52:39 PM