-
-
Notifications
You must be signed in to change notification settings - Fork 17
Platform.global implementation breaks Chrome Apps CSP #25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
Comments
@AshleyGrant Can you submit a PR? |
seems kinda done Line 235 in 0e643f0
|
@AshleyGrant Can you confirm and close if we're good? |
Looks like it is missing
|
Who wants to submit a PR? |
No PR after a year, so closing. |
Given that Chrome Web Apps have been deprecated, I don't see any reason to fix this, so I'm fine with the closure. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm submitting a bug report
1.3.0
Please tell us about your environment:
Operating System:
all
Node Version:
n/a
NPM Version:
n/a
JSPM OR Webpack AND Version
n/a
Browser:
Chrome Web Apps
Language:
all
Current behavior:
According to paulmillr/es6-shim#301 and https://github.com/tc39/proposal-global, our current implementation for finding the global will fail when run in Chrome Web Apps due to a CSP issue.
Expected/desired behavior:
For it to work in all possible environments
es6-shim uses the following:
var getGlobal = function () {
// the only reliable means to get the global object is
//
Function('return this')()
// However, this causes CSP violations in Chrome apps.
if (typeof self !== 'undefined') { return self; }
if (typeof window !== 'undefined') { return window; }
if (typeof global !== 'undefined') { return global; }
throw new Error('unable to locate global object');
};
(pulled from https://github.com/tc39/proposal-global )
Allow Aurelia to work everywhere possible
The text was updated successfully, but these errors were encountered: