Closed Bug 367070 Opened 19 years ago Closed 19 years ago

new browser window is broken if it is opened from a window in which the findbar is open ('Error: this._browser has no properties').

Categories

(Toolkit :: Find Toolbar, defect, P2)

defect

Tracking

()

RESOLVED FIXED
mozilla1.9alpha2

People

(Reporter: moco, Assigned: asaf)

References

Details

(Keywords: regression)

Attachments

(3 files, 2 obsolete files)

personal bookmarks toolbar blank if I open a new browser window from a browser when when the find bar is showing. in my js console: Error: this._browser has no properties Source File: chrome://global/content/bindings/findbar.xml Line: 641 I'm using my own (slightly old, debug trunk): Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a2pre) Gecko/20070105 Minefield/3.0a2pre i'll update, and rebuild and see if I still see this problem.
You'll still see it, it was busted in my 2006-11-26 17:00 build so the findbar widget's always done that, and apparently no trunk tester has opened a new window over a month and a half.
Blocks: xblfindbar
Component: Bookmarks → Find Toolbar / FastFind
OS: Windows XP → All
QA Contact: bookmarks → fast.find
Hardware: PC → All
thanks phil. I double checked, and I see this regression with the most recent trunk binaries, but not with fx 2.0.0.1.
Attached patch patch (obsolete) — Splinter Review
Assignee: nobody → mano
Status: NEW → ASSIGNED
Attachment #251587 - Flags: review?(gavin.sharp)
Keywords: regression
Priority: -- → P2
Target Milestone: --- → Firefox 3 alpha2
Comment on attachment 251587 [details] [diff] [review] patch >Index: toolkit/content/widgets/findbar.xml You missed a couple of findbar._browser references in the findbar-textbox binding (atm they only work because open() calls _updateCaseSensitivity() which calls the "browser" getter). r=me with those fixed.
Attachment #251587 - Flags: review?(gavin.sharp) → review+
Summary: personal bookmarks toolbar blank if I open a new browser window from a browser when when the find bar is showing: "Error: this._browser has no properties" from findbar.xml (line 641) → new browser window is broken if it is opened from a window in which the findbar is open ('Error: this._browser has no properties').
Attached patch wrong patch (obsolete) — Splinter Review
mozilla/toolkit/content/widgets/findbar.xml 1.6
Attachment #251587 - Attachment is obsolete: true
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Comment on attachment 251641 [details] [diff] [review] wrong patch This isn't what you checked in, thankfully :)
Attachment #251641 - Attachment description: as checked in → wrong patch
Attachment #251641 - Attachment is obsolete: true
Attached patch as checked inSplinter Review
My manage-multiple-trees skills need some love indeed
this should not have been r+'d without a test. If a test case can be written for bug 288254, one can be written for this.
Flags: in-testsuite?
I will make sure to write this (these) tests once we have the necessary framework in place.
(In reply to comment #9) > I will make sure to write this (these) tests once we have the necessary > framework in place. That is not the policy. Refer to <http://www.mozilla.org/projects/toolkit/review.html> "If a unit test framework is needed but is not yet available, the developer should write appropriate test code and commit it. A bug should be filed on the needed test framework."
Attached file unit test
Attachment #251754 - Flags: review?(gavin.sharp)
This bug has regressed Find-as-you-type: there is no response to / or '. Seen on Windows and Linux (no mac to test with) and there aren't any messages in the Error Console. I tested with the first hourly build after this landed, which only had this checkin.
Attached patch regression fixSplinter Review
Attachment #251819 - Flags: review?(gavin.sharp)
Comment on attachment 251819 [details] [diff] [review] regression fix >Index: toolkit/content/widgets/findbar.xml >+ setTimeout(function(aSelf) { aSelf.browser = aSelf.browser), 0, this); Wrong end bracket there, and missing semicolon. Please attach this patch to a new bug that blocks this one.
Attachment #251819 - Flags: review?(gavin.sharp) → review-
Depends on: 367286
Attachment #251754 - Flags: review?(gavin.sharp) → review+
Product: Firefox → Toolkit
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: