Closed Bug 1910768 Opened 1 year ago Closed 11 months ago

Create an app-wide setting for desktop mode browsing

Categories

(Firefox for Android :: Settings, task, P1)

All
Android
task

Tracking

()

RESOLVED FIXED
133 Branch
Tracking Status
relnote-firefox --- 133+
firefox133 --- verified

People

(Reporter: calu, Assigned: 007)

References

(Blocks 1 open bug)

Details

(Whiteboard: [fxdroid] [group4])

Attachments

(5 files, 15 obsolete files)

67.79 KB, image/png
Details
137.01 KB, image/png
Details
103.57 KB, image/png
Details
48 bytes, text/x-phabricator-request
Details | Review
394.42 KB, image/png
Details
Attached image chrome-desktop-mode-pref.png โ€”

Besides the 3 dot menu setting for each tab, we should have a toggle in the settings menu for changing the desktop site preference app-wide.

Questions for UX: Where should this setting live, under site permissions?
On Chrome, it is under site settings, which contains site permissions and content preferences. Shown in the attachment screenshots.

Attached image chrome-site-settings.png โ€”
Attached image current-site-permissions.png โ€”

Additionally, Chrome also has a site-wide preference for mobile vs desktop viewing, as well as a "When the window is narrow, request mobile view"

Component: General → Settings
Product: GeckoView → Fenix
Depends on: 1915207
Assignee: nobody → nbond
Status: NEW → ASSIGNED
Priority: -- → P1
Blocks: 1790516
No longer depends on: 1790516

I received the OK from product to remove the desktop mode toggle from the Homepage menu with this patch, as that is going away with the redesign and it will greatly simplify desktop mode toggle logic.

#c16

nbond@mozilla.com, doesn't that mean that smartphone users who don't usually use their phone with a desktop UA shan't be able to temporarily elevate without accessing about:preferences? If so, is that desirable? I ask because I find that I primarily utilize the "desktop mode" toggle temporarily.

Flags: needinfo?(nbond)

The desktop mode toggle within the browser's three-dot menu is still going to be there! The comment above is referring to the desktop mode toggle within the homepage's menu (before opening a tab, clicking on a top site, etc.).

Flags: needinfo?(nbond)
Attachment #9425423 - Attachment is obsolete: true
Attachment #9425424 - Attachment is obsolete: true
Attachment #9425425 - Attachment is obsolete: true
Attachment #9425426 - Attachment is obsolete: true
Attachment #9425435 - Attachment is obsolete: true
Attachment #9425417 - Attachment description: WIP: Bug 1910768 - Part 2 - Move `openNextTabInDesktopMode` from settings to AppStore → WIP: Bug 1910768 - Part 2 - Remove `Settings.openNextTabInDesktopMode`
Attachment #9425421 - Attachment description: WIP: Bug 1910768 - Part 6 - Create desktop browsing feature flag and logic wrapper class → WIP: Bug 1910768 - Part 6 - Sync the browser engine to `BrowserState.desktopMode`
Attachment #9425422 - Attachment description: WIP: Bug 1910768 - Part 7 - Integrate DesktopBrowsingFeature into SearchDialogController → WIP: Bug 1910768 - Part 7 - Provide a default value for desktop mode
Attachment #9425418 - Attachment description: WIP: Bug 1910768 - Part 3 - Create DataStore for browser settings → WIP: Bug 1910768 - Part 3 - Create a DataStore for user preferences and create a repository for accessing the desktop mode preference
Attachment #9425422 - Attachment description: WIP: Bug 1910768 - Part 7 - Provide a default value for desktop mode → WIP: Bug 1910768 - Part 8 - Provide a default value for desktop mode
Depends on: 1921120
Depends on: 1921121
Attachment #9426960 - Attachment is obsolete: true
Attachment #9425417 - Attachment is obsolete: true
Attachment #9425416 - Attachment description: WIP: Bug 1910768 - Part 1 - Add `desktopMode` boolean to `BrowserState` → Bug 1910768 - Part 1 - Add app-wide desktop mode browsing preference
Attachment #9426961 - Attachment description: WIP: Bug 1910768 - Part 9 - Ensure any pre-loaded tabs have the correct desktop mode preference → Bug 1910768 - Part 2 - Ensure any pre-loaded tabs have the correct desktop mode preference
Attachment #9425422 - Attachment is obsolete: true
Attachment #9425421 - Attachment is obsolete: true
Attachment #9425420 - Attachment is obsolete: true
Attachment #9425419 - Attachment is obsolete: true
Attachment #9425418 - Attachment is obsolete: true
Duplicate of this bug: 1790516
Attachment #9425416 - Attachment description: Bug 1910768 - Part 1 - Add app-wide desktop mode browsing preference → Bug 1910768 - Add an app-wide desktop mode browsing preference
Attachment #9426961 - Attachment is obsolete: true
Attachment #9427950 - Attachment is obsolete: true
Attachment #9428690 - Attachment is obsolete: true
Pushed by nbond@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/8e3eff9c7b2e Add an app-wide desktop mode browsing preference r=android-reviewers,rsainani
Status: ASSIGNED → RESOLVED
Closed: 11 months ago
Resolution: --- → FIXED
Target Milestone: --- → 133 Branch

