Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Get the url from the
result
array in GeckoProfiler.stop
Previously for gecko profiler commands we were getting the test url by running a script that returns `document.documentURI`. This was working fine for most cases. But when one of our tests actually navigates to a different page from the starting page, it gets the destination url instead of the initial url. Since we need the initial url, it's better not to get the url like this, and get it directly from the `result` array. Note that chrome trace command does something similar [here](https://github.com/sitespeedio/browsertime/blob/e3e5a46f6c9070c0ab66e543b85e60d021edc848/lib/core/engine/command/chromeTrace.js#L42).
- Loading branch information