Closed
Bug 1046885
Opened 10 years ago
Closed 10 years ago
Disable installing webapps in guest mode
Categories
(Firefox for Android Graveyard :: Web Apps (PWAs), defect)
Tracking
(firefox34 verified)
VERIFIED
FIXED
Firefox 34
Tracking | Status | |
---|---|---|
firefox34 | --- | verified |
People
(Reporter: wesj, Assigned: wesj)
References
Details
Attachments
(1 file)
4.07 KB,
patch
|
myk
:
review+
|
Details | Diff | Splinter Review |
You shouldn't be able to install webapps if you're in guest mode.
Comment 1•10 years ago
|
||
Yes please, we crash on application launch still (bug 973942).
Assignee | ||
Updated•10 years ago
|
Blocks: fennec-lockscreen
Assignee | ||
Comment 2•10 years ago
|
||
I wasn't sure the best place to do this. This disables installs in guest mode and provides an error message that the app store can show. It also disables the apps menu item.
I realized I should probably also disable the other menu items that I'm disabling in guest mode, downloads and extensions. That's in here too because I didn't want to upload three patches in three bugs.
Attachment #8471360 -
Flags: review?(myk)
Comment 3•10 years ago
|
||
Comment on attachment 8471360 [details] [diff] [review]
Patch
Review of attachment 8471360 [details] [diff] [review]:
-----------------------------------------------------------------
::: mobile/android/modules/WebappManager.jsm
@@ +90,5 @@
>
> _installApk: function(aMessage, aMessageManager) { return Task.spawn((function*() {
> + if (this.inGuestSession()) {
> + aMessage.error = Strings.GetStringFromName("webappsDisabledInGuest"),
> + aMessageManager.sendAsyncMessage("Webapps:Install:Return:KO", aMessage);
This is consistent with the error messages elsewhere in WebappManager.jsm, but I just noticed that it's inconsistent with the ones in Webapps.jsm, which are all underscore-separated codes like "INVALID_MANIFEST_CONTENT_TYPE". I wonder if we should change these too.
Attachment #8471360 -
Flags: review?(myk) → review+
Assignee: nobody → wjohnston
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 34
Updated•10 years ago
|
Status: RESOLVED → VERIFIED
status-firefox34:
--- → verified
Flags: qe-verify-
OS: Linux → Android
Hardware: x86_64 → ARM
Version: unspecified → Trunk
Updated•4 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•