Skip to content
Commit 816e5a75 authored by Stefano Crocco's avatar Stefano Crocco
Browse files

Inject scripts in parts created by WebEnginePage::createWindow

Previously, when a new WebEnginePart was created from
WebEnginePage::createWindow, the associated page wouldn't work with
KWallet because the required javascript scripts wouldn't have been
injected in it. This happened because the scripts were injected from the
part constructor, but the page was later changed (from
NewWindowPage::acceptNavigationRequest) and the original page was
discarded. This meant that only the discarded page would end up with the
scripts, while the real page wouldn't have them.

To avoid this, the code to inject scripts has been moved to a separate
function which is called both by the part's constructor and from
NewWindowPage::acceptNavigationRequest.
parent 56bc69f5
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment