Browsing: defect detection and prevention