Closed Bug 337259 Opened 18 years ago Closed 18 years ago

crash when left-clicking links with target=_blank

Categories

(Core :: DOM: Core & HTML, defect)

1.8 Branch
x86
Windows XP
defect
Not set
major

Tracking

()

VERIFIED FIXED
mozilla1.8.1beta1

People

(Reporter: bugmozz, Assigned: enndeakin)

References

Details

(Keywords: crash, fixed1.8.1, regression)

Attachments

(2 files)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8) Gecko/20060508 BonEcho/2.0a2
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8) Gecko/20060508 BonEcho/2.0a2 ID:2006050823

[example]
http://forums.mozillazine.org/viewtopic.php?t=414203

regresshin between 2006050803 and 2006050823
[range]
http://tinderbox.mozilla.org/bonsai/cvsquery.cgi?treeid=default&module=all&branch=MOZILLA_1_8_BRANCH&branchtype=match&dir=&file=&filetype=match&who=&whotype=match&sortby=Date&hours=2&date=explicit&mindate=2006-05-08+03%3A00%3A00&maxdate=2006-05-08+23%3A00%3A00&cvsroot=%2Fcvsroot

Reproducible: Always

Steps to Reproduce:
1.click Bug#
2.CRASH with no dialog, no QFA/TB
3.
If this helps, it also happens with Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8) Gecko/20060508 <strong>BonEcho/2.0a1 ID:2006050821</strong>
talkback is disabled (maxversion still 2.0a1)

http://talkback-public.mozilla.org/search/start.jsp?search=2&type=iid&id=TB18469427G
an option to set ? 2.0a2 would have been usefull
Severity: normal → blocker
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: regression
Version: unspecified → 2.0 Branch
Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.9a1) Gecko/20060509 Minefield/3.0a1

Using the link to Community:Bug_Day at the top of the page you linked to, the page opened in a new tab (no crash).

Am I missing a part of your recipe?
(In reply to comment #4)
> Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.9a1) Gecko/20060509
> Minefield/3.0a1
> 
> Using the link to Community:Bug_Day at the top of the page you linked to, the
> page opened in a new tab (no crash).
> 
> Am I missing a part of your recipe?
> 
Maybe that it's a Windows build bug.
(In reply to comment #4)
> Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.9a1) Gecko/20060509
> Minefield/3.0a1

BUG on Bon Echo, not on Minefield.
This should definently block alpha 2.

Added keyword: zt4newcrash, About as close as it gets to a keyword needed to block.
Keywords: zt4newcrash
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8) Gecko/20060508 BonEcho/2.0a1 ID:2006050803

I can't reproduce this one... Am I missing something? 

I clicked every bug # on that page and BonEcho didn't die once.
(In reply to comment #8)
> Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8) Gecko/20060508
> BonEcho/2.0a1 ID:2006050803
> 
> I can't reproduce this one... Am I missing something? 
> 
> I clicked every bug # on that page and BonEcho didn't die once.
> 
NM... Apparently I missed "2.0a2." My apologies. 

Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1a2) Gecko/20060509 BonEcho/2.0a2 ID:2006050905

no matter which you set to "new windows" or to "new tabs in..." (Options>tabs>Open links...)

to open links 
by middle-click : NO Crash
by left-click : CRASH
Summary: CRASH when click links with target=_blank → CRASH when click links with target=_blank by left-click (no prob by middle-click)
(In reply to comment #3)
> an option to set ? 2.0a2 would have been usefull

Set blocking-firefox2? and put the target milestone at Firefox 2 alpha 2.
Flags: blocking-firefox2?
Target Milestone: --- → Firefox 2 alpha2
(In reply to comment #10)
> to open links 
> by middle-click : NO Crash
> by left-click : CRASH
> 
In addition (in case it matters)...
Right-Click + Open Link in New Tab will NOT cause a crash.
Right-Click + Open Link in New Window will NOT cause a crash.
Blocks: 337193
url is null at:
http://bonsai.mozilla.org/cvsblame.cgi?file=mozilla/dom/src/base/nsGlobalWindow.cpp&rev=1.761.2.34&mark=6041#6035
Assignee: nobody → general
Component: General → DOM
Flags: blocking-firefox2?
Product: Firefox → Core
QA Contact: general → ian
Target Milestone: Firefox 2 alpha2 → ---
Version: 2.0 Branch → 1.8 Branch
Over to deakin since this appears to be Storage related.
Assignee: general → enndeakin
Summary: CRASH when click links with target=_blank by left-click (no prob by middle-click) → crash when left-clicking links with target=_blank
Target Milestone: --- → mozilla1.8.1alpha2
Flags: blocking1.8.1?
This probably also crashes on 

  javascript:window.open()

if I understand the stack correctly...
(In reply to comment #16)
> This probably also crashes on javascript:window.open()

Yes, it does.
I think this is the right fix, but haven't been able to test it.
Attachment #221473 - Flags: superreview?(jst)
Attachment #221473 - Flags: review?(jst)
retargetted at beta 1
Target Milestone: mozilla1.8.1alpha2 → mozilla1.8.1beta1
(In reply to comment #18)
> Created an attachment (id=221473) [edit]
> Check for null url
> 
> I think this is the right fix, but haven't been able to test it.
> 

I can confirm that this patch fixes the problem...
*** Bug 337328 has been marked as a duplicate of this bug. ***
(In reply to comment #19)
> retargetted at beta 1
> 

Mike, are you serious? A release is gonna ship with such a noticeable crasher? Granted it's only an Alpha but come on. I could understand a crash that only happens if you click this, then minimize window, then open options menu...whatever...but this is such an easy to reproduce crash and will be the top crasher. There should be a respin to get that patch in if it fixes the problem. 
Kurt, the bug that caused this crash is being backed out of the branch.  Please see .planning.
(In reply to comment #23)
> Kurt, the bug that caused this crash is being backed out of the branch.  Please
> see .planning.
> 

Thanks borris, had not had a chance to read the minutes yet and didn't see it say in this bug that there was going to be a backout that would fix this.
No longer blocks: 337193
I get the same issue with MacOS X build.

Go to http://forums.mozillazine.org/viewtopic.php?t=414615 then left-click on "ATLANTIA (Mac)" link => Firefox crashes.

Build ID : Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8.1a2) Gecko/20060509 BonEcho/2.0a2 ID:2006050907
(In reply to comment #25)
> I get the same issue with MacOS X build.
> 
> Go to http://forums.mozillazine.org/viewtopic.php?t=414615 then left-click on
> "ATLANTIA (Mac)" link => Firefox crashes.
> 
> Build ID : Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8.1a2)
> Gecko/20060509 BonEcho/2.0a2 ID:2006050907
> 

The good news is that this is now fixed on Windows
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1a2) Gecko/20060509 BonEcho/2.0a2 ID:2006050921
*** Bug 337402 has been marked as a duplicate of this bug. ***
Comment on attachment 221473 [details] [diff] [review]
Check for null url

arg, i've tried to write this comment before. my networks don't like me.

please use !url.IsEmpty() instead of .get().
The patch that caused this has been backed out, so no not blocking anything anymore.
Severity: blocker → major
Comment on attachment 221473 [details] [diff] [review]
Check for null url

r+sr=jst, but how about just sticking the url.get() check in the containing if (newDocShell && thisWebNav) check instead of having a nested if checking for that only?
Attachment #221473 - Flags: superreview?(jst)
Attachment #221473 - Flags: superreview+
Attachment #221473 - Flags: review?(jst)
Attachment #221473 - Flags: review+
Fixed by recheckin of storage
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
If this is now fixed on the 1.8 branch, could somebody add fixed1.8.1 or remove the blocking1.8.1? nomination, whichever is more appropriate?
Flags: blocking1.8.1?
Keywords: fixed1.8.1
verifying as fixed, doesn't crash for me with the testcase in newest nightly, do we need a test to make sure this doesn't happen again? can we test for this anywhere other than litmus?
-> verified
Status: RESOLVED → VERIFIED
Flags: in-testsuite?
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: