1. Open a page.
2. Tab to a link.
3. Press CTRL+Enter to open the link in a new tab.
Expected: Link should open in new tab.
Actual: Nothing happens.
This is a regression first seen in the July 23, 2011 build. Regression range is:
Regresson window(build-system hourly):
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:8.0a1) Gecko/20110719 Firefox/8.0a1 ID:20110719090011
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:8.0a1) Gecko/20110719 Firefox/8.0a1 ID:20110719092300
09b2569edec2 Kyle Huey — Bug 646157: Prevent 2^n growth in event dispatch in a chain of nested labels. r=smaug Prior to this patch, Gecko allowed bubbling click events to trigger multiple <label>s, and for the synthetic click events generated by <label>s to also trigger additional <label>s. In contrast, Opera allows only the latter, and Webkit/IE allow neither. Gecko's behavior leads to 2^n events being dispatched in the case of markup like: <label for="thing1" /><input type="foo" name="thing1" /> <label for="thing2" /><input type="foo" name="thing2" /> ... After this patch a bubbling click event triggers at most one <label>, and the synthetic click event cannot trigger additional labels. Our behavior is still not identical to Webkit/IE though, because in Gecko a click event will still bubble up past a <label>, while in Webkit/IE the click event will stop at the <label>.
This also broke
Shift+Enter to open link in new window.
Alt+Enter to save link.
Created attachment 548203 [details] [diff] [review]
We're overwriting the trusted flag on the event, which causes much sadness.
This needs a test ...
*** Bug 674194 has been marked as a duplicate of this bug. ***
Verified fixed in Mozilla/5.0 (Windows NT 6.1; WOW64; rv:8.0a1) Gecko/20110727 Firefox/8.0a1