[go: nahoru, domu]

Closed Bug 1892762 Opened 4 months ago Closed 27 days ago

[toolbar redesign] Snackbar blocks access to address bar or toolbar

Categories

(Fenix :: Toolbar, defect, P1)

All
Android
defect

Tracking

(firefox130 verified)

VERIFIED FIXED
130 Branch
Tracking Status
firefox130 --- verified

People

(Reporter: royang, Assigned: petru)

References

(Blocks 1 open bug)

Details

(Whiteboard: [fxdroid][toolbar:130])

Attachments

(7 files, 1 obsolete file)

When adding or removing a bookmark through the menu, the undo snack bar can block access to the addressbar (deleting bookmark) or toolbar (adding bookmark).

Severity: -- → S3
Whiteboard: [fxdroid]

Setting toolbar redesign's Beta experiment blockers to priority P2 until we finish fixing our Nightly blockers.

Priority: -- → P2
Whiteboard: [fxdroid] → [fxdroid][toolbar:130]
Assignee: nobody → petru
Status: NEW → ASSIGNED

The snackbar for deleting a just added bookmark is shown from the bookmarks screen which does
not have access to browser's toolbar to anchor the snackbar to it.
The previous approach would use a boolean to know when to use the hardcoded height of the toolbar
as a padding for the snackbar.
With the navigation bar potentially doubling the height of the toolbar (when the toolbar is placed
on bottom of the screen) that approach seems like a hack that is hard to maintain.

The new approach has the browser screen informing the browser screen about a successfully deleted
bookmark and the browser screen can show a confirmation snackbar anchored to it's toolbar.

Use the simpler method to create a snackbar for all such scenarios.
Avoid duplicated code.

See Also: → 1906657
Attachment #9411514 - Attachment description: Bug 1892762 - Ensure that browser screen snackbars are shown on top of the navbar r=#android-reviewers → Bug 1892762 - part 1 - Ensure that browser screen snackbars are shown on top of the navbar r=#android-reviewers

This is useful when the text needed to be used is a literal string and not
one existing as a string resource that can be requested by it's id.

Attachment #9411515 - Attachment description: Bug 1892762 - Ensure bookmark add/delete from browser are shown above (vertically) the navbar r=#android-reviewers → Bug 1892762 - part 3 - Ensure bookmark add/delete from browser are shown above (vertically) the navbar r=#android-reviewers
Attachment #9411517 - Attachment description: Bug 1892762 - Snackbars cleanup in the browser screen r=#android-reviewers → Bug 1892762 - part 4 - Snackbars cleanup in the browser screen r=#android-reviewers
Attachment #9411515 - Attachment description: Bug 1892762 - part 3 - Ensure bookmark add/delete from browser are shown above (vertically) the navbar r=#android-reviewers → Bug 1892762 - part 3 - Ensure snackbars for deleted bookmarks are shown above (vertically) the browser navbar r=#android-reviewers

Increasing priority to P1 now that we're fixing toolbar phase 1's beta blockers.

Priority: P2 → P1

With the snackbar for when the bookmark is deleted moved to the AppStore when the bookmark
is deleted from the the edit screen of a bookmark we need to consume the AppState in the
bookmarks screen also.

See Also: → 1908596
Attachment #9411517 - Attachment is obsolete: true
Duplicate of this bug: 1908224
Duplicate of this bug: 1908799
See Also: → 1909187

Test started to fail though if observing the flow everything runs as expected.
More information in bug 1909187.

Pushed by plingurar@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/cd462a4aa0b6
part 1 - Ensure that browser screen snackbars are shown on top of the navbar r=android-reviewers,tthibaud
https://hg.mozilla.org/integration/autoland/rev/a529c2fb1e73
part 2 - Allow passing a string for snackbar text and action r=android-reviewers,gl,Roger
https://hg.mozilla.org/integration/autoland/rev/705ed5a56fcd
part 3 - Ensure snackbars for deleted bookmarks are shown above (vertically) the browser navbar r=android-reviewers,gl
https://hg.mozilla.org/integration/autoland/rev/7506e8b6ecd8
Part 4 - Ensure snackbars for deleted bookmarks are shown in the bookmarks screen r=android-reviewers,gl
https://hg.mozilla.org/integration/autoland/rev/fff95abc79d6
part 5 - Disable failing deleteBookmarkInEditModeTest r#mobiletest-reviewers r=android-reviewers,gl

Hey folks, it looks like this breaks a couple bookmark tests

https://console.firebase.google.com/u/1/project/moz-fenix/testlab/histories/bh.66b7091e15d53d45/matrices/8077484313341467328/details?stepId=bs.ec4fea82f5fd5222&testCaseId=1&tabId=video

  • copyBookmarkURLTest
  • cantSelectDefaultFoldersTest
  • deleteBookmarkInEditModeTest

Petru, can you take a look?

Flags: needinfo?(petru)
Regressions: 1909569

Indeed, there's an issue affecting bookmarks screen tests that show a snackbar, no issue in the actual functionality.
More context in bug 1909569.

Verified as fixed in the latest Nightly 130.0a1 from 07/31 with Google Pixel 8 Pro (Android 14) and Xiaomi 12 Pro (Android 13).

Status: RESOLVED → VERIFIED

Seems like there have been no new reports of related tests failing in bug 1909569.
Removing my NI which I used as a reminder to check.

Flags: needinfo?(petru)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: