Assertion fails when creating a SecurityOrigin from DatabaseIdentifier. That is because a DatabaseIdentifier includes an origin without a path. The fix is to use a different constructor to KRUL, one that does not asert.
Created attachment 27317 [details] Use the KURL constructor that takes 2 parameters instead of one.
Comment on attachment 27317 [details] Use the KURL constructor that takes 2 parameters instead of one. r=me It's always better to have a bug URL in ChangeLog.
Thank you for quick review. I will make sure to add the bug URL in the future. Now I need help in committing this :-)
Landed in r40669