Skip to content
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

Fix TextEncoderLite in old browsers #3687

Merged
merged 2 commits into from
Mar 28, 2018
Merged

Fix TextEncoderLite in old browsers #3687

merged 2 commits into from
Mar 28, 2018

Conversation

himdel
Copy link
Contributor

@himdel himdel commented Mar 27, 2018

This fixes a bug in older browsers, introduced by #3682

#3682 adds code that uses TextEncoder in browsers which support it, and TextEncoderLite in browser which don't.

But text-encoder-lite in version 1.0.1 only ever exports the decoder part.
This was fixed in 1.0.2 .. but that one never got released.

So.. updating to the new version (by commit), and adding a spec that will use the Lite version (because phantomjs doesn't have TextEncoder).

Ping @mzazrivec ;)

+ require the compat pack from jasmine
(doing this in jasmine to test that TextEncoderLite actually works)
version 1.0.1 only ever exports TextDecoderLite
version 1.0.2 fixed this, but was not released yet
@miq-bot
Copy link
Member

miq-bot commented Mar 27, 2018

Checked commits https://github.com/himdel/manageiq-ui-classic/compare/56d42d95866730faf8e0fa6e9dca7df08bbfbdb8~...a9f34d1961f1ceab7311b425cf82b2423b1784f7 with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0
0 files checked, 0 offenses detected
Everything looks fine. ⭐

@mzazrivec mzazrivec self-assigned this Mar 28, 2018
@mzazrivec mzazrivec added this to the Sprint 83 Ending Apr 9, 2018 milestone Mar 28, 2018
@mzazrivec mzazrivec merged commit 8897622 into ManageIQ:master Mar 28, 2018
simaishi pushed a commit that referenced this pull request Apr 2, 2018
@simaishi
Copy link
Contributor

simaishi commented Apr 2, 2018

Gaprindashvili backport details:

$ git log -1
commit 8636bd6d68e5252f97f6cea5995c7f4d6431192b
Author: Milan Zázrivec <mzazrivec@redhat.com>
Date:   Wed Mar 28 13:07:47 2018 +0200

    Merge pull request #3687 from himdel/fixup3682
    
    Fix TextEncoderLite in old browsers
    (cherry picked from commit 88976220f3481efe41da7274169b1923226e3b74)
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1562797

@simaishi
Copy link
Contributor

Backported to Fine via #3711

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants