Skip to content
This repository was archived by the owner on Nov 6, 2023. It is now read-only.

Conversation

@semenko
Copy link
Contributor

@semenko semenko commented Jan 22, 2016

I found this fun bug while expanding "use strict" for some ES6 features:

Because of the IIFE (immediately-invoked function expression) surrounding localPlatformRegexp, it's never worked. this.userAgent is undefined during execution, and the else is always taken, resulting in chromium being the platform -- always.

Let's just rip this out, since it hasn't worked and mixedcontent support has been dead for a while in Chrome (and FF 23+, and Opera 23+).

In the future, we should consider allowing Chrome users to enable mixedcontent rules, similar to the FF behavior.

Signed-off-by: Nick Semenkovich [email protected]

Because of the IIFE (immediately-invoked function expression) surrounding `localPlatformRegexp`,
it's never worked. `this.userAgent` is undefined during the execution, and the else is always
taken, resulting in `chromium` being the platform always.

Signed-off-by: Nick Semenkovich <[email protected]>
@semenko semenko added the chrome label Jan 22, 2016
@semenko
Copy link
Contributor Author

semenko commented Jan 23, 2016

@jsha for review, unless anyone else wants to look at the chrome code :)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

t should be scoped inside the for loop, right?

@jsha
Copy link
Member

jsha commented Jan 25, 2016

LGTM except for that one nit.

Signed-off-by: Nick Semenkovich <[email protected]>
@semenko
Copy link
Contributor Author

semenko commented Jan 25, 2016

Fixed -- thanks!

@semenko
Copy link
Contributor Author

semenko commented Jan 25, 2016

Merging per LGTM above.

semenko added a commit that referenced this pull request Jan 25, 2016
Expand "use strict" use & drop (broken) old Opera mixedcontent support
@semenko semenko merged commit 1026134 into EFForg:master Jan 25, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants