fix bug 1046716 - Ensure parent is respected with clone

https://bugzilla.mozilla.org/show_bug.cgi?id=1046716