Web API and Web Engine

Supported web API

HTML, CSS, and JavaScript are the core web technologies to build web pages or web apps. HTML presents the structure of the pages or the application using markup and CSS formats the contents written in HTML such as colors, layouts, font, etc. JavaScript is a programming language for the web which has been standardized in the ECMAScript. Using HTML5, CSS3, and JavaScript, you can develop web apps for webOS TV.

webOS TV 1.0, 2.0, and 3.0

We provide specification charts that list methods, attributes, and events of HTML5, properties of CSS3, and features of JavaScript (ECMAScript features) which are currently supported by webOS TV and the webOS TV emulator. Note that two different engines are used for the internal web browser and web apps on webOS TV 1.0 and 2.0. Thus, we recommend that you check whether those APIs run as you expected on webOS TV or the emulator.
Download the Supported Standard Web APIs file.

webOS TV 4.0 and above

From webOS TV 4.0, we do not provide the charts any longer. Instead, we let you know web engines and its versions used on webOS TV.

Note: Chrome browser compatibility
You can check the compatible version of Chrome on Web APIs in Browser compatibility of each API. However, for some functions related to webOS TV platform, the compatibility may not agree.

Web engine

The web engine of the webOS TV platform provides an app programming environment for content providers and aggregators. The following table shows the web engine and its version for each webOS TV platform:

Platform versionRelease yearWeb engine
webOS TV 242024Chromium 108
webOS TV 232023Chromium 94
webOS TV 222022Chromium 87
webOS TV 6.x2021Chromium 79
webOS TV 5.x2020Chromium 68
webOS TV 4.x2018~2019Chromium 53
webOS TV 3.x2016~2017Chromium 38
webOS TV 2.x2015WebKit 538.2
webOS TV 1.x2014WebKit 537.41
Note: Web Engine of Browser Apps
webOS TV 1.x and 2.x use WebKit as a web engine; however, the browser apps of webOS TV 1.x and 2.x use Chromium 26 and 34, respectively.

You can check the webOS TV version on the TV menu or by using Luna API as follows:

  • Settings menu: Settings > General > TV Information > webOS TV version
  • Luna API: sdkVersion parameter in the getSystemInfo() method

The LG web browser engine supports cookies and saves cache for enhanced performance. The stored cache is used only while the web browser engine is running and is not used anymore once an app has been terminated. Note that only hosted web apps (HTTP/HTTPS scheme) can use cookies; the webOS TV platform does not support cookies on packaged web apps (file scheme).

userAgent string

A web app can get the string from the HTML DOM property,navigator.userAgent. The same string is included in the HTTP request User-Agent header. The userAgent string that corresponds to the LG browser engine of each webOS TV platform is as follows:

  • webOS TV 24
    Mozilla/5.0 (Web0S; Linux/SmartTV) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.5359.211 Safari/537.36 WebAppManager
  • webOS TV 23
    Mozilla/5.0 (Web0S; Linux/SmartTV) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.128 Safari/537.36 WebAppManager
  • webOS TV 22
    Mozilla/5.0 (Web0S; Linux/SmartTV) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36 WebAppManager
  • webOS TV 6.x
    Mozilla/5.0 (Web0S; Linux/SmartTV) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.79 Safari/537.36 WebAppManager
  • webOS TV 5.x
    Mozilla/5.0 (Web0S; Linux/SmartTV) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36 WebAppManager
  • webOS TV 4.x
    Mozilla/5.0 (Web0S; Linux/SmartTV) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.34 Safari/537.36 WebAppManager
  • webOS TV 3.x
    Mozilla/5.0 (Web0S; Linux/SmartTV) AppleWebKit/537.36 (KHTML, like Gecko) QtWebEngine/5.2.1 Chrome/38.0.2125.122 Safari/537.36 WebAppManager
  • webOS TV 2.x
    Mozilla/5.0 (Web0S; Linux/SmartTV) AppleWebKit/538.2 (KHTML, like Gecko) Large Screen WebAppManager Safari/538.2
  • webOS TV 1.x
    Mozilla/5.0 (Web0S; Linux/SmartTV) AppleWebKit/537.41 (KHTML, like Gecko) Large Screen WebAppManager Safari/537.41
No Headings