Closed Bug 309994 Opened 19 years ago Closed 12 years ago

null selections (empty table cells?) triggering wrong context menus (and two dividers)

Categories

(Firefox :: Menus, defect)

defect
Not set
trivial

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: jmd, Unassigned)

References

()

Details

OS X 10.3.9, Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8b4)
Gecko/20050908 Firefox/1.4

It seems possible to make a null selection, perhaps only in the case of
selecting bits of the DOM such as:

  <td colspan="3" height="180" width="119"></td>

When you drag over this blank area of the page, nothing is highlighted in any
way, however, a left click gives you a part of the selection context menu--ie:

copy
select all
---
view selection source

Notice "Search Web for ..." isn't included, as this item must detect somehow
there's nothing actually selected.

This behavior may not even be invalid, in itself. However, if you select the
same area on a page that's in a frameset, you receive a definitely buggy menu:

copy
select all
---
---
this frame             >
view selection source

So, when the "This Frame  >" menu item is added, and there's not the "Search Web
For ..." item, there are two divider bars in the context menu.

No functionality is impaired by this, so -> trivial.
see also bug 318646, which is this same behaviour without explicitly making an empty selection.
Blocks: 318646
Jeremy, can you create a simple testcase which shows the behavior with frames? The first mentioned issue seems to be fixed in Firefox 3.1 beta 3. Thanks.
No longer blocks: 318646
A good testcase to see the problem is that one:
http://www.w3schools.com/html/tryit.asp?filename=tryhtml_table_nbsp

Just right click onto the empty cell, do a left click (still inside the empty cell), and a right click again. The page uses iframes so the two separators with no line in-between are visible too.

Reproducible with Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1b4pre) Gecko/20090404 Shiretoko/3.5b4pre (.NET CLR 3.5.30729) ID:20090404052411. But I'm not able to see it on OS X.
OS: Mac OS X → All
Hardware: PowerPC → All
Version: 1.5.0.x Branch → Trunk
I can't reproduce using the STR from comment 4, and multiple table selection fixes have gone in since this was reported (bug 346729, bug 363378, bug 488417, many others) -> WFM.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.