First of many rapidly opened tabs is malformed

Originator:jalkut
Number:rdar://27108749 Date Originated:30-Jun-2016 06:01 PM
Status:Open Resolved:
Product:Safari Product Version:Sierra Beta
Classification:Serious Bug Reproducible:Always
 
Summary:
I use a JavaScript in conjunction with FogBugz to facilitate quickly opening several bugs in a list in separate tabs. I've noticed since OS X Sierra Beta 1 that the script no longer behaves correctly: the first of several tabs opened, instead of loading the desired/expected URL, is titled "parent-tab://" and contains the content of the original URL that was open when the script was run.

I've narrowed the problem down to an apparent issue with rapidly opening multiple URLs in succession. If only one new URL is opened, it loads fine, but if multiple URLs are opened in succession, the first one gets the bogus treatment.

Steps to Reproduce:
1. Create a new bookmarklet in Safari, or otherwise arrange to have run:

javascript:window.open("http://www.apple.com",%20"_blank");%20window.open("http://www.red-sweater.com",%20"_blank");

2. Arrange for an open Safari window to have only one opened URL (no tabs).

3. Run the script.



Expected Results:
Two new tabs should appear, one with the contents of apple.com, and one with the contents of red-sweater.com.

Actual Results:
Only the red-sweater.com tab loads, with the tab for apple.com showing "parent-tab://".

Version:
Version 10.0 (12602.1.32.7)


Notes:


Configuration:
My MacBook Pro running OS X Sierra Beta
MacBook Pro 2014 edition 15"

Attachments:

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!