WebExtension - accessing accessible resource return an error

RESOLVED INVALID

Status

()

Toolkit
WebExtensions: Untriaged
RESOLVED INVALID
2 years ago
2 years ago

People

(Reporter: ido.y, Unassigned)

Tracking

43 Branch
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

2 years ago
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.80 Safari/537.36

Steps to reproduce:

i tried to access a resource using the following function
chrome.extension.getURL('SOME_URL')
this page is defined as accessible in the manifest by the following attribute
"web_accessible_resources": [
    "SOME_URL"
  ]


Actual results:

got the following error
ReferenceError: url is not defined
Stack trace:
api/<.extension.getURL@resource://gre/modules/ExtensionContent.jsm:88:7"


Expected results:

the url for the file in the extension "directory"

Updated

2 years ago
Component: Add-ons Manager → WebExtensions
(Reporter)

Comment 1

2 years ago
btw, i do succeed to access the resource from the browser
moz-extension://EXTENSION_GUID/SOME_URL
(Reporter)

Comment 2

2 years ago
fixed in v44.0a2
Status: UNCONFIRMED → RESOLVED
Last Resolved: 2 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.