sailfishos / sailfish-browser

Sailfish Browser
https://github.com/sailfishos/sailfish-browser/wiki/Sailfish-Browser-wiki
Mozilla Public License 2.0
307 stars 87 forks source link

[browser] Pass back browsing context when web content requested new window. Fixes JB#56631 OMP#JOLLA-569 #961

Closed rainemak closed 2 years ago

rainemak commented 2 years ago

This commit renames webpage's setInitialTab to setInitialState and sets all initial state related attributes there. Setting initial state happens right before initialize() is called.

Browsing context is added to the tab and parent id has been moved to the tab so that those get carried to the initialization. This implies that parentId got removed from the methods and signals. Further, to QML side we only expose newTab(url) and only from C++ side we're calling newTab with parent id and browsing context.

This change requires https://github.com/sailfishos/qtmozembed/pull/30