ubuntu-webapps-bugs team mailing list archive
-
ubuntu-webapps-bugs team
-
Mailing list archive
-
Message #03253
[Bug 1470190] [NEW] Sort out class construction
Public bug reported:
As QML doesn't have any concept of construct parameters (any property
can be set whilst an object is being constructed) and Oxide needs
construct parameters in some cases (eg, WebView.context because we need
a BrowserContext to construct WebContents, and WebContext.dataPath
because we need a data path before we can construct a BrowserContext),
we currently have a fair bit of code that handles this oddity in Oxide.
However, this code is scattered around various places - eg, for WebView,
it's in oxide::WebView and OxideQQuickWebView. For WebContext, it's in
oxide::qt::WebContext. For UserScript, it's in
OxideQQuickUserScriptPrivate. Given that oxide::qt::WebView no longer
subclasses oxide::WebView (it's a client of it), it should be easier to
refactor this code all in to the same layer.
As this is a limitation of QML, ideally this code would be refactored in
to the classes in qt/quick/
** Affects: oxide
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
WebApps bug tracking, which is subscribed to Oxide.
https://bugs.launchpad.net/bugs/1470190
Title:
Sort out class construction
Status in Oxide Webview:
New
Bug description:
As QML doesn't have any concept of construct parameters (any property
can be set whilst an object is being constructed) and Oxide needs
construct parameters in some cases (eg, WebView.context because we
need a BrowserContext to construct WebContents, and
WebContext.dataPath because we need a data path before we can
construct a BrowserContext), we currently have a fair bit of code that
handles this oddity in Oxide.
However, this code is scattered around various places - eg, for
WebView, it's in oxide::WebView and OxideQQuickWebView. For
WebContext, it's in oxide::qt::WebContext. For UserScript, it's in
OxideQQuickUserScriptPrivate. Given that oxide::qt::WebView no longer
subclasses oxide::WebView (it's a client of it), it should be easier
to refactor this code all in to the same layer.
As this is a limitation of QML, ideally this code would be refactored
in to the classes in qt/quick/
To manage notifications about this bug go to:
https://bugs.launchpad.net/oxide/+bug/1470190/+subscriptions
Follow ups
References