Closed Bug 1205711 Opened 9 years ago Closed 8 years ago

Add Settings preference to control PB/normal mode of externally opened links

Categories

(Firefox for Android Graveyard :: Settings and Preferences, defect)

35 Branch
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: Margaret, Assigned: liuche)

References

Details

Attachments

(1 file)

In bug 1065004, we added a preference to always open external links in private tabs. Let's explore making this into a tri-state pref that also has an "ask me every time" option. I'll try making a prototype. Anthony, do you have thoughts on the UX here? Should we just use a regular system prompt? Should I just ignore how this will interact with tab queues?
Flags: needinfo?(alam)
No longer blocks: 1065004
(In reply to :Margaret Leibovic from comment #0) > In bug 1065004, we added a preference to always open external links in > private tabs. Let's explore making this into a tri-state pref that also has > an "ask me every time" option. I'm thinking just a dialog that has 3 options inside. Similar to the "Tabs" pref under Customize For the copy, I think this makes sense. But we can definitely revisit later. "Open links in Private browsing" A: "Always" B: "Choose each time" C: "Never" > I'll try making a prototype. Anthony, do you have thoughts on the UX here? > Should we just use a regular system prompt? Should I just ignore how this > will interact with tab queues? Yes to both for now. Since this is just a proof of concept I think this is enough.
Flags: needinfo?(alam) → needinfo?(margaret.leibovic)
Bug 1205711 - (WIP) Add option to choose whether an external link opens in a private or regular tab
I tried hacking together a brute-force solution, but I encountered a problem where it appears that the Tabs instance isn't attached to a valid context when I'm trying to create a prompt, so the app crashes. 10-05 19:38:46.093 7857-7857/org.mozilla.fennec_leibovic E/GeckoCrashHandler﹕ >>> REPORTING UNCAUGHT EXCEPTION FROM THREAD 1 ("main") android.view.WindowManager$BadTokenException: Unable to add window -- token null is not for an application at android.view.ViewRootImpl.setView(ViewRootImpl.java:566) at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:282) at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:85) at android.app.Dialog.show(Dialog.java:298) at android.app.AlertDialog$Builder.show(AlertDialog.java:993) at org.mozilla.gecko.Tabs$6.run(Tabs.java:873) at android.os.Handler.handleCallback(Handler.java:739) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:135) at android.app.ActivityThread.main(ActivityThread.java:5254) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698) I also found that loadUrl expects to return a Tab instance, but we can't do that if we're waiting on the user to decide what type of tab to create. Hopefully I can find some more time to investigate this week.
Flags: needinfo?(margaret.leibovic)
Summary: Add option to choose whether an external link opens in a private or regular tab → Add Settings preference to control PB/normal mode of externally opened links
Assignee: margaret.leibovic → liuche
Revisiting comment 1, I think "Open links in Private browsing" is too hard to read. It also doesn't align too well with the Google settings writing guidelines. I think this works better: "Links from other apps" A: "Open in Private Browsing" B: "Choose each time" C: "Open in a new tab"
Flags: needinfo?(liuche)
Thinking about this some more, I think there's still room to simplify. Also, considering that this will sit next to our other "link handling" pref "Open multiple links" under General... Open links from other apps - In a private tab - Ask each time - In a new tab
We removed this setting in bug 1232467.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → WONTFIX
Flags: needinfo?(liuche)
Guys, what about making _additional_ shortcut/whatever so that a user could open links in a Private Tab? People care about privacy more each year, you know. BTW, that would make having Focus unnecessary. Having two Firefox browsers is kinda too many IMHO.
?
Flags: needinfo?(liuche)
Thanks for you input, ildar - the setting you're suggesting is actually the exact one that was removed in bug 1232467, I assume due to lack of use.
Flags: needinfo?(liuche)
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: