Closed Bug 32034 Opened 25 years ago Closed 22 years ago

Sidebar Search fails if no navigator windows open.

Categories

(SeaMonkey :: Search, defect, P3)

Tracking

(Not tracked)

VERIFIED FIXED
mozilla1.0

People

(Reporter: bugzilla, Assigned: bugzilla)

References

Details

(Whiteboard: [adt2 RTM] [ETA 06/25])

Attachments

(1 file, 7 obsolete files)

When I try to do a search from the sidebar, either with a debug B1 build or 
debug M15 build on both Mac & Windows, I get the following error:

JavaScript Error: TypeError: parent.content has no properties
URL: chrome://search/content/search-panel.js
Line number: 432
Severity: normal → major
Keywords: beta1
Ok, I narrow it down. It's append only when you use it from the mail 3-panes 
window. Also, the name of the tab in the mail window is "Search" when it's 
"Search Results" in the browser.
Summary: Sidebar search doesn't work (JS error) → Sidebar search doesn't work from mail window (JS error)
.
Assignee: matt → ben
Ooops.  Ben, should we fix this for beta 1?
Priority: P3 → P1
Target Milestone: M14
PDT- for sidebar search in mail. Would be PDT+ for the browser
Keywords: relnote
Whiteboard: [PDT-]
Change to PDT + made by Jar

small safe fix in hand, will open search result in new window :-)


Status: NEW → ASSIGNED
Whiteboard: [PDT-] → [PDT+] fix in hand
Whiteboard: [PDT+] fix in hand → [PDT+] fix in hand w/b minus on 3/17
fix checked in to branch and trunk
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
When I enter a string and click Search in the mail sidebar nothing happens. I tried the beta candidate 2000032006 build on 
WinNT. What was supposed to happen? Should I only get search results in the sidepanel or do they load in the browser window 
too? Reopening.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
rjc, you break it, you bought it ;) 
Assignee: ben → rjc
Status: REOPENED → NEW
oops didnt read the 'beta1branch' bit.

accepting.. although I think rjc broke this in the tip though ;) 
Assignee: rjc → ben
ok, I've hacked on this for about a half hour, and I dont think this can be 
easily fixed for beta1, a complete fix for this would be large enough to not 
warrant fixing it at all, and instead pushing back to my rewrite of this code 
post beta1.

Basically the sidebar code makes many assumptions about the presence of an 
internet results pane (a relic from the searchwindow days, translated across 
into the browser) all of which have to be patched or modified, new functions for 
tracking the current results window written, and all thoroughly tested.

does this really kill grandma messily? will she be searching from the search 
panel in the mail sidebar anyway, which is by default (on my machine at least) 
all scrunched up at the bottom... 

also, rjc didnt break anything, that was the fairies talking to me through my 
diet pepsi. 

clearing PDT+ for reconsideration. 
Status: NEW → ASSIGNED
Whiteboard: [PDT+] fix in hand w/b minus on 3/17
<whee!>
added following text to relnote bug 29686
"Bug 32034: Searches using the Search panel in MySidebar *from a mail window* will not work. Use the search panel from 
MySidebar in a browser window instead."
Move to M15 for now ...

Target Milestone: M14 → M15
Putting on PDT- radar for beta1.
Whiteboard: [PDT-]
Move to M16 for now ...
Target Milestone: M15 → M16
Keywords: nsbeta2
Putting on [nsbeta2+][6/01] radar.  This work must be done by 06/01 or we may 
pull this for PR2.
Whiteboard: [PDT-] → [nsbeta2+][6/01][PDT-]
This doesn't seem to be a problem anymore.
Searching in mailnews displays the results in mailnews, clicking on a result
displays the page in a browser window.
rginda tells me this is working now.
Status: ASSIGNED → RESOLVED
Closed: 24 years ago24 years ago
Resolution: --- → FIXED
Alas, this is not the case. reopening.
On Mac with the 2000052312 builds. Entering a search term and clicking Search does absolutely nothing.
On linux with the 2000052408 builds. Doing the same results in the search results page being displayed in the mail window
but no results are displayed in the sidebar panel.

Surprisingly, doing a search with the browser's sidebar will cause the mail sidebar to load with those results but you can't do your
owb searches with the mail sidebar search panel.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Changing from [6/01] to [6/15]
Whiteboard: [nsbeta2+][6/01][PDT-] → [nsbeta2+][6/15][PDT-]
Move to M19.
Target Milestone: M16 → M19
This still worksforme, even on Mac.  Around the time this bug changed there was
an unrelated problem with search, maybe that's what you saw?
I'm looking at the 200053008 linux build and I see just what I saw before, namely: with the same build and the same profile on 
the same machine at the same time, the browser search panel works and the mail search panel doesn't. I'd be happy to show 
you if you'd like
ok, here's the deal.  "parent.content has no properties" is the error you got
when searching from *address book*, searching from mailnews looked to me like it
worked, but it turned out to be the wrong behavior.  I'm attaching a fixed
search-panel.js (not a diff) that can be dropped in your
chrome/packages/core/communicator/content/search/ directory.  This should fix
most of the problems with sidebar search, except for the funky [Stop] button
which doesn't go away until you hover over it.

