Skip to content

Conversation

@kumar303
Copy link
Contributor

@kumar303 kumar303 commented Nov 13, 2017

const addon = createInternalAddon(createFakeAddon({
files: [{
is_webextension: true,
platform: OS_ANDROID,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

When I added this, the old code was failing because of the desktop UA string. Oops.

Copy link
Member

Choose a reason for hiding this comment

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

😞

@kumar303 kumar303 requested a review from willdurand November 13, 2017 18:11
export const isQuantumCompatible = ({ addon }) => {
// HACK: we use a hardcoded User Agent string corresponding to MacOS/Firefox
// 57.0 to determine whether the given `addon` is compatible with Quantum.
// The OS is not important as far as it is not `iOS`.
Copy link
Member

Choose a reason for hiding this comment

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

haha, who wrote this comment? 😓

const addon = createInternalAddon(createFakeAddon({
files: [{
is_webextension: true,
platform: OS_ANDROID,
Copy link
Member

Choose a reason for hiding this comment

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

😞

// These checks are fragile because future mozilla-signed extensions
// may not be Quantum compatible.
return file.is_webextension || file.is_mozilla_signed_extension;
});
Copy link
Member

@willdurand willdurand Nov 13, 2017

Choose a reason for hiding this comment

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

The isWebExtension computed prop was already available. How do you feel about computing isMozillaSignedExtension in the reducer then?

@codecov-io
Copy link

codecov-io commented Nov 13, 2017

Codecov Report

Merging #3896 into master will decrease coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    mozilla/addons-frontend#3896      +/-   ##
==========================================
- Coverage   96.27%   96.27%   -0.01%     
==========================================
  Files         184      184              
  Lines        3838     3837       -1     
  Branches      782      782              
==========================================
- Hits         3695     3694       -1     
  Misses        123      123              
  Partials       20       20
Impacted Files Coverage Δ
src/core/types/addons.js 0% <ø> (ø) ⬆️
src/core/reducers/addons.js 98.24% <100%> (+0.06%) ⬆️
src/core/utils/compatibility.js 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e61cf88...8743964. Read the comment docs.

@kumar303 kumar303 requested a review from willdurand November 13, 2017 18:48
Copy link
Member

@willdurand willdurand left a comment

Choose a reason for hiding this comment

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

r+ if travis agrees

@kumar303 kumar303 merged commit a2bbd3c into mozilla:master Nov 13, 2017
@kumar303 kumar303 deleted the quantum-badge-3895 branch November 13, 2017 19:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Windows-only and Linux-only add-ons are flagged as incompatible with Quantum

3 participants