https://bugs.kde.org/show_bug.cgi?id=279664

--- Comment #7 from Thomas Fischer <fisc...@unix-ag.uni-kl.de> ---
IHMO it fits quite nicely close to where settings for proxies are made, i.e. in
KProtocolManager. There is already a proxyForUrl function to determine a proxy
for an URL. Why not add "secureProtocolRewrite" function that, given a QUrl,
returns a rewritten QUrl. For unknown/unsupported URLs, it just passes them
back. The documentation would read: "Tries to rewrite a given QUrl to use a
more secure protocol. Currently, only rules of 'HTTPS Everywhere', provided by
the Electronic Frontier Foundation, will be used to rewrite known HTTP URLs to
equivalent HTTPS URLs."

As for performance, maybe a helper script can be used to pull the lastest EFF
rules from GitHub and write out a C++ class containing the data hard-coded and
an efficient read-only data structure for fast lookups. Both the script and the
generated C++ would reside in KDE's repository, requiring to run the script
only once EFF updates the rules or we redesign the hard-coded data structure.
EFF's rules contain even test URLs that would allow to write automated test
classes as well.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to