Bug 791432 - fix build bustage - no review
Bug 834760: Null-check mAttachedWidgetListener. r=mwu
bug 747540: fix dependencies for java build