rjc/ben: can you review?
Attached file new search-panel.js file (obsolete) —
Be sure to merge in search-panel.js from the tip as it contains new changes that 
fix other problems.

Rob, can you attach a diff also?
Attached file updated search-panel.js (obsolete) —
Attached file diff -wu (obsolete) —
Fixed some more formatting problems, removed all of the hard tabs (but will they
stay out?) and merged in rjc's latest changes from the tip.

Attached a diff -wu so you can see first hand how hard I spanked this file.
I just dropped rginda's most recent attachement into the 2000060208 Comm opt. build on Win98 and I'm getting no love.

**correction, this works just great now from the borwser, mail, and adbook - for SIMPLE searches. Turns out there are some 
issues for multiple engine searches (MES). Who wants bugs??

we can prolly resolve this one as fixed
Rob, can you try some multi-engine searches with your changes?  :^)
multiple engine searches don't seem to work correctly here either, but this
bustage does not seem to be related to my changes.
Cleaning up status whiteboard by marking beta2 minus (6/15 has passed)

It sounds like this bug is actually fixed... and should be marked as such RSN so 
that it can be verified.  Has the multi-search stuff been sorted out??

Thanks,

Jim
Whiteboard: [nsbeta2+][6/15][PDT-] → [nsbeta2-]
The patch hasn't been checked in yet, RJC is going to check in after making
changes to fix multiple search.

Right RJC?
Attached file New search-panel.js (obsolete) —
Attached file New internetresults.js (obsolete) —
Rob, please try out the two new files (search-panel.js & internetresults.js)
Just checking to make sure: Searching should open the results in a new browser 
window?
Once these fixes are checked in [and currently they are not, due to being marked 
nsbeta2-, as well as the fixes need to be tweaked slightly due to other tree 
changes such as "window.content" now being "window._content"], when a search is 
done from the sidebar, instead of just setting "window._content" to something, 
instead the window mediator is used to find the nearest browser window (or open 
one if there aren't any) and use that.  If the active window IS a browser 
window, its used (so no new window in that case).
rjc: ok, I've opened a new bug concerning the fact that a browser isn't opened 
in the event that no browser is already open. bug 44797. I need that one fixed 
to clear an nsbeta2+ bug of mine in bugscape. If it's really just a dupe of this 
bug, then I'll need to request new consideration for nsbeta2+ status.
Ben, care to try out these two latest sets of files (search-panel.js and 
internetresults.js)?

They are rginda's changes, along with other window._content usage changes to get 
them working with the tip, along with a few other small tweaks.
patches checked in. 
Status: REOPENED → RESOLVED
Closed: 24 years ago24 years ago
Resolution: --- → FIXED
Dammit, this isn't fixed now. related bug 44797 was recently fixed, maybe this fix regressed (it's been a while).

trying to do a search from the mail sidebar search panel yields no search attempt, much less results, even
with a single engine search.

All platforms 2000082508 builds

my console tells me :
JavaScript error:
chrome://communicator/content/search/search-panel.js line 627: navWindow._content has no properties

and then it goes on to open up webshells and whatnot as it opens an empty window (bug 44797)

nominating nsbeta3
Status: RESOLVED → REOPENED
Keywords: nsbeta3
Resolution: FIXED → ---
Nav triage team: It's easy for users to enable search tab in mail window, then 
it doesn't work. [nsbeta3+]
Priority: P1 → P2
Whiteboard: [nsbeta2-] → [nsbeta2-][nsbeta3+]
Status: REOPENED → ASSIGNED
I would have gotten away with it too if it hadn't been for you meddling kids!

I see this too. Interesting. Taking another look... 
I've patched it so that this works in the case where there is already another 
navigator window open, however in the other case (only mail or 
non-navigator windows open) window.open() appears to be broken in the respect 
that it no longer returns a handle to the new window, instead returns null. This 
is wrong. (See a js reference for more details). Filing a separate bug. 
Whiteboard: [nsbeta2-][nsbeta3+] → [nsbeta2-]
In the case where the only window open is a non-navigator window, and a search 
is performed from the sidebar, I have no way to reach the context of the window 
I open. 

hwnd = open[Dialog](..);

does not return a window handle to a ready-to-go context.

Adding a load listener to the handle does not work in this case. 

I have already spent too much time on this. If you search from a mail window 
with a navigator window open, it will work. Removing the nsbeta3+. Will take a 
closer look after NS6. This one remaining case will have to be release noted for 
6.0. Sorry. 
Summary: Sidebar search doesn't work from mail window (JS error) → Sidebar Search fails if no navigator windows open.
updating summary to reflect new conditions. 
nav triage team:
reassigning to Bijals since we know it is important to shrimp.  Don's team and
Ben have spent enough time on this - if you want to fix it, probably should get
the window.open command fixed (probably danm on trudelle's team, cc'ing danm).
Assignee: ben → bijals
Status: ASSIGNED → NEW
Keywords: relnoterelnote3
Nav triage team: See also bug 50894
Depends on: 50894
Shrimp will be using a different Search tab than this client side Search tab so 
I would keep this bug a minus and future it.
Per bijal's last comment, marking nsbeta3-.  Setting milestone to future.
Whiteboard: [nsbeta2-] → [nsbeta2-][nsbeta3-]
Target Milestone: M19 → Future
I have no idea how, but this seems to work now - doing a sidebar search in Mail 
opens a new Nav window, and does the search in there.

