hmm I think we should move the `newURI` function in `sdk/url` to `sdk/url/utils` then use it here and replace line 38 to 41 with `let pageURI = newURI(uri)` where `let { newURI } = require('sdk/url/utils');` is at the top of this file.