Context menu appears for javascript links

RESOLVED WONTFIX

Status

Fennec Graveyard
General
RESOLVED WONTFIX
7 years ago
7 years ago

People

(Reporter: nhirata, Unassigned)

Tracking

Trunk
ARM
Android

Details

(URL)

Mozilla/5.0 (Android; Linux armv71; rv2.2a1pre) Gecko/20110330 Firefox/4.2a1pre Fennec/4.1a1pre
Device: Droid 2 
OS: Android 2.2

1. Go to http://people.mozilla.com/~nhirata/html_tp/html_js_link.html 
2. long tap on the link

Expected: Context menu should not pop up
Actual: Context menu pops up, bookmarking the link will bookmark the javascript call of : javascript:go('akamarketing.com','new')
I'm actually not getting a context menu, while long tapping on the link.
Why shouldn't the context menu appear for javascript: links?
This is intentional, so that JavaScript "bookmarklets" like the ones at https://www.squarefree.com/bookmarklets/ can be added to the Fennec bookmarks.  See bug 637031.

Desktop Firefox also allows "Bookmark link" from the context menu on JavaScript links.

I can see that this can sometimes lead to unexpected results, but I'm not sure how to avoid it without breaking the intended feature.
Blocks: 637031
Ah, ok, I had an older build, that's why it didn't work, long tapping on the link in the testcase.
Status: NEW → RESOLVED
Last Resolved: 7 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.