Skip to content
This repository has been archived by the owner on Feb 25, 2023. It is now read-only.

Firefox #7

Merged
merged 8 commits into from
Jun 20, 2016
Merged

Firefox #7

merged 8 commits into from
Jun 20, 2016

Conversation

FooSoft
Copy link
Owner

@FooSoft FooSoft commented Jun 20, 2016

No description provided.

Gecko currently does not support chrome.storage.sync and
chrome.runtime.onInstalled. Use chrome.storage.local instead of
sync and ignore calls to onInstalled. The implication of not
having runtime.onInstalled is that the options page is not shown
on first-run.
We need to make a copy of the iteration variable in the for-of
loop so that the distinct values are available in the callback.
This silences warnings about the JSON files being ill-formed
Previously the contentdocument of the iFrame was opened and
document.write() was being used set the contents of the popup.
In Gecko, content scripts do not have the same security context
as of the embedded page, so the call to document.open() results in
a SecurityError.
Gecko did not implment the older caretRangeFromPoint() and instead
implemented the newer caretPositionFromPoint()
Permission is required to do XHR request to the domain. Otherwise
Gecko attempts to use CORS to negotiate the request, which AnkiConnect
does not expect.
@FooSoft FooSoft merged commit a0cdb5b into FooSoft:master Jun 20, 2016
@NOBLES5E NOBLES5E mentioned this pull request Jul 28, 2016
FooSoft added a commit that referenced this pull request Dec 24, 2016
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