SIGN IN SIGN UP
angular / angular.js UNCLAIMED

AngularJS - HTML enhanced for web apps!

0 0 84 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
367da583bc12e6f5f01edf757305409cf63fb1f4
Parent: 68fb70e
Committed by Peter Bacon Darwin <pete@bacondarwin.com> on 11/21/2016, 9:16:11 PM