bugzilla.mozilla.org will be intermittently unavailable on Saturday, March 24th, from 16:00 until 20:00 UTC.

Segfault in nsTypeAheadFind.cpp




Find Backend
6 years ago
6 years ago


(Reporter: protz, Unassigned)


Firefox Tracking Flags

(Not tracked)



(1 attachment)



6 years ago
Created attachment 585214 [details]

In my addon (Thunderbird Conversations), I'm trying to reuse the find code to make it search a *chrome* browser that contains *content* iframes. Apart from the fact that it doesn't work well, it also segfaults brutally as soon as I reassign the find bar (using its browserid="" attribute) to a chrome browser that's marked as *content*.

Original discussion: https://groups.google.com/d/topic/mozilla.dev.extensions/_BRbMVub7wY/discussion

Comment 1

6 years ago
Sorry, the last part was "to a *XUL* browser that's marked as content".

Comment 2

6 years ago
(In reply to Jonathan Protzenko from comment #0)
> I reassign the find bar (using its browserid="" attribute)
That won't work; the attribute is only used to populate the internal cached element shortly after construction and is then ignored. Instead you should probably set findbar.browser to the new browser DOM element directly. The crash is probably happening because you're trying to find on a deleted browser but the chances are the code wasn't designed to check for that case.
You need to log in before you can comment on or make changes to this bug.