To be fair, I believe Toyota settled a class action suit and realized a government mandated recall was looming, so they undertook a service campaign to inspect, and coat or replace affected frames, and extend their warranties. It's to their credit that Toyota dealt with it as they did, but I don't think they're necessarily being held to a higher standard than other manufacturers.
Contrary to what
@b dkw1 said, there wasn't a "design flaw" involved. The corrosion was determined to be the result of manufacturing defects; the frame design wasn't changed.