When an object's ownership changes in-world (not via taking it and giving inventory), the contents of the object remain owned by the original owner.
Steps to reproduce:
1. Create an object
2. Add a script to it.
3. Set both the object and the script to have full next-owner permissions.
4. Set the object for sale.
5. Have a friend buy it.
— OR —
1. Create an object
2. Add a script to it.
3. Set both the object and the script to have full next-owner permissions.
4. Set both the object and the script inside it to "share with group".
5. Have a fellow group member shift-drag the object.
Observed results in either case:
The new owner will be listed as the owner for the object itself. However, they will not have full permissions on the script itself. YOU, however, will continue to have full permissions on the script in both cases. Further examination will show that you are, in fact, listed as the owner in the properties window for the script. This is because the sim doesn't actually transfer ownership of the script or any other contents items to the new owner.
You can fix this by "nudging" the script. You right-click the script and select properties, then change its name. This causes the sim to notice that it's not owned by the owner of the object (which technically shouldn't be possible), and it fixes it by processing the transfer. The new owner can also sometimes jigger the script enough to get the ownership to transfer to them.
Expected results:
Object contents should always be owned by the owner of the object.
This is the underlying reason behind the problems created in step 11 of VWR-47
This makes it very fustrating to sell a build with property.