resolve bug_1028190

This feature resolve the bug https://bugzilla.mozilla.org/show_bug.cgi?id=1028190
Thanks!