Closed Bug 1062092 Opened 11 years ago Closed 7 months ago

Context menu search (with default search engine) does not work in the content area of a message compose or SM-Composer window

Categories

(SeaMonkey :: Search, defect)

defect
Not set
normal

Tracking

(seamonkey2.53+ fixed)

RESOLVED FIXED
Future
Tracking Status
seamonkey2.53 + fixed

People

(Reporter: mozilla, Assigned: iannbugzilla)

Details

(Whiteboard: SM2.53.21)

Attachments

(1 file, 1 obsolete file)

User Agent: Mozilla/5.0 (Windows NT 5.1; rv:29.0) Gecko/20100101 Firefox/29.0 SeaMonkey/2.26.1 Build ID: 20140612174402 Steps to reproduce: compose new msg highlight some text right click search [searchengine] for "some text" Actual results: nothing Expected results: open browser page with search results
Confirmed. I would have expected there to be a bug on this already, but I'm not finding anything. (May have just missed it?) Expect that ever since there was a context-menu item, "Search ___ for ___" that this bug has existed? Composer affected likewise. > Error: ReferenceError: BrowserSearch is not defined > Source File: chrome://editor/content/editor.xul > Line: 1
>> Error: ReferenceError: BrowserSearch is not defined >> Source File: chrome://editor/content/editor.xul >> Line: 1 The error probably comes from: contentAreaContextOverlay.xul http://mxr.mozilla.org/comm-central/source/suite/common/contentAreaContextOverlay.xul?rev=9cf4459806ca&mark=264-265#264 > 264 <menuitem id="context-searchselect" > 265 oncommand="BrowserSearch.loadSearch(gContextMenu.searchSelected(), true, event);"/>
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Windows XP → All
Hardware: x86 → All
Summary: context search → Context search does not work in the content area of a message compose window
Same problem in SeaMonkey Composer (what might be the core of the problem?)
Summary: Context search does not work in the content area of a message compose window → Context menu search (with default search engine) does not work in the content area of a message compose of SM-Composer window
Summary: Context menu search (with default search engine) does not work in the content area of a message compose of SM-Composer window → Context menu search (with default search engine) does not work in the content area of a message compose or SM-Composer window
Assignee: nobody → iannbugzilla
Status: NEW → ASSIGNED
Version: SeaMonkey 2.26 Branch → Trunk
Component: MailNews: Composition → Search

[Approval Request Comment]
Regression caused by (bug #): n/a
User impact if declined: unable to use context web search in composer / message compose
Testing completed (on m-c, etc.): 2.53.21pre
Risk to taking this patch (and alternatives if risky): low
String changes made by this patch: none

This patch:

  • Adds searchEngine helper to nsContextMenu.js for is TextSelection to use as well as the new openSearch function
  • Moves MsgOpenSearch from mailWindowOverlay.js to nsContextMenu.js as the new openSearch function
  • Makes all context web search menuitems use the new openSearch function
  • Removes the now unused code in BrowserSearch.loadSearch
Attachment #9466446 - Flags: review?(frgrahl)
Attachment #9466446 - Flags: approval-comm-release?

Extra braces

Attachment #9466446 - Attachment is obsolete: true
Attachment #9466446 - Flags: review?(frgrahl)
Attachment #9466446 - Flags: approval-comm-release?
Attachment #9466452 - Flags: review?(frgrahl)
Attachment #9466452 - Flags: approval-comm-release?
Whiteboard: SM2.53.21

Comment on attachment 9466452 [details] [diff] [review]
1062092-context-searchselect-v1_1-25321.patch

LGTM r/a+

Attachment #9466452 - Flags: review?(frgrahl)
Attachment #9466452 - Flags: review+
Attachment #9466452 - Flags: approval-comm-release?
Attachment #9466452 - Flags: approval-comm-release+

Pushed by frgrahl@gmx.net:
https://hg.mozilla.org/comm-central/rev/3783f2eb5cd8
Context menu search (with default search engine) does not work in the content area of a message compose or SM-Composer window. r=frg DONTBUILD

Status: ASSIGNED → RESOLVED
Closed: 7 months ago
Resolution: --- → FIXED

https://gitlab.com/seamonkey-project/seamonkey-2.53-comm/-/commit/7ee30a5b6bfab1eefc631161dd23a9b0b8392cd5
Context menu search (with default search engine) does not work in the content area of a message compose or SM-Composer window. r=frg a=frg

Target Milestone: --- → Future
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: