Bug 1094066 - APP-CANCELLED key should handled by app first then fall back to system app

https://bugzilla.mozilla.org/show_bug.cgi?id=1094066