Using Depreciated extension.getURL. Need to swap to runtime.getURL
Open
Beginner friendly
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 27k
- Forks
- 2.6k
- PR merge metrics
- No merged PRs in 30d
Description
The following is causing errors in browser. https://github.com/philc/vimium/blob/d742dfc6c939792461d53507b5ddc5041340346e/lib/utils.js#L53
Depreciation notice:
https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/extension/getURL
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at lib/utils.js around line 53, where the deprecated extension.getURL usage is linked in the issue. Read the MDN deprecation notice and update that usage to runtime.getURL. Done means the browser errors caused by the deprecated API no longer occur.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- web-dev
- Issue type
- Bug
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 78/100