5

I'm struggling to find a definitive answer to this.

Chrome Apps are being deprecated across all OS except Chrome OS.

<webview> is only available in Chrome Apps?

This means I can't or shouldn't use <webview> in an extension (if possible)?

Tim
  • 1,615
  • 1
  • 14
  • 17

1 Answers1

6

As per further research, testing, and comments:

<webview> are definitely not useable in extensions, only in Apps.

Tim
  • 1,615
  • 1
  • 14
  • 17
  • 3
    But this really makes no sense, because on google's extensions page it says: "Warning: Starting in version 57, Chrome will no longer allow external web content (including embedded frames and scripts) inside sandboxed pages. Please use a webview instead." - https://developer.chrome.com/extensions/manifest/sandbox . And if you try to include webview in extension manifest file, you get error message saying that webview is supported only in apps. – Josip Lukacevic Oct 24 '18 at 08:31
  • I spent some time debugging only because I didn't get an error message like yours. My error message was: You do not have permission to use the webview element. Be sure to declare the "webview" permission in your manifest file. – liz Nov 14 '19 at 01:37
  • 1
    @liz or anybody else reading this get a webview to work in an extension? – Merrick May 25 '21 at 19:27