Closed Bug 218203 Opened 22 years ago Closed 22 years ago

Crash when trying to show prompt from onunload

Categories

(Core Graveyard :: Embedding: GTK Widget, defect)

x86
Linux
defect
Not set
critical

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: chpe, Assigned: blizzard)

Details

(Keywords: crash, testcase)

Attachments

(2 files)

User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20020823 Netscape/7.0 Build Identifier: Mozilla/5.0 (X11; U; Linux i686; de-AT; rv:1.5b) Gecko/20030825 The attached testcase tries to show an alert in onUnload. However, in epiphany, galeon and TestGtkEmbed it crashes instead in GtkPromptService::GetGtkWindowForDOMWindow() on this line: siteWindow->GetSiteWindow((void**)&parentWidget); because siteWindow is null. Note that this is not the same bug as bug 211834 . Reproducible: Always Steps to Reproduce: 1) Load attached test case. 2) Close browser window or tab. Actual Results: Crash. Expected Results: onunload alert is shown.
Severity: normal → critical
Keywords: crash, testcase
Attachment #130847 - Flags: superreview?(blizzard)
Attachment #130847 - Flags: review?(bryner)
Attachment #130847 - Flags: superreview?(blizzard) → superreview+
Status: UNCONFIRMED → NEW
Ever confirmed: true
Attachment #130847 - Flags: review?(bryner) → review+
Comment on attachment 130847 [details] [diff] [review] proposed fix This is an important issue for embed. The patch is a simple NULL check that fixes a crasher, so I think there's no risk at all.
Attachment #130847 - Flags: approval1.5?
Comment on attachment 130847 [details] [diff] [review] proposed fix a=asa (on behalf of drivers) for checkin to Mozilla 1.5
Attachment #130847 - Flags: approval1.5? → approval1.5+
Fix checked in.
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: