Closed Bug 1219237 Opened 9 years ago Closed 9 years ago

WebExtension - accessing accessible resource return an error

Categories

(WebExtensions :: Untriaged, defect)

43 Branch
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: ido.y, Unassigned)

Details

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"
Component: Add-ons Manager → WebExtensions
btw, i do succeed to access the resource from the browser
moz-extension://EXTENSION_GUID/SOME_URL
fixed in v44.0a2
Status: UNCONFIRMED → RESOLVED
Closed: 9 years ago
Resolution: --- → INVALID
Product: Toolkit → WebExtensions
You need to log in before you can comment on or make changes to this bug.