Skip to content
This repository was archived by the owner on Nov 6, 2023. It is now read-only.

Fix allowing global installation of Firefox extension#255

Merged
diracdeltas merged 2 commits intomasterfrom
unknown repository
May 23, 2014
Merged

Fix allowing global installation of Firefox extension#255
diracdeltas merged 2 commits intomasterfrom
unknown repository

Conversation

@ghost
Copy link
Copy Markdown

@ghost ghost commented Apr 26, 2014

This commit fixes an issue (#246) whereby the Firefox extension does not work if installed globally.

After some research, it is determined that the issue is caused by hardcoding of rulesets.sqlite's (the master rules database's) location. It is hardcoded as paths ["extensions", "https-everywhere@eff.org", "defaults", "rulesets.sqlite"] from the profile directory ("ProfD"). Unfortunately, if the extension is not installed in the profile directory (installed globally, for example), the database could not be loaded and therefore no requests would be converted to HTTPS.

This commit fixes the issue by improving the way the extension locate the database. The database is now included in the chrome:// namespace by modifying the chrome.manifest file, and its location is determined by converting the chrome:// URL with the chromeToPath() function.

@diracdeltas
Copy link
Copy Markdown
Contributor

Hi, this looks good but one request: could you put the comments from #246 into the commit messages? Otherwise it's very difficult for someone looking at this later to figure out what's going on.

@ghost
Copy link
Copy Markdown
Author

ghost commented Apr 29, 2014

Done. I have included the comments in the commit message.

@jsha
Copy link
Copy Markdown
Member

jsha commented May 22, 2014

Yan, can you merge this pull request in time for the next release?

diracdeltas added a commit that referenced this pull request May 23, 2014
Fix allowing global installation of Firefox extension
@diracdeltas diracdeltas merged commit e71a964 into EFForg:master May 23, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants