Merge lp:~mzanetti/reminders-app/workaround-oxide-race into lp:reminders-app

Proposed by Michael Zanetti
Status: Merged
Approved by: Riccardo Padovani
Approved revision: 484
Merged at revision: 486
Proposed branch: lp:~mzanetti/reminders-app/workaround-oxide-race
Merge into: lp:reminders-app
Diff against target: 89 lines (+19/-14)
4 files modified
push-helper.apparmor (+1/-1)
src/app/qml/reminders.qml (+16/-0)
src/app/qml/ui/EditNoteView.qml (+1/-1)
src/app/qml/ui/NoteView.qml (+1/-12)
To merge this branch: bzr merge lp:~mzanetti/reminders-app/workaround-oxide-race
Reviewer Review Type Date Requested Status
Ubuntu Phone Apps Jenkins Bot continuous-integration Approve
Riccardo Padovani Approve
Review via email: mp+270745@code.launchpad.net

Commit message

workaround oxide race condition

To post a comment you must log in.
484. By Michael Zanetti

merge trunk

Revision history for this message
Riccardo Padovani (rpadovani) wrote :

lgtm, thanks!

review: Approve
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :

PASSED: Continuous integration, rev:484
http://91.189.93.70:8080/job/reminders-app-ci/779/
Executed test runs:
    SUCCESS: http://91.189.93.70:8080/job/reminders-app-vivid-amd64-ci/201

Click here to trigger a rebuild:
http://91.189.93.70:8080/job/reminders-app-ci/779/rebuild

review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'push-helper.apparmor'
2--- push-helper.apparmor 2014-12-08 10:25:48 +0000
3+++ push-helper.apparmor 2015-09-10 20:58:32 +0000
4@@ -7,5 +7,5 @@
5 "calendar",
6 "webview"
7 ],
8- "policy_version": 1.2
9+ "policy_version": 1.3
10 }
11
12=== renamed file 'src/app/qml/components/Header.qml' => 'src/app/qml/components/NoteHeader.qml'
13=== modified file 'src/app/qml/reminders.qml'
14--- src/app/qml/reminders.qml 2015-09-08 18:10:48 +0000
15+++ src/app/qml/reminders.qml 2015-09-10 20:58:32 +0000
16@@ -27,6 +27,7 @@
17 import Ubuntu.OnlineAccounts.Client 0.1
18 import Ubuntu.PushNotifications 0.1
19 import Ubuntu.Content 1.0
20+import com.canonical.Oxide 1.5
21 import "components"
22 import "ui"
23
24@@ -491,6 +492,21 @@
25 }
26 }
27
28+ // FIXME: This is currently located here so it is always ready
29+ // when we're constructing a WebView. Due to bug
30+ // https://bugs.launchpad.net/oxide/+bug/1471779
31+ // there's a race condition when creating both at the same time
32+ WebContext {
33+ id: webContext
34+
35+ userScripts: [
36+ UserScript {
37+ context: 'reminders://interaction'
38+ url: Qt.resolvedUrl("ui/reminders-scripts.js");
39+ }
40+ ]
41+ }
42+
43 Column {
44 id: statusBar
45 anchors { left: parent.left; right: parent.right; top: parent.top; topMargin: units.gu(6)}
46
47=== modified file 'src/app/qml/ui/EditNoteView.qml'
48--- src/app/qml/ui/EditNoteView.qml 2015-07-25 01:52:22 +0000
49+++ src/app/qml/ui/EditNoteView.qml 2015-09-10 20:58:32 +0000
50@@ -131,7 +131,7 @@
51 width: parent.width
52 height: childrenRect.height
53
54- Header {
55+ NoteHeader {
56 id: header
57 note: root.note
58
59
60=== modified file 'src/app/qml/ui/NoteView.qml'
61--- src/app/qml/ui/NoteView.qml 2015-09-08 18:10:48 +0000
62+++ src/app/qml/ui/NoteView.qml 2015-09-10 20:58:32 +0000
63@@ -50,17 +50,6 @@
64 property bool dirty: false
65 }
66
67- WebContext {
68- id: webContext
69-
70- userScripts: [
71- UserScript {
72- context: 'reminders://interaction'
73- url: Qt.resolvedUrl("reminders-scripts.js");
74- }
75- ]
76- }
77-
78 Rectangle {
79 id: locationBar
80 y: noteTextArea.locationBarController.offset
81@@ -70,7 +59,7 @@
82 color: "white"
83 z: 2
84
85- Header {
86+ NoteHeader {
87 id: headerContent
88 note: root.note
89 editingEnabled: false

Subscribers

People subscribed via source and target branches