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

[Firefox addon] Change the minimum supported version to Firefox 38 and remove a bunch old no longer necessary fallback code #7400

Merged
merged 1 commit into from
Jun 15, 2016

Conversation

Snuffleupagus
Copy link
Collaborator

@Snuffleupagus Snuffleupagus commented Jun 10, 2016

From the discussion in issue #7386, it wasn't really clear if we can restrict addon support to Firefox 45 (i.e. the version that corresponds to the current ESR version).

However, we have a bunch of code for very old Firefox versions. Hence this patch changes the minimum supported version to Firefox 38 (which was released on 2015-05-12, and correspond to the previous ESR version), and removes code that only applies to old Firefox versions.

Regardless what we end up deciding regarding addon support for previous Firefox versions, given the amount of code that even the Firefox >= 38 condition lets us remove, I certainly think that there is value in doing this.


This change is Reviewable

@Snuffleupagus
Copy link
Collaborator Author

/botio-linux preview

@pdfjsbot
Copy link

From: Bot.io (Linux)


Received

Command cmd_preview from @Snuffleupagus received. Current queue size: 0

Live output at: http://107.21.233.14:8877/9324528f42b27f6/output.txt

@timvandermeij
Copy link
Contributor

I totally agree that we should do this.

@yurydelendik
Copy link
Contributor

Looks good with comment with the 'getCodebasePrincipal' issue addressed.


Reviewed 4 of 4 files at r1.
Review status: all files reviewed at latest revision, 1 unresolved discussion.


extensions/firefox/content/PdfStreamConverter.jsm, line 1045 [r1] (raw file):

        ssm.createCodebasePrincipal(uri, aRequest.loadInfo.originAttributes);
    } else {
      resourcePrincipal = ssm.getNoAppCodebasePrincipal(uri);

Use 'getCodebasePrincipal' instead here (and comment above), see https://bugzilla.mozilla.org/show_bug.cgi?id=806587


Comments from Reviewable

…d remove a bunch old no longer necessary fallback code

From the discussion in issue 7386, it wasn't really clear if we can restrict addon support to Firefox `45` (i.e. the version that corresponds to the *current* ESR version).

However, we have a bunch of code for *very* old Firefox versions. Hence this patch changes the minimum supported version to Firefox `38` (which was released on `2015-05-12`, and correspond to the *previous* ESR version), and removes code that only applies to old Firefox versions.

Regardless what we end up deciding regarding addon support for previous Firefox versions, given the amount of code that even the Firefox `>= 38` condition lets us remove, I certainly think that there is value in doing this.
@Snuffleupagus
Copy link
Collaborator Author

Review status: all files reviewed at latest revision, 1 unresolved discussion.


extensions/firefox/content/PdfStreamConverter.jsm, line 1045 [r1] (raw file):

Previously, yurydelendik (Yury Delendik) wrote…

Use 'getCodebasePrincipal' instead here (and comment above), see https://bugzilla.mozilla.org/show_bug.cgi?id=806587

Done, thanks for the review!

Comments from Reviewable

@yurydelendik
Copy link
Contributor

/botio-windows preview

@pdfjsbot
Copy link

From: Bot.io (Windows)


Received

Command cmd_preview from @yurydelendik received. Current queue size: 0

Live output at: http://107.22.172.223:8877/19c76ba575d6945/output.txt

@yurydelendik yurydelendik merged commit a0a6e6d into mozilla:master Jun 15, 2016
@yurydelendik
Copy link
Contributor

Thank you for the patch.

@Snuffleupagus Snuffleupagus deleted the addon-minimum-firefox38 branch June 15, 2016 12:47
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.

4 participants