So:
It seems unclear to me whether this bug requires either of a "developer" or 
"user" release note for Netscape 6 RTM. If anyone feels it does, can they please 
draft one and then nominate with the relnote-user or relnote-devel strings in 
the Status Whiteboard.

Thanks :-)

Gerv
Keywords: relnote3relnote
Netscape Nav triage team: Marking as fixed. Added Syd to the cc list - if this 
bug is an issue for you, please track separately in Bugscape.
Status: NEW → RESOLVED
Closed: 24 years ago24 years ago
Keywords: beta1nsbeta1
Resolution: --- → FIXED
Dang, not working with the 2001041004 build on Win98. Entering a search term in the mail search
sidebar panel with no nav window open correctly opens a window and populates the sidepanel with
the search string but the search is never fired off - so consequently no results in the content area
or the sidebar. Reopening.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
bijals doesn't work here anymore.
Assignee: bijals → matt
Status: REOPENED → NEW
Keywords: nsbeta1nsbeta1+
Priority: P2 → P4
Target Milestone: Future → mozilla0.9.3
nav triage team:

We believe that usage of sidebar search outside of the navigator window is small. 
Pushing out to mozilla1.0
Target Milestone: mozilla0.9.3 → mozilla1.0
Moving to mozilla0.99.
Assignee: matt → sgehani
Target Milestone: mozilla1.0 → mozilla0.9.9
p3/1.0, nsbeta1+
Priority: P4 → P3
Whiteboard: [nsbeta2-][nsbeta3-]
Target Milestone: mozilla0.9.9 → mozilla1.0
Reassigning 'several bugs at once' to Steve Morse, to level the load better
across the team.
Assignee: sgehani → morse
marking nsbeta- per adt triage
Keywords: nsbeta1+nsbeta1-
Todd, are you okay with minusing this?  AIM seemed to place a lot of value in a
working sidebar...
No, I am not.  With autostart of IM at OS boot coming in Mach V, I believe we
have to fix this one or else the Search experience will be broken in standalone.
 Removing the minus and strongly recommending a plus.

Alternatively, someone tell me I am smoking crack and this bug would not affect
standalone IM with no Nav window open.
Keywords: nsbeta1-nsbeta1
nsbeta1+ per Nav triage team, nav2
Keywords: nsbeta1nsbeta1+
Whiteboard: [nav2]
Please update this bug with an [adt1] - [adt3] impact rating (or take it off the
list if it doesn't even rate adt3.)  Thanks!
adt2 per nav triage
Whiteboard: [nav2] → [adt2]
->ben
Assignee: morse → ben
Attached patch patchSplinter Review
Attachment #9530 - Attachment is obsolete: true
Attachment #9536 - Attachment is obsolete: true
Attachment #9537 - Attachment is obsolete: true
Attachment #10490 - Attachment is obsolete: true
Attachment #10491 - Attachment is obsolete: true
Attachment #11220 - Attachment is obsolete: true
Attachment #11221 - Attachment is obsolete: true
-> me
Assignee: ben → blaker
Comment on attachment 81441 [details] [diff] [review]
patch

r=bryner
Attachment #81441 - Flags: review+
fixed on trunk.
Status: NEW → RESOLVED
Closed: 24 years ago22 years ago
Keywords: adt1.0.0
Resolution: --- → FIXED
will the patch cause a new browser window to open when the SB search happens in
an existing browser window? Also, does this bug happen in 3 pane mail window
only? How about Editor, Addressbook, AIM, etc?
nice work, let's get this one on the RTM train. adt1.0.0-/adt2RTM. 
Keywords: adt1.0.0adt1.0.0-
Whiteboard: [adt2] → [adt2 RTM]
Keywords: adt1.0.0-adt1.0.1
Claudius, can you verify this fix on the trunk.  Thx.
Whiteboard: [adt2 RTM] → [adt2 RTM] [ETA 06/25]
VERIFIED Fixed with 20020626 trunk builds
Status: RESOLVED → VERIFIED
adding adt1.0.1+.  Please get drivers approval before checking into the branch.
Keywords: adt1.0.1adt1.0.1+
Attachment #81441 - Flags: approval+
please checkin to the 1.0.1 branch. once there, remove the "mozilla1.0.1+"
keyword and add the "fixed1.0.1" keyword.
Please check this into the branch today (or if it's already checked in add the
fixed1.0.1 keyword).  The adt1.0.1+ may be removed if it's not in tomorrow's builds.
VERIFIED Fixed with 20020722 branch builds
Product: Core → SeaMonkey
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: