Mozilla on Friday abruptly canceled the release of its touch-enabled Firefox browser for Windows 8, just four days before it was to ship and after two years of work.