diff options
Diffstat (limited to 'testing/talos/talos/pageloader/chrome/report.js')
-rw-r--r-- | testing/talos/talos/pageloader/chrome/report.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/testing/talos/talos/pageloader/chrome/report.js b/testing/talos/talos/pageloader/chrome/report.js index 7f5d61922a..d1eea8f3c9 100644 --- a/testing/talos/talos/pageloader/chrome/report.js +++ b/testing/talos/talos/pageloader/chrome/report.js @@ -4,6 +4,11 @@ // given an array of strings, finds the longest common prefix function findCommonPrefixLength(strs) { + if (strs.every(str => str.includes("/pdfs/"))) { + // In all cases for pdfpaint PDFs, return the full file name + return strs[0].lastIndexOf("/") + 1; + } + if (strs.length < 2) { // only one page in the manifest // i.e. http://localhost/tests/perf-reftest/bloom-basic.html |