joelspadin / ClassicTabs

Opera 15+ extension to bring back tab behaviors from Opera 12.
BSD 2-Clause "Simplified" License
25 stars 5 forks source link

console error #10

Closed nachoman42 closed 10 years ago

nachoman42 commented 10 years ago

Using Opera 20.0 with Developer Tools open, I always see the following console error when the ClassicTabs extension is enabled:

Denying load of chrome-extension://gbekmpnpfkkijbodegokaigmhedbbkmg/js/include/keys.js.map. Resources must be listed in the web_accessible_resources manifest key in order to be loaded by pages outside the extension.

I don't think it affects anything, but it's distracting when using the console.

joelspadin commented 10 years ago

That message is triggered by the dev tools themselves, so it isn't really an issue with the extension. I write the extension code in typescript, which generates the .js file plus a file which maps the line numbers in the generated code back to the source for easy debugging. The .js file contains a comment referencing this map file, and the dev tools see it and try to load it. Opera has asked that I remove the map files from the extension to make it easier for them to review, and so the dev tools fail to load the map file because it isn't there and isn't in the list of files he extension is allowed to access.

I can see if there's a way to get TypeScript to omit the map file comment for my next release though.