Skip to content

[Bug]: For how long chrome.webvieTag will be available in Electron, even if is already "deprecated" in Google Chrome docs ?  #34356

Closed

Description

@raphael10-collab

Preflight Checklist

Electron Version

19.0.0

What operating system are you using?

Ubuntu

Operating System Version

Ubuntu 20.04 Desktop

What arch are you using?

x64

Last Known Working Electron version

No response

Expected Behavior

Continue to use webviewTag or replace it with equivalent API

Actual Behavior

May be I reached a wrong google webpage, but it looks like that chrome.webviewTag is already a deprecated API : https://developer.chrome.com/docs/extensions/reference/webviewTag/

If this is the case, why webviewTag is still deployed in Electron ?

Testcase Gist URL

No response

Additional Information

The problem in a nutshell is the following: in the Electron docs it is stated that : " it's not guaranteed that the WebView API will remain available in future versions of Electron" . And this while in the Chrome Developers Docs webviewTag looks ALREADY "deprecated".

My main question is: for how long chrome.webviewTag will be available in Electron, even if, if I'm not wrong, it is ALREADY considered "deprecated" in Google Chrome docs ?
For the next 2 / 3/ 5 or 10 releases ?
Since the frequency of new Electron releases is, luckily, accelerated, this is a very important point

Activity

  1. changed the title [-][Bug]: it looks like that `chrome.webviewTag` is already a `deprecated API` for google chrome[/-] [+][Bug]: For how long `chrome.webvieTag` will be available in Electron, even if is already `"deprecated"` in Google Chrome docs ? [/+] on May 26, 2022
  2. VerteDinde commented on May 30, 2022

    @VerteDinde
    Member

    Hey @raphael10-collab, thanks for asking this! The honest answer to your question is "we don't know." As of this time, there aren't any plans to remove webviewTag on Electron's side. However, webviewTag is is part of the deprecated Chrome Apps platform - as such, Chrome could decide to remove it or drop support at any time. According to this timeline outlined by Chrome itself, Chrome is planning to end support for Chrome Apps for all customers next month, June 2022: https://blog.chromium.org/2020/01/moving-forward-from-chrome-apps.html This isn't a guarantee that the element will be removed then, but I think it should be seen as a warning.

    My recommendation to you would be to remove any chrome.webviewTag dependencies in your apps as soon as possible, while the API is deprecated, but still available. Chrome included a migration guide for appis using the Chrome Apps platform API here: https://developer.chrome.com/docs/apps/migration/

    I hope this helps you! Since this issue doesn't represent a task needing to be completed, I'm going to close it, but please feel free to ask in our Discord if you have more questions - we have many active help channels and mentors, as well as fellow devs, who can help you out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions