Issue 1100740

There would be a conflict with this patch : https://bugzilla.mozilla.org/show_bug.cgi?id=1031175 please check changed API here.