Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Disable JavaScript execution in QML
Forum Updated to NodeBB v4.3 + New Features

Disable JavaScript execution in QML

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 3.7k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • I Offline
    I Offline
    ixSci
    wrote on last edited by
    #1

    Is it possible to disable all of the script execution inside the QML?
    It may be need to secure GUI plugins which vendor may allow to create for end users with the QML help. But this opportunity will be annihilated if there is no method to forbid execution of random code in QML.

    1 Reply Last reply
    0
    • T Offline
      T Offline
      tzander
      wrote on last edited by
      #2

      QML without javascript is like a painting without colors; its going to not be very interesting for most usecases.

      Moving code to the client either in javascript or in compiled C++ form should be similarly attacked; you need your security before a 3rd party's code lands on your target device.

      Disabling javascript is not going to give you the security you want.

      1 Reply Last reply
      0
      • I Offline
        I Offline
        ixSci
        wrote on last edited by
        #3

        Perhaps we have some GUI element which we draw with QML help. Suppose it has edit fields for private user data. If there is no JavaScript QML is still useful because every user can write its own QML and have some pretty GUI element. But if JavaScript is turned on then some malicious man can integrate information stealing and many other disastrous things. It can even have privilege elevation at the worst case!
        No one can do the same thing with already built C++ code with an acceptable cost.

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved