Closed Bug 1269051 Opened 8 years ago Closed 7 years ago

Disable screenshot in bookmarks via a switchboard flag rather than at compile-time

Categories

(Firefox for Android Graveyard :: General, defect)

All
Android
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: mcomella, Assigned: cnevinchen, NeedInfo)

References

Details

Attachments

(1 file)

Follow-up to compile-time disable, bug 1266820.
Margaret, it's non-trivial to do this because we need to know if we're in the experiment in LocalBrowserDB.getBookmarksInFolder (to create the smart folder) which does not have a reference to the Context. How important is it that we do this? fwiw, this could be revisited when we're implementing this feature if we'd like to use actual bucketing.

If we were to implement this, some solutions off the top of my head:
* Pass a context into LocalBrowserDB and set a member var reporting the state of the experiment – LocalBrowserDB is used outside of BrowserApp so this isn't entirely appropriate and can have weird side effects by accessing shared prefs values. Also, many callsites to update.
* Add a static reference in BrowserApp that is updated in onCreate (or similar) and that LocalBrowserDB can access – icky global state, but probably the better solution (it's like a runtime constant).
Flags: needinfo?(margaret.leibovic)
If it's difficult (and it sounds like it is), we don't need to worry about moving this behind a switchboard flag right now.

However, in the future, I imagine we may want to control the UI of this feature with a switchboard flag, but we can cross that bridge when we get to it.
Flags: needinfo?(margaret.leibovic)
Unassigning until that time.
Assignee: michael.l.comella → nobody
I'll take this. Is this bug still valid?
Assignee: nobody → cnevinchen
Flags: needinfo?(joechengla)
Flags: needinfo?(alam)
I don't think this is still valid. 

Correct me if I'm wrong, but I think this is left over from when we were experimenting with a "Screenshots" smart folder in Bookmarks.

@mcomella?
Flags: needinfo?(alam) → needinfo?(michael.l.comella)
> I think this is left over from when we were experimenting with a "Screenshots" smart folder in Bookmarks.

Yep - I agree this is no longer valid (unless this is a feature that we intend to ship).
Flags: needinfo?(michael.l.comella)
I'll close this bug per comment 7
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → WONTFIX
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: