Wish we could [port this over to DRF](https://bugzilla.mozilla.org/show_bug.cgi?id=883480) :-/