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] Upstream changes from: Bug 1356569 - Remove optional trailing parameters (issue 8310) #8311

Merged
merged 1 commit into from
Apr 18, 2017

Conversation

Snuffleupagus
Copy link
Collaborator

In https://bugzilla.mozilla.org/show_bug.cgi?id=1355216, the third parameter of Services.obs.addObserver was made optional.
However, omitting it in Firefox versions without that patch causes failures that completely prevents the addon from working (it won't even load).

As far as I can tell, there isn't any way to detect ahead of time if the third parameter can be safely omitted, hence we're forced to fallback to manually checking the version number :-(

Note: Since the PdfJs.jsm file is only used in the MOZCENTRAL build, we at least don't need to add any compatibility hacks there.

Fixes #8310.

…trailing parameters (issue 8310)

In https://bugzilla.mozilla.org/show_bug.cgi?id=1355216, the *third* parameter of `Services.obs.addObserver` was made optional.
However, omitting it in Firefox versions *without* that patch causes failures that completely prevents the addon from working (it won't even load).

As far as I can tell, there isn't *any* way to detect ahead of time if the third parameter can be safely omitted, hence we're forced to fallback to manually checking the version number :-(

*Note:* Since the `PdfJs.jsm` file is only used in the `MOZCENTRAL` build, we at least don't need to add any compatibility hacks there.
@yurydelendik
Copy link
Contributor

Looks good, thanks.

@Snuffleupagus Snuffleupagus deleted the bug-1356569 branch April 18, 2017 19:33
movsb pushed a commit to movsb/pdf.js that referenced this pull request Jul 14, 2018
[Firefox addon] Upstream changes from: Bug 1356569 - Remove optional trailing parameters (issue 8310)
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.

2 participants