← Back to team overview

ubuntu-webapps-bugs team mailing list archive

[Bug 1470190] Re: Sort out class construction

 

** Changed in: oxide
    Milestone: None => branch-1.11

** Changed in: oxide
       Status: New => Fix Released

** Changed in: oxide
     Assignee: (unassigned) => Chris Coulson (chrisccoulson)

-- 
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:
  Fix Released

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


References