bug 788224, part 2

patch for bug [788224]

[788224]: https://bugzilla.mozilla.org/show_bug.cgi?id=788224