Merge lp:~mterry/unity8/briefly-inactive into lp:unity8

Proposed by Michael Terry on 2015-12-14
Status: Merged
Approved by: Josh Arenson on 2015-12-15
Approved revision: 2100
Merged at revision: 2118
Proposed branch: lp:~mterry/unity8/briefly-inactive
Merge into: lp:unity8
Diff against target: 66 lines (+26/-4)
2 files modified
qml/Greeter/Greeter.qml (+1/-1)
tests/qmltests/Greeter/tst_Greeter.qml (+25/-3)
To merge this branch: bzr merge lp:~mterry/unity8/briefly-inactive
Reviewer Review Type Date Requested Status
Daniel d'Andrada (community) Abstain on 2015-12-16
Josh Arenson 2015-12-14 Approve on 2015-12-15
PS Jenkins bot continuous-integration Needs Fixing on 2015-12-14
Review via email: mp+280492@code.launchpad.net

Commit Message

Stop the emergency dialer from accidentally exposing the mtp service.

Description of the Change

 * Are there any related MPs required for this MP to build/function as expected? Please list.
 No

 * Did you perform an exploratory manual test run of your code change and any related functionality?
 Yes

 * Did you make sure that your branch does not contain spurious tags?
 Yes

 * If you changed the packaging (debian), did you subscribe the ubuntu-unity team to this MP?
 NA

 * If you changed the UI, has there been a design review?
 NA

To post a comment you must log in.
PS Jenkins bot (ps-jenkins) wrote :

FAILED: Continuous integration, rev:2100
http://jenkins.qa.ubuntu.com/job/unity8-ci/6941/
Executed test runs:
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-vivid-touch/5759
    FAILURE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-xenial-touch/356/console
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/unity-phablet-qmluitests-vivid/1652
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/unity8-qmluitest-xenial-amd64/355
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-vivid-amd64-ci/1547
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-vivid-i386-ci/1547
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-xenial-amd64-ci/354
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-xenial-i386-ci/353
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-runner-vivid-touch/4470
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-vivid-armhf/5772
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-vivid-armhf/5772/artifact/work/output/*zip*/output.zip
    SUCCESS: http://s-jenkins.ubuntu-ci:8080/job/touch-flash-device/26040
    FAILURE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-runner-xenial-touch/131/console
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-xenial-armhf/355
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-xenial-armhf/355/artifact/work/output/*zip*/output.zip
    SUCCESS: http://s-jenkins.ubuntu-ci:8080/job/touch-flash-device/26042

Click here to trigger a rebuild:
http://s-jenkins.ubuntu-ci:8080/job/unity8-ci/6941/rebuild

review: Needs Fixing (continuous-integration)
Josh Arenson (josharenson) wrote :

* Did you perform an exploratory manual test run of the code change and any related functionality?
Yes

 * Did CI run pass?
No, SDK issues that I believe are fixed in another branch

 * Did you make sure that the branch does not contain spurious tags?
Yes, clean

Looks good to me, resolves the issue. Would be nice if the dialer started faster (or at least provided feedback sooner). Unrelated to this branch/bug though.

review: Approve
Daniel d'Andrada (dandrader) wrote :

Could you please format that commit message so that it starts with "A single-line summary or short description of the change (something no longer than 80 or 90 chars)", as explained here:

https://wiki.ubuntu.com/Process/Merges/Checklists/Unity8

review: Needs Fixing
Michael Terry (mterry) wrote :

Done.

Daniel d'Andrada (dandrader) wrote :

Thanks

review: Abstain

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'qml/Greeter/Greeter.qml'
2--- qml/Greeter/Greeter.qml 2015-11-04 14:57:33 +0000
3+++ qml/Greeter/Greeter.qml 2015-12-14 18:09:22 +0000
4@@ -33,7 +33,7 @@
5 // How far to offset the top greeter layer during a launcher left-drag
6 property real launcherOffset
7
8- readonly property bool active: shown || hasLockedApp
9+ readonly property bool active: required || hasLockedApp
10 readonly property bool fullyShown: loader.item ? loader.item.fullyShown : false
11
12 // True when the greeter is waiting for PAM or other setup process
13
14=== modified file 'tests/qmltests/Greeter/tst_Greeter.qml'
15--- tests/qmltests/Greeter/tst_Greeter.qml 2015-09-14 07:47:24 +0000
16+++ tests/qmltests/Greeter/tst_Greeter.qml 2015-12-14 18:09:22 +0000
17@@ -71,9 +71,9 @@
18 }
19
20 SignalSpy {
21- id: emergencyCallSpy
22+ id: activeChangedSpy
23 target: loader.item
24- signalName: "emergencyCall"
25+ signalName: "activeChanged"
26 }
27
28 GSettings {
29@@ -142,7 +142,7 @@
30 resetLoader();
31 teaseSpy.clear();
32 sessionStartedSpy.clear();
33- emergencyCallSpy.clear();
34+ activeChangedSpy.clear();
35 viewShowMessageSpy.clear();
36 viewShowPromptSpy.clear();
37 viewShowLastChanceSpy.clear();
38@@ -471,6 +471,28 @@
39 tryCompare(view, "delayMinutes", 0);
40 }
41
42+ function test_activeIsConstantDuringLockedApp() {
43+ // Regression test for bug 1525981: if we flicker active state even
44+ // briefly, the mpt-server will allow access to the device's drive.
45+
46+ selectUser("has-password");
47+ verify(greeter.active);
48+
49+ // Test opening a locked app
50+ greeter.lockedApp = "test-app";
51+ greeter.notifyAppFocused("test-app");
52+ verify(greeter.hasLockedApp);
53+ verify(!greeter.shown);
54+
55+ // Test going back to greeter from that locked app
56+ LightDM.Greeter.showGreeter();
57+ verify(!greeter.hasLockedApp);
58+ verify(greeter.shown);
59+
60+ // Active state should never have changed
61+ compare(activeChangedSpy.count, 0);
62+ }
63+
64 function test_dbusRequestAuthenticationUser() {
65 selectUser("no-password");
66 LightDM.Greeter.requestAuthenticationUser("has-password");

Subscribers

People subscribed via source and target branches