QE, could you please verify these changes?

This ticket/patch includes two additions:

  • Desktop mode browsing by default for large devices.
    • When users boot up Fenix for the first time after this change, they will have desktop mode by default turned ON if they have a large screen size.
    • A screen is considered "large" when it has a screen width of at least 600 "dp" (typically, this means tablets and unfolded foldables).
  • A preference for toggling-on/off desktop browsing by default.
    • This new preference is under Settings on the screen "Site settings", previously named "Site permissions"

Could you please verify that this functionality is working correctly, devices are getting their expected initial desktop mode value, and note any odd browsing or webcompat behavior?

Flags: qe-verify+
Depends on: 1917802
Attached image 1910768.png โ€”

Verified as implemented on the Fenix Nightly 133.0a1, with the following devices:

  • Samsung Galaxy Tab S9 Ultra (Android 14),
  • Lenovo TB X606X (Android 10),
  • Huawei MediaPad Youth M3 (Android 7),
  • Google Pixel 6 (Android 15),
  • Realme GT Master Edition (Android 13).

The following changes are available:

  • the "Desktop site" option is no longer available in the homepage's main menu,
  • the "desktop site" is available in Settings -> Site settings -> "Always request desktop site" toggle OFF by default for phones, ON for tablets,
  • "Site permissions" is replaced by "Site settings".

On tablets, all the pages are opened in desktop mode, and on the three-dot menu the "Desktop site" toggle is ON. The toggle can be turned OFF, and the page reloads in mobile mode.
On phones, the pages load in mobile mode. Enabling the "Always request desktop site" toggle works as expected: the new opened pages load in desktop mode.
Tested in both normal and private browsing.

Flags: qe-verify+

:007 could you add a release note nomination? (Process info)

Flags: needinfo?(nbond)

[Tracking Requested - why for this release]:
This patch introduces desktop browsing by default for tablets and other large devices. It is live in Nightly and is intended to ride the trains to Release.

  • Desktop mode browsing by default for large devices.
    • When users boot up Fenix for the first time after this change, they will have desktop mode by default turned ON if they have a large screen size.
    • Users of Fenix on tablets or Chromebooks will now have desktop browsing defaulted to ON for all newly-opened tabs.
  • We have also added an app-wide preference for toggling-on/off desktop browsing by default.
    • This new preference is under Settings on the screen "Site settings", previously named "Site permissions"
Flags: needinfo?(nbond)

Release Note Request (optional, but appreciated)
[Why is this notable]:
This ticket introduces desktop browsing by default for tablets and other large devices. It is live in Nightly and is intended to ride the trains to Release.

  • Desktop mode browsing by default for large devices.
    • When users boot up Fenix for the first time after this change, they will have desktop mode by default turned ON if they have a large screen size.
    • Users of Fenix on tablets or Chromebooks will now have desktop browsing defaulted to ON for all newly-opened tabs.
  • We have also added an app-wide preference for toggling-on/off desktop browsing by default.
    • This new preference is under Settings on the screen "Site settings", previously named "Site permissions"
      [Affects Firefox for Android]: Yes
      [Suggested wording]:
      [Links (documentation, blog post, etc)]:

Thanks, added to the Fx133 nightly release notes, please allow 30 minutes for the site to update.
Keeping the relnote-firefox flag as ? to keep it on the radar for inclusion in the final Fx133 release notes.

Added to the Fx133 release notes.
Available to preview on staging, please allow 30 minutes for the site to update.

See Also: → 1934259
Regressions: 1934523
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: