-
Notifications
You must be signed in to change notification settings - Fork 401
Quantum compat is true for all webext / moz addons #3896
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
Conversation
| const addon = createInternalAddon(createFakeAddon({ | ||
| files: [{ | ||
| is_webextension: true, | ||
| platform: OS_ANDROID, |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😞
| 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`. |
There was a problem hiding this comment.
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, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😞
src/core/utils/compatibility.js
Outdated
| // These checks are fragile because future mozilla-signed extensions | ||
| // may not be Quantum compatible. | ||
| return file.is_webextension || file.is_mozilla_signed_extension; | ||
| }); |
There was a problem hiding this comment.
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 Report
@@ 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
Continue to review full report at Codecov.
|
willdurand
left a comment
There was a problem hiding this 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
Fixes mozilla/addons#11173
I tested with some dev data. The following should all show up as compatible with Quantum:
This should show up as incompatible with Quantum: