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

Remove the Firefox extension building code. #9566

Merged
merged 1 commit into from
Apr 3, 2018

Conversation

brendandahl
Copy link
Contributor

Firefox no longer supports this legacy extension and it is a pain to
sync changes from here and mozilla central.

There's still a bit more cleanup we could do for locale's, but I'd like to leave that for a follow up bug.

@timvandermeij
Copy link
Contributor

timvandermeij commented Mar 15, 2018

I think that after this lands we also need to update both bots so that links to the extension are no longer in the previews, update the wiki and check if any add-on issues can be closed or redirected upstream.

Firefox still maintains its own version of the extension upstream, which is embedded in each Firefox release, right? (It will probably become a WebExtension anyway, and we also have an open issue for that here too.)

Copy link
Collaborator

@Snuffleupagus Snuffleupagus left a comment

Choose a reason for hiding this comment

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

While I completely understand, and agree with, the reasoning behind this PR there's one important caveat to consider: Note how we're currently handling preferences in the extension and, most importantly, the mozilla-central code.

Currently we're simply bundling https://github.com/mozilla/pdf.js/blob/master/web/default_preferences.json into the relevant files using the preprocessor; see https://github.com/mozilla/pdf.js/pull/9566/files#diff-fac62551eadfe79f141900988b8e8a8dL80 and https://github.com/mozilla/pdf.js/pull/9566/files#diff-c64446a1f7e4337255356cd285b15ca5L33.

This (currently) means that if any changes are made to the default_preferences.json file, those are automatically mirrored to the relevant mozilla-central files.

If we completely remove this code from the GitHub repo it would have the effect of making any preference changes a two-step process, where you'd need to also submit a mozilla-central patch simultaneously for the preference changes.

Edit: Please see PR #9571 for one possible way of addressing these issues.

@brendandahl
Copy link
Contributor Author

Firefox still maintains its own version of the extension upstream, which is embedded in each Firefox release, right? (It will probably become a WebExtension anyway, and we also have an open issue for that here too.)

Yeah.

@brendandahl
Copy link
Contributor Author

@Snuffleupagus good to go now?

@Snuffleupagus
Copy link
Collaborator

@Snuffleupagus good to go now?

We probably need to do one more mozilla-central update first, to sync the changes from PR #9571, but after that we should be good here :-)

Copy link
Member

@Rob--W Rob--W left a comment

Choose a reason for hiding this comment

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

(It will probably become a WebExtension anyway, and we also have an open issue for that here too.)

That is #8533.

README.md Outdated
+ Please note that the extension is *not* guaranteed to be compatible with Firefox versions that are *older* than the current Nightly version, see the [Release Calendar](https://wiki.mozilla.org/RapidRelease/Calendar#Past_branch_dates).

+ The extension *may* also work in Seamonkey, provided that it is based on a Firefox version as above (see [Which version of Firefox does SeaMonkey 2.x correspond with?](https://wiki.mozilla.org/SeaMonkey/FAQ#General)), but we do *not* guarantee compatibility.
PDF.js is built into version 19+ of Firefox
Copy link
Member

Choose a reason for hiding this comment

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

Add a period at the end.

gulpfile.js Outdated
preprocessJS(FIREFOX_CONTENT_DIR + 'PdfjsChromeUtils.jsm', defines, true)
.pipe(replace(/\bPDFJSSCRIPT_PREF_PREFIX\b/g, MOZCENTRAL_PREF_PREFIX))
.pipe(gulp.dest(MOZCENTRAL_CONTENT_DIR)),
.pipe(gulp.dest(MOZCENTRAL_CONTENT_DIR))
Copy link
Member

Choose a reason for hiding this comment

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

Add a comma at the end.

Copy link
Contributor

@yurydelendik yurydelendik left a comment

Choose a reason for hiding this comment

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

LGTM: I think we need to remove that from gulp web (https://github.com/brendandahl/pdf.js/blob/1c3986a8e21ef8d1204fe0d8f465a4a51f03599c/gulpfile.js#L1071) and remove extension signing from botio

@brendandahl brendandahl force-pushed the remove-ff-ext branch 2 times, most recently from c6e4270 to 17bdad0 Compare March 30, 2018 23:15
Firefox no longer supports this legacy extension and it is a pain to
sync changes from here and mozilla central.
Copy link
Contributor

@timvandermeij timvandermeij left a comment

Choose a reason for hiding this comment

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

Looks good to me.

@brendandahl
Copy link
Contributor Author

/botio-linux preview
(test botio changes)

@pdfjsbot
Copy link

pdfjsbot commented Apr 3, 2018

From: Bot.io (Linux m4)


Received

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

Live output at: http://54.67.70.0:8877/3ee839408e98f19/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Apr 3, 2018

From: Bot.io (Linux m4)


Success

Full output at http://54.67.70.0:8877/3ee839408e98f19/output.txt

Total script time: 2.31 mins

Published

@brendandahl brendandahl merged commit a7a034d into mozilla:master Apr 3, 2018
movsb pushed a commit to movsb/pdf.js that referenced this pull request Jul 14, 2018
Remove the Firefox extension building code.
moz-v2v-gh pushed a commit to mozilla/gecko-dev that referenced this pull request Jun 19, 2023
… files. r=pdfjs-reviewers,calixte

The `PREF_PREFIX` handling is a left-over from years ago, back when we
built an *old-style* Firefox extension in the PDF.js project.
Given that this was removed over five years ago, see
mozilla/pdf.js#9566, we should be able to slightly simplify preference names now.

Differential Revision: https://phabricator.services.mozilla.com/D181370
ErichDonGubler pushed a commit to erichdongubler-mozilla/firefox that referenced this pull request Jun 20, 2023
… files. r=pdfjs-reviewers,calixte

The `PREF_PREFIX` handling is a left-over from years ago, back when we
built an *old-style* Firefox extension in the PDF.js project.
Given that this was removed over five years ago, see
mozilla/pdf.js#9566, we should be able to slightly simplify preference names now.

Differential Revision: https://phabricator.services.mozilla.com/D181370
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants