1. Remove the rear door trim.
2. Remove the screw and bolt, then remove the glass guide.

3. Remove the quarter window and the molding together in one piece.
4. Remove the molding from the glass.
5. Install in the reverse order of removal.
Windshield installation
Rear window glass removalMazda 6 Service Manual: Gate operator/Canadian Programming
Canadian radio-frequency laws require transmitter signals to “time-out” (or quit)
after several seconds of transmission — which may not be long enough for HomeLink
to pick up the signal during programming. Similar to this Canadian law, some U.S.
gate operators are designed to “time-out ...
Mazda 6 Service Manual: Curtain Air Bags
The curtain air bags are mounted in the front and rear window pillars, and the
roof edge along both sides.
When the air bag crash sensors detect a side impact of greater than moderate
force, the curtain air bag inflates quickly and helps to reduce injury mainly to
the rear outboard passenger' ...