the heatsink on the primary side is usually connected to the "hot" ground, or sometimes just left floating. since many devices using an offline switcher are only using ungrounded power cords (blu-ray players, home theater all-in-ones, etc...), grounding that primary heatsink to the chassis could become a safety hazard if the FETs drain were to arc through to the heatsink (such as might happen with a lightning strike) it's ok to chassis ground the secondary side het sinks, but a bad idea for the primary side.