Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ArticleView: expose only minimal API to JavaScript #88

Merged
merged 2 commits into from
Jun 3, 2022

Conversation

xiaoyifang
Copy link
Owner

No description provided.

vedgy and others added 2 commits June 2, 2022 13:51
https://doc.qt.io/archives/qt-5.5/qtwebkit-bridge.html#internet-security
Qt WebKit Bridge documentation recommends:
  When exposing native objects to an open web environment, it is
  important to understand the security implications. Think whether the
  exposed object enables the web environment access things that
  shouldn't be open, and whether the web content loaded by that web page
  comes from a trusted source.

The author of Qt WebChannel has said the following in a talk that
introduced this Qt module (WebKit Bridge replacement for Qt WebEngine):
  My suggestion here is to write dedicated QObjects with a slim, minimal
  API that only have the signals and methods that you deem safe to be
  used from the outside.
- see a comment under https://redirect.invidious.io/watch?v=KnvnTi6XafA
the features introduced in upstream ,to expose minimum api is already implemented in webchannel

so all the implementation in the upstream has been ignored.
@xiaoyifang xiaoyifang merged commit 006c45e into staged Jun 3, 2022
@xiaoyifang xiaoyifang deleted the goldendict-master branch June 5, 2022 01:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants