Closed Bug 985463 Opened 10 years ago Closed 10 years ago

onclick opens 2 times the same link

Categories

(Core :: DOM: Events, defect)

28 Branch
x86_64
Windows 7
defect
Not set
normal

Tracking

()

VERIFIED FIXED
mozilla31
Tracking Status
firefox28 --- fixed
firefox29 --- verified
firefox30 --- verified
firefox31 --- verified

People

(Reporter: kan3nas, Assigned: smaug)

References

Details

(Keywords: regression)

Attachments

(1 file)

User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:28.0) Gecko/20100101 Firefox/28.0 (Beta/Release)
Build ID: 20140314220517

Steps to reproduce:

1. Please go to http://www.vistabet.gr/t/games/gamesroom.aspx
2. Press on the big banner(the rotating banner) the 3rd,4th and or 5th
images 
3. the link opens on the popup window and on the main page.



Actual results:

The onclick link open on the popup windows and on the main window.
If I use any other browser including e.g. firefox 27 this does not happened.


Expected results:

the link should open only on the popup window
Regression window(m-c)
Good:
http://hg.mozilla.org/mozilla-central/rev/06b3a7aea2c0
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:28.0) Gecko/20100101 Firefox/28.0 ID:20131208154802
Bad:
http://hg.mozilla.org/mozilla-central/rev/551efcc4de6f
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:28.0) Gecko/20100101 Firefox/28.0 ID:20131208185601
Puahlog:
http://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=06b3a7aea2c0&tochange=551efcc4de6f


Regression window(m-i)
Good:
http://hg.mozilla.org/integration/mozilla-inbound/rev/046cf0c4f858
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:28.0) Gecko/20100101 Firefox/28.0 ID:20131207204100
Bad:
http://hg.mozilla.org/integration/mozilla-inbound/rev/2aaff66026ba
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:28.0) Gecko/20100101 Firefox/28.0 ID:20131208075200
Pushlog:
http://hg.mozilla.org/integration/mozilla-inbound/pushloghtml?fromchange=046cf0c4f858&tochange=2aaff66026ba

Regressed by:
Bug 930374 - Event.defaultPrevented shouldn't become true if preventDefault() was called by our internal handler for default action
Blocks: 930374
Component: Untriaged → DOM: Events
Keywords: regression
Product: Firefox → Core
Status: UNCONFIRMED → NEW
Ever confirmed: true
Attached file reduced html
Cannot reproduce on 29 or later? Then, this should be marked as WONTFIX if broken sites are not so many.
I can also reproduce the promlem on Aurora30 and Nightly31.

I am not sure, but this may happen with the combination of GTM (google tag manager) and onclick of <a> tag.
(In reply to Alice0775 White from comment #4)
> I can also reproduce the promlem on Aurora30 and Nightly31.
> 
> I am not sure, but this may happen with the combination of GTM (google tag
> manager) and onclick of <a> tag.

Then, why did you mark them as unaffected?
Depends on: 985988
Naveed, it is possible to have someone working on that? Thanks
Flags: needinfo?(nihsanullah)
(In reply to Sylvestre Ledru [:sylvestre] from comment #7)
> Naveed, it is possible to have someone working on that? Thanks

This was fixed by Bug 985988
Status: NEW → RESOLVED
Closed: 10 years ago
Flags: needinfo?(nihsanullah)
Resolution: --- → FIXED
Cool, thanks Alice!
I can't reproduce this bug using the regression window provided by Alice.
Maybe the provided site http://www.vistabet.gr/t/games/gamesroom.aspx has suffered changes but for me the link are opened in pop-up pages or on the main page, never on both.
Alice can you help verify this bug, since you managed to reproduced it ?
Flags: needinfo?(alice0775)
Keywords: verifyme
Hi 
We fixed it by using this command (in other words delete href and add the link on the onclick 
<a onclick="SB.base.OpenDiv('some-url','popBadSelect2','popVeil2','popLayer2'); return false;"></a>

but you can still reproduce it, using e.g.
<a href="some-url" onclick="SB.base.OpenDiv(this.href,'popBadSelect2','popVeil2','popLayer2'); return false;"></a>

Regards
Kanenas
Thanks for the prompt answer.
Also I'm removing the needinfo request as I managed to reproduce the issue.
Flags: needinfo?(alice0775)
Verified as fixed using the following environment:

FF 29.0b6
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:29.0) Gecko/20100101 Firefox/29.0
Build Id: 20140407135746
Os: Windows 7 x64.
Assignee: nobody → bugs
Target Milestone: --- → mozilla31
Reproduced the initial issue using an old Nightly (2014-03-19), verified as fixed on Firefox 30 beta 2 and latest Aurora.
Status: RESOLVED → VERIFIED
Keywords: verifyme
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: