Closed Bug 2003434 Opened 4 months ago Closed 2 months ago

bookmarking any website results in an invalid URL error

Categories

(Firefox for Android :: Bookmarks, defect)

Firefox 145
All
Android
defect

Tracking

()

RESOLVED FIXED
149 Branch
Tracking Status
firefox149 --- fixed

People

(Reporter: john.a.netherton, Assigned: segun)

References

Details

(Whiteboard: [fxdroid][group1])

Attachments

(3 files, 1 obsolete file)

User Agent: Mozilla/5.0 (Android 16; Mobile; rv:145.0) Gecko/145.0 Firefox/145.0

Steps to reproduce:

In Firefox on Android 145, tap the triple dot menu and tap bookmark page on any website with a bookmarkable URL.

Actual results:

All websites return a "invalid URL" error.

Expected results:

A bookmark created in the last folder a bookmark was created in of the URL I attempted to bookmark.

Disabled all extensions and reattempted to make a bookmark, error still occurs.

The severity field is not set for this bug.
:boek, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(jboek)

Hi there, thanks for the report! I'm not able to reproduce this on nightly or release, so I'm tagging QA to see if they have better luck. Thanks for your help QA!

Looking at the code path, my first guess would be that there's an error in how we are saving the "last folder" the bookmark was created in. :Jon, could you try creating a new folder through the bookmarks screen first, and then saving a new bookmark from the browser screen?

Flags: qe-verify+
Flags: needinfo?(john.a.netherton)
Flags: needinfo?(jboek)

For future debugging:

We display this error from here, which means we have an unexpected null reference coming from here

Seems like this would also happen if the previously saved folder was deleted?

I created a subfolder called test in the bookmarks menu folder then tried to bookmark google.com again and got the invalid URL error once more. I then deleted the test folder and recreated it in the same place and bookmarked Google, and the bookmarking function started working again. It is defaulting to the bookmarks folder but I can edit it from there.

Flags: needinfo?(john.a.netherton)

Hello! We weren’t able to reproduce this issue on the latest Nightly 148.0a1 (12.22.2025), Fenix 147.0b7, RC 146.0.1, or 145, using Google Pixel 10 (Android 16) and Samsung Galaxy S23 Ultra (Android 14).
@Jon, could you please share the device you used when reproducing this issue? Also, could you try to check whether the issue still reproduces on the latest Nightly with a fresh install?

Flags: needinfo?(john.a.netherton)
Flags: qe-verify+

(In reply to Adina Petridean QA [:apetridean] from comment #7)

Hello! We weren’t able to reproduce this issue on the latest Nightly 148.0a1 (12.22.2025), Fenix 147.0b7, RC 146.0.1, or 145, using Google Pixel 10 (Android 16) and Samsung Galaxy S23 Ultra (Android 14).
@Jon, could you please share the device you used when reproducing this issue? Also, could you try to check whether the issue still reproduces on the latest Nightly with a fresh install?

Samsung Galaxy S23 Ultra SM-918U1
Firefox 146.0.1 (Build #2016132551), 86bb7f6af6312ba3c0161085f854bcdff68f1a91
GV: 146.0.1-20251217121356
AS: 146.0.2
OS: Android 16

Error cannot be reproduced on my stable version after having created, deleted, and recreated a folder as mentioned above. I installed nightly 148.0a1 (Build #2016133663) and cannot reproduce the error using that build.

Flags: needinfo?(john.a.netherton)

The severity field is not set for this bug.
:boek, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(jboek)
Flags: needinfo?(jboek)
Whiteboard: [fxdroid][group1]

The severity field is not set for this bug.
:boek, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(jboek)
Assignee: nobody → markh
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true

STR:

  • Successfully save a bookmark in a custom folder.
  • Delete that folder.
  • Try and create a new bookmark with the star icon on the menu - it will try and save it in the now-deleted folder.
Assignee: markh → nobody
Status: ASSIGNED → NEW
Attachment #9538671 - Attachment is obsolete: true

Thanks Mark for the investigation and your patch. I'll take over this bug and add the tests

Assignee: nobody → sfamisa
Status: NEW → ASSIGNED
Flags: needinfo?(jboek)
Attached file GitHub Pull Request
Pushed by abutkovits@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/9ead92add275 https://hg.mozilla.org/integration/autoland/rev/611d56005177 Revert "Bug 2003434 - Fallback to mobile bookmarks root if last saved folder does not exist r=boek" for causing failures at MenuDialogMiddlewareTest.
Flags: needinfo?(sfamisa)
Status: ASSIGNED → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 149 Branch
Duplicate of this bug: 2021428
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: