Closed
Bug 896281
Opened 11 years ago
Closed 11 years ago
[guest] - Synced tabbed carry over from owner
Categories
(Firefox for Android Graveyard :: General, defect)
Tracking
(firefox25+ verified, firefox26+ verified, firefox27 verified, fennec25+)
VERIFIED
FIXED
Firefox 27
People
(Reporter: aaronmt, Assigned: bnicholson)
References
Details
Attachments
(2 files, 1 obsolete file)
1.08 KB,
patch
|
sriram
:
review+
akeybl
:
approval-mozilla-aurora+
akeybl
:
approval-mozilla-beta+
|
Details | Diff | Splinter Review |
7.97 KB,
patch
|
wesj
:
review+
akeybl
:
approval-mozilla-aurora+
akeybl
:
approval-mozilla-beta+
|
Details | Diff | Splinter Review |
Should entering guest mode hide synced tabs (both in the tab menu and on about:home)?
Flags: needinfo?(ibarlow)
Reporter | ||
Comment 2•11 years ago
|
||
Hide the banner on about:home too? (spaghetti-code?)
Comment 3•11 years ago
|
||
Yup
Reporter | ||
Updated•11 years ago
|
tracking-fennec: --- → ?
Updated•11 years ago
|
Assignee: nobody → bnicholson
tracking-fennec: ? → 25+
Assignee | ||
Comment 5•11 years ago
|
||
I assume we also want to remove the Sync pref from the settings menu?
Flags: needinfo?(ibarlow)
Assignee | ||
Comment 7•11 years ago
|
||
Attachment #803217 -
Flags: review?(sriram)
Updated•11 years ago
|
Attachment #803217 -
Flags: review?(sriram) → review+
Assignee | ||
Comment 8•11 years ago
|
||
The context in GeckoPreferences is not a GeckoApp, but we still need to know whether the active profile is a guest one or not. Determining that doesn't require a GeckoApp context, so I did a bit of code shifting in GeckoProfile to get what we want. GeckoProfile gets uglier every day, but this should work for now while those GeckoProfile refactor patches are in progress.
Attachment #803221 -
Flags: review?(wjohnston)
Assignee | ||
Comment 9•11 years ago
|
||
Minor cleanup.
Attachment #803221 -
Attachment is obsolete: true
Attachment #803221 -
Flags: review?(wjohnston)
Attachment #803224 -
Flags: review?(wjohnston)
Assignee | ||
Updated•11 years ago
|
Attachment #803217 -
Attachment description: Disable synced tab for guest session → Part 1: Disable synced tab for guest session
Comment 10•11 years ago
|
||
Comment on attachment 803224 [details] [diff] [review]
Part 2: Remove Sync pref for guest session, v2
>diff --git a/mobile/android/base/GeckoProfile.java b/mobile/android/base/GeckoProfile.java
> public static GeckoProfile get(Context context) {
> if (context instanceof GeckoApp) {
> // Check for a cached profile on this context already
> // TODO: We should not be caching profile information on the Activity context
> if (((GeckoApp)context).mProfile != null) {
> return ((GeckoApp)context).mProfile;
> }
>+ }
>
>- GeckoProfile guest = GeckoProfile.getGuestProfile(context);
>- // if the guest profile exists and is locked, return it
>- if (guest != null && guest.locked()) {
>- return guest;
>- }
>+ // If the guest profile exists and is locked, return it
>+ GeckoProfile guest = GeckoProfile.getGuestProfile(context);
>+ if (guest != null && guest.locked()) {
>+ return guest;
>+ }
>
>+ if (context instanceof GeckoApp) {
> // Otherwise, get the default profile for the Activity
> return get(context, ((GeckoApp)context).getDefaultProfileName());
> }
>
> return get(context, "");
> }
>
Why do I think Wes had this same patch for an old Awesomescreen fix? I think I forced him to pass a boolean to the Activity, back when the Awesomescreen was a separate activity. If you need this bandaid, fine. But by God it's time to clean this code up. Things I care about in GeckoProfile:
1. GeckoProfile should not care about Activities
2. If GeckoProfile needs to fetch a default profile name from someone, use an interface!
3. If GeckoProfile needs to know the root folder for profiles, pass it in!
Updated•11 years ago
|
Attachment #803224 -
Flags: review?(wjohnston) → review+
Assignee | ||
Comment 11•11 years ago
|
||
Comment 12•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/6450475d597d
https://hg.mozilla.org/mozilla-central/rev/15904709259c
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 27
Reporter | ||
Updated•11 years ago
|
Status: RESOLVED → VERIFIED
status-firefox27:
--- → verified
Reporter | ||
Comment 13•11 years ago
|
||
Noticed that this is missing in 25 (beta #1) but tracking 25+.
Assignee | ||
Comment 14•11 years ago
|
||
Comment on attachment 803217 [details] [diff] [review]
Part 1: Disable synced tab for guest session
[Approval Request Comment]
Bug caused by (feature/regressing bug #): guest-mode
User impact if declined: sync UI is visible using guest mode
Testing completed (on m-c, etc.): m-c
Risk to taking this patch (and alternatives if risky): Medium-low. This potentially changes which profile is returned and could break things in our ContentProvider code if it doesn't handle profiles correctly. I've tested this, however, and haven't seen any issues.
String or IDL/UUID changes made by this patch: none
Attachment #803217 -
Flags: approval-mozilla-beta?
Attachment #803217 -
Flags: approval-mozilla-aurora?
Assignee | ||
Updated•11 years ago
|
Attachment #803224 -
Flags: approval-mozilla-beta?
Attachment #803224 -
Flags: approval-mozilla-aurora?
Comment 15•11 years ago
|
||
(In reply to Aaron Train [:aaronmt] from comment #13)
> Noticed that this is missing in 25 (beta #1) but tracking 25+.
This will require extra QA testing, given the medium-low risk evaluation above.
status-firefox25:
--- → affected
status-firefox26:
--- → affected
tracking-firefox25:
--- → +
tracking-firefox26:
--- → +
Keywords: qawanted
Updated•11 years ago
|
Attachment #803217 -
Flags: approval-mozilla-beta?
Attachment #803217 -
Flags: approval-mozilla-beta+
Attachment #803217 -
Flags: approval-mozilla-aurora?
Attachment #803217 -
Flags: approval-mozilla-aurora+
Updated•11 years ago
|
Attachment #803224 -
Flags: approval-mozilla-beta?
Attachment #803224 -
Flags: approval-mozilla-beta+
Attachment #803224 -
Flags: approval-mozilla-aurora?
Attachment #803224 -
Flags: approval-mozilla-aurora+
Comment 16•11 years ago
|
||
Needs a branch-specific patch for the beta uplift.
https://hg.mozilla.org/releases/mozilla-aurora/rev/2ac0639bf267
https://hg.mozilla.org/releases/mozilla-aurora/rev/8de790b4863a
Assignee | ||
Comment 17•11 years ago
|
||
https://hg.mozilla.org/releases/mozilla-beta/rev/d2674701bc7b
https://hg.mozilla.org/releases/mozilla-beta/rev/ac6031737273
Flags: needinfo?(bnicholson)
Updated•11 years ago
|
Keywords: branch-patch-needed
Reporter | ||
Updated•11 years ago
|
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
•