Add simple tests for Brotli compression [pdfium : main]

3 views
Skip to first unread message

Aryan Krishnan (Gerrit)

unread,
May 28, 2026, 1:55:20 PM (7 days ago) May 28
to Lei Zhang, Tom Sepez, Andy Phan, pdfium...@luci-project-accounts.iam.gserviceaccount.com, pdfium-...@googlegroups.com
Attention needed from Andy Phan, Lei Zhang and Tom Sepez

Aryan Krishnan added 8 comments

Commit Message
Line 7, Patchset 9:Add Simple Tests for Brotli Compression
Lei Zhang . resolved

lowercase

Aryan Krishnan

Done

Line 7, Patchset 9:Add Simple Tests for Brotli Compression
Lei Zhang . resolved

lowercase

Aryan Krishnan

Done

File core/fxcodec/BUILD.gn
Line 147, Patchset 9: sources += [] # TODO(https://crbug.com/475855993): Add Brotli source
Lei Zhang . resolved

This is a no-op. Just omit it. The TODO comment is sufficient.

Aryan Krishnan

Done

Line 183, Patchset 9: if (pdf_enable_brotli) {
Lei Zhang . resolved

Is this necessary for unittests?

Aryan Krishnan

Done

Line 192, Patchset 9: if (pdf_enable_brotli) {
Lei Zhang . resolved

Put the conditionals after the non-conditionals.

Aryan Krishnan

Done

File core/fxcodec/brotli/brotli_embeddertest.cpp
Line 8, Patchset 9:class BrotliEmbedderTest : public EmbedderTest {};
Lei Zhang . resolved

`using BrotliEmbedderTest = EmbedderTest;`

Aryan Krishnan

Done

File pdfium.gni
Line 41, Patchset 9: pdf_enable_brotli = false
Lei Zhang . resolved

Try to keep the list somewhat sorted. Move above `pdf_enable_click_logging`.

Aryan Krishnan

Done

File testing/resources/brotli_prototype_a.pdf
File-level comment, Patchset 9:
Lei Zhang . resolved

Where exactly are these files from?

Aryan Krishnan
Open in Gerrit

Related details

Attention is currently required from:
  • Andy Phan
  • Lei Zhang
  • Tom Sepez
Submit Requirements:
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: pdfium
Gerrit-Branch: main
Gerrit-Change-Id: I8162dd98885cf6e75bfe8b5d82f61d7d4252bea1
Gerrit-Change-Number: 148230
Gerrit-PatchSet: 14
Gerrit-Owner: Aryan Krishnan <aryankr...@gmail.com>
Gerrit-Reviewer: Andy Phan <andy...@chromium.org>
Gerrit-Reviewer: Aryan Krishnan <aryankr...@gmail.com>
Gerrit-Reviewer: Lei Zhang <the...@chromium.org>
Gerrit-Reviewer: Tom Sepez <tse...@chromium.org>
Gerrit-Attention: Lei Zhang <the...@chromium.org>
Gerrit-Attention: Tom Sepez <tse...@chromium.org>
Gerrit-Attention: Andy Phan <andy...@chromium.org>
Gerrit-Comment-Date: Thu, 28 May 2026 17:55:15 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Lei Zhang <the...@chromium.org>
unsatisfied_requirement
open
diffy

Aryan Krishnan (Gerrit)

unread,
May 28, 2026, 1:55:55 PM (7 days ago) May 28
to Lei Zhang, Tom Sepez, Andy Phan, pdfium...@luci-project-accounts.iam.gserviceaccount.com, pdfium-...@googlegroups.com
Attention needed from Andy Phan, Lei Zhang and Tom Sepez

Aryan Krishnan added 1 comment

File core/fxcodec/BUILD.gn
Line 147, Patchset 14 (Latest): # TODO(https://crbug.com/475855993): Add Brotli source files here once
Aryan Krishnan . unresolved

Some formatting still left...

Gerrit-Comment-Date: Thu, 28 May 2026 17:55:50 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
unsatisfied_requirement
open
diffy

Lei Zhang (Gerrit)

unread,
May 28, 2026, 2:33:32 PM (7 days ago) May 28
to Aryan Krishnan, Lei Zhang, Tom Sepez, Andy Phan, pdfium...@luci-project-accounts.iam.gserviceaccount.com, pdfium-...@googlegroups.com
Attention needed from Andy Phan, Aryan Krishnan and Tom Sepez

Lei Zhang added 2 comments

File core/fxcodec/BUILD.gn
Line 183, Patchset 9: if (pdf_enable_brotli) {
Lei Zhang . unresolved

Is this necessary for unittests?

Aryan Krishnan

Done

Lei Zhang

Not sure what was done.

File testing/resources/brotli_prototype_a.pdf
File-level comment, Patchset 9:
Lei Zhang . unresolved

Where exactly are these files from?

Aryan Krishnan

From the PDF Association: (as per commit msg)

https://pdfa.org/brotli-compression-coming-to-pdf/#public-prototype-implementation

Lei Zhang

It's a bit vague. Assuming this is https://pdfa.org/download-area/examples/Brotli-Prototype-PDFs.zip, add that to the commit message to be more specific?

Open in Gerrit

Related details

Attention is currently required from:
  • Andy Phan
  • Aryan Krishnan
  • Tom Sepez
Submit Requirements:
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: pdfium
Gerrit-Branch: main
Gerrit-Change-Id: I8162dd98885cf6e75bfe8b5d82f61d7d4252bea1
Gerrit-Change-Number: 148230
Gerrit-PatchSet: 14
Gerrit-Owner: Aryan Krishnan <aryankr...@gmail.com>
Gerrit-Reviewer: Andy Phan <andy...@chromium.org>
Gerrit-Reviewer: Aryan Krishnan <aryankr...@gmail.com>
Gerrit-Reviewer: Lei Zhang <the...@chromium.org>
Gerrit-Reviewer: Tom Sepez <tse...@chromium.org>
Gerrit-Attention: Tom Sepez <tse...@chromium.org>
Gerrit-Attention: Aryan Krishnan <aryankr...@gmail.com>
Gerrit-Attention: Andy Phan <andy...@chromium.org>
Gerrit-Comment-Date: Thu, 28 May 2026 18:33:28 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Lei Zhang <the...@chromium.org>
Comment-In-Reply-To: Aryan Krishnan <aryankr...@gmail.com>
unsatisfied_requirement
open
diffy

Aryan Krishnan (Gerrit)

unread,
May 28, 2026, 3:29:46 PM (7 days ago) May 28
to Lei Zhang, Tom Sepez, Andy Phan, pdfium...@luci-project-accounts.iam.gserviceaccount.com, pdfium-...@googlegroups.com
Attention needed from Andy Phan, Lei Zhang and Tom Sepez

Aryan Krishnan added 2 comments

File core/fxcodec/BUILD.gn
Line 183, Patchset 9: if (pdf_enable_brotli) {
Lei Zhang . resolved

Is this necessary for unittests?

Aryan Krishnan

Done

Lei Zhang

Not sure what was done.

Aryan Krishnan

Removed the same sources += [] no-op.

Assuming then that you want me to remove the whole block?

Done I think.

File testing/resources/brotli_prototype_a.pdf

Where exactly are these files from?

Aryan Krishnan

From the PDF Association: (as per commit msg)

https://pdfa.org/brotli-compression-coming-to-pdf/#public-prototype-implementation

Lei Zhang

It's a bit vague. Assuming this is https://pdfa.org/download-area/examples/Brotli-Prototype-PDFs.zip, add that to the commit message to be more specific?

Aryan Krishnan

Added the link.

Open in Gerrit

Related details

Attention is currently required from:
  • Andy Phan
  • Lei Zhang
  • Tom Sepez
Submit Requirements:
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: pdfium
Gerrit-Branch: main
Gerrit-Change-Id: I8162dd98885cf6e75bfe8b5d82f61d7d4252bea1
Gerrit-Change-Number: 148230
Gerrit-PatchSet: 16
Gerrit-Owner: Aryan Krishnan <aryankr...@gmail.com>
Gerrit-Reviewer: Andy Phan <andy...@chromium.org>
Gerrit-Reviewer: Aryan Krishnan <aryankr...@gmail.com>
Gerrit-Reviewer: Lei Zhang <the...@chromium.org>
Gerrit-Reviewer: Tom Sepez <tse...@chromium.org>
Gerrit-Attention: Lei Zhang <the...@chromium.org>
Gerrit-Attention: Tom Sepez <tse...@chromium.org>
Gerrit-Attention: Andy Phan <andy...@chromium.org>
Gerrit-Comment-Date: Thu, 28 May 2026 19:29:40 +0000
unsatisfied_requirement
open
diffy

Lei Zhang (Gerrit)

unread,
May 28, 2026, 7:57:46 PM (7 days ago) May 28
to Aryan Krishnan, Lei Zhang, Tom Sepez, Andy Phan, pdfium...@luci-project-accounts.iam.gserviceaccount.com, pdfium-...@googlegroups.com
Attention needed from Andy Phan, Aryan Krishnan and Tom Sepez

Lei Zhang added 1 comment

File testing/resources/brotli_prototype_a.pdf
File-level comment, Patchset 9:
Lei Zhang . unresolved

Where exactly are these files from?

Aryan Krishnan

From the PDF Association: (as per commit msg)

https://pdfa.org/brotli-compression-coming-to-pdf/#public-prototype-implementation

Lei Zhang

It's a bit vague. Assuming this is https://pdfa.org/download-area/examples/Brotli-Prototype-PDFs.zip, add that to the commit message to be more specific?

Aryan Krishnan

Added the link.

Lei Zhang

Thanks. It's unclear what license those files are released under. So instead of using PDFA's example, how about creating one from scratch, similar to testing/resources/utf-8.in. Let me know if you need help.

Open in Gerrit

Related details

Attention is currently required from:
  • Andy Phan
  • Aryan Krishnan
  • Tom Sepez
Submit Requirements:
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: pdfium
Gerrit-Branch: main
Gerrit-Change-Id: I8162dd98885cf6e75bfe8b5d82f61d7d4252bea1
Gerrit-Change-Number: 148230
Gerrit-PatchSet: 16
Gerrit-Owner: Aryan Krishnan <aryankr...@gmail.com>
Gerrit-Reviewer: Andy Phan <andy...@chromium.org>
Gerrit-Reviewer: Aryan Krishnan <aryankr...@gmail.com>
Gerrit-Reviewer: Lei Zhang <the...@chromium.org>
Gerrit-Reviewer: Tom Sepez <tse...@chromium.org>
Gerrit-Attention: Tom Sepez <tse...@chromium.org>
Gerrit-Attention: Aryan Krishnan <aryankr...@gmail.com>
Gerrit-Attention: Andy Phan <andy...@chromium.org>
Gerrit-Comment-Date: Thu, 28 May 2026 23:57:42 +0000
unsatisfied_requirement
open
diffy

Aryan Krishnan (Gerrit)

unread,
May 29, 2026, 9:35:46 AM (6 days ago) May 29
to Lei Zhang, Tom Sepez, Andy Phan, pdfium...@luci-project-accounts.iam.gserviceaccount.com, pdfium-...@googlegroups.com
Attention needed from Andy Phan and Tom Sepez

Aryan Krishnan added 1 comment

File core/fxcodec/BUILD.gn
Line 147, Patchset 14: # TODO(https://crbug.com/475855993): Add Brotli source files here once
Aryan Krishnan . resolved

Some formatting still left...

Aryan Krishnan

Done

Open in Gerrit

Related details

Attention is currently required from:
  • Andy Phan
  • Tom Sepez
Submit Requirements:
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: pdfium
Gerrit-Branch: main
Gerrit-Change-Id: I8162dd98885cf6e75bfe8b5d82f61d7d4252bea1
Gerrit-Change-Number: 148230
Gerrit-PatchSet: 17
Gerrit-Owner: Aryan Krishnan <aryankr...@gmail.com>
Gerrit-Reviewer: Andy Phan <andy...@chromium.org>
Gerrit-Reviewer: Aryan Krishnan <aryankr...@gmail.com>
Gerrit-Reviewer: Lei Zhang <the...@chromium.org>
Gerrit-Reviewer: Tom Sepez <tse...@chromium.org>
Gerrit-Attention: Tom Sepez <tse...@chromium.org>
Gerrit-Attention: Andy Phan <andy...@chromium.org>
Gerrit-Comment-Date: Fri, 29 May 2026 13:35:41 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Aryan Krishnan <aryankr...@gmail.com>
unsatisfied_requirement
open
diffy

Aryan Krishnan (Gerrit)

unread,
May 29, 2026, 9:36:59 AM (6 days ago) May 29
to Lei Zhang, Tom Sepez, Andy Phan, pdfium...@luci-project-accounts.iam.gserviceaccount.com, pdfium-...@googlegroups.com
Attention needed from Andy Phan, Lei Zhang and Tom Sepez

Aryan Krishnan added 1 comment

File testing/resources/brotli_prototype_a.pdf
Lei Zhang . unresolved

Where exactly are these files from?

Aryan Krishnan

From the PDF Association: (as per commit msg)

https://pdfa.org/brotli-compression-coming-to-pdf/#public-prototype-implementation

Lei Zhang

It's a bit vague. Assuming this is https://pdfa.org/download-area/examples/Brotli-Prototype-PDFs.zip, add that to the commit message to be more specific?

Aryan Krishnan

Added the link.

Lei Zhang

Thanks. It's unclear what license those files are released under. So instead of using PDFA's example, how about creating one from scratch, similar to testing/resources/utf-8.in. Let me know if you need help.

Aryan Krishnan

Will do, but it might take me a while to get it done.

Open in Gerrit

Related details

Attention is currently required from:
  • Andy Phan
  • Lei Zhang
  • Tom Sepez
Submit Requirements:
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: pdfium
Gerrit-Branch: main
Gerrit-Change-Id: I8162dd98885cf6e75bfe8b5d82f61d7d4252bea1
Gerrit-Change-Number: 148230
Gerrit-PatchSet: 17
Gerrit-Owner: Aryan Krishnan <aryankr...@gmail.com>
Gerrit-Reviewer: Andy Phan <andy...@chromium.org>
Gerrit-Reviewer: Aryan Krishnan <aryankr...@gmail.com>
Gerrit-Reviewer: Lei Zhang <the...@chromium.org>
Gerrit-Reviewer: Tom Sepez <tse...@chromium.org>
Gerrit-Attention: Lei Zhang <the...@chromium.org>
Gerrit-Attention: Tom Sepez <tse...@chromium.org>
Gerrit-Attention: Andy Phan <andy...@chromium.org>
Gerrit-Comment-Date: Fri, 29 May 2026 13:36:55 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
unsatisfied_requirement
open
diffy

Aryan Krishnan (Gerrit)

unread,
May 29, 2026, 10:54:13 AM (6 days ago) May 29
to SLSA Policy Verification Service, Lei Zhang, Tom Sepez, Andy Phan, pdfium...@luci-project-accounts.iam.gserviceaccount.com, pdfium-...@googlegroups.com
Attention needed from Andy Phan, Lei Zhang and Tom Sepez

Aryan Krishnan added 3 comments

Patchset-level comments
File-level comment, Patchset 9:
Aryan Krishnan . unresolved

Also needed to add some local modifications to brotli to get the gn gen to work locally.

Main changes:

1. Default argument for building with fuzzers as true in brotli. This can be changed to false by PDFium args
2. Including pdfium.gni into the file for symbols related to ubsan.

2. Cant be upstreamed.

But I did upload 1 in case any other embedders who use brotli are facing a similar issue, if not perhaps this can be added as a local modification.
https://chromium-review.googlesource.com/c/chromium/src/+/7882000

Before (without local changes):
```
ERROR at //third_party/brotli/BUILD.gn:10:3: Unable to load "~/repo/pdfium/testing/libfuzzer/fuzzer_test.gni".
import("//testing/libfuzzer/fuzzer_test.gni")
^-------------------------------------------
See //core/fxcodec/BUILD.gn:149:17: which caused the file to be included.
deps += [ "../../third_party/brotli:dec" ]
^-----------------------------
```
After (with local changes except setting default to false instead - same effect as us overriding from the PDFium side):
```
Done. Made 811 targets from 221 files in 602ms
```
Aryan Krishnan
File core/fxcodec/brotli/brotli_embeddertest.cpp
Line 13, Patchset 9:TEST_F(BrotliEmbedderTest, DISABLED_PrototypeA) {
Lei Zhang . resolved

Do the tests currently fail if they run?

Aryan Krishnan

Well now my new samples fail at OpenDocument for some reason but I added extra steps which BrotliDecode should pass so we can keep using the existing tests even after we fix the issues.

File testing/resources/brotli_prototype_a.pdf

Where exactly are these files from?

Aryan Krishnan

From the PDF Association: (as per commit msg)

https://pdfa.org/brotli-compression-coming-to-pdf/#public-prototype-implementation

Lei Zhang

It's a bit vague. Assuming this is https://pdfa.org/download-area/examples/Brotli-Prototype-PDFs.zip, add that to the commit message to be more specific?

Aryan Krishnan

Added the link.

Lei Zhang

Thanks. It's unclear what license those files are released under. So instead of using PDFA's example, how about creating one from scratch, similar to testing/resources/utf-8.in. Let me know if you need help.

Aryan Krishnan

Will do, but it might take me a while to get it done.

Aryan Krishnan

Done

Open in Gerrit

Related details

Attention is currently required from:
  • Andy Phan
  • Lei Zhang
  • Tom Sepez
Submit Requirements:
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: pdfium
Gerrit-Branch: main
Gerrit-Change-Id: I8162dd98885cf6e75bfe8b5d82f61d7d4252bea1
Gerrit-Change-Number: 148230
Gerrit-PatchSet: 18
Gerrit-Owner: Aryan Krishnan <aryankr...@gmail.com>
Gerrit-Reviewer: Andy Phan <andy...@chromium.org>
Gerrit-Reviewer: Aryan Krishnan <aryankr...@gmail.com>
Gerrit-Reviewer: Lei Zhang <the...@chromium.org>
Gerrit-Reviewer: SLSA Policy Verification Service <devtools-gerritco...@google.com>
Gerrit-Reviewer: Tom Sepez <tse...@chromium.org>
Gerrit-Attention: Lei Zhang <the...@chromium.org>
Gerrit-Attention: Tom Sepez <tse...@chromium.org>
Gerrit-Attention: Andy Phan <andy...@chromium.org>
Gerrit-Comment-Date: Fri, 29 May 2026 14:54:08 +0000
unsatisfied_requirement
open
diffy

Aryan Krishnan (Gerrit)

unread,
May 29, 2026, 12:40:39 PM (6 days ago) May 29
to SLSA Policy Verification Service, Lei Zhang, Tom Sepez, Andy Phan, pdfium...@luci-project-accounts.iam.gserviceaccount.com, pdfium-...@googlegroups.com
Attention needed from Andy Phan, Lei Zhang and Tom Sepez

Aryan Krishnan added 1 comment

File testing/resources/brotli_prototype_a.pdf
Lei Zhang . resolved

Where exactly are these files from?

Aryan Krishnan

From the PDF Association: (as per commit msg)

https://pdfa.org/brotli-compression-coming-to-pdf/#public-prototype-implementation

Lei Zhang

It's a bit vague. Assuming this is https://pdfa.org/download-area/examples/Brotli-Prototype-PDFs.zip, add that to the commit message to be more specific?

Aryan Krishnan

Added the link.

Lei Zhang

Thanks. It's unclear what license those files are released under. So instead of using PDFA's example, how about creating one from scratch, similar to testing/resources/utf-8.in. Let me know if you need help.

Aryan Krishnan

Will do, but it might take me a while to get it done.

Aryan Krishnan

Done

Aryan Krishnan

Not quite sure if it would really work and it is kind of hard to tell if the OpenDocument() failure is from Brotli or from something else with the strutcure of the PDF.

Gerrit-Comment-Date: Fri, 29 May 2026 16:40:33 +0000
unsatisfied_requirement
open
diffy

Aryan Krishnan (Gerrit)

unread,
May 29, 2026, 11:23:22 PM (6 days ago) May 29
to SLSA Policy Verification Service, Lei Zhang, Tom Sepez, Andy Phan, pdfium...@luci-project-accounts.iam.gserviceaccount.com, pdfium-...@googlegroups.com
Attention needed from Andy Phan, Lei Zhang and Tom Sepez

Aryan Krishnan added 1 comment

Patchset-level comments
File-level comment, Patchset 9:
Aryan Krishnan . resolved

Also needed to add some local modifications to brotli to get the gn gen to work locally.

Main changes:

1. Default argument for building with fuzzers as true in brotli. This can be changed to false by PDFium args
2. Including pdfium.gni into the file for symbols related to ubsan.

2. Cant be upstreamed.

But I did upload 1 in case any other embedders who use brotli are facing a similar issue, if not perhaps this can be added as a local modification.
https://chromium-review.googlesource.com/c/chromium/src/+/7882000

Before (without local changes):
```
ERROR at //third_party/brotli/BUILD.gn:10:3: Unable to load "~/repo/pdfium/testing/libfuzzer/fuzzer_test.gni".
import("//testing/libfuzzer/fuzzer_test.gni")
^-------------------------------------------
See //core/fxcodec/BUILD.gn:149:17: which caused the file to be included.
deps += [ "../../third_party/brotli:dec" ]
^-----------------------------
```
After (with local changes except setting default to false instead - same effect as us overriding from the PDFium side):
```
Done. Made 811 targets from 221 files in 602ms
```
Aryan Krishnan

Have another modification:
https://chromium-review.googlesource.com/c/chromium/src/+/7882511

Aryan Krishnan

Done

Open in Gerrit

Related details

Attention is currently required from:
  • Andy Phan
  • Lei Zhang
  • Tom Sepez
Submit Requirements:
    • requirement is not satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedReview-Enforcement
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: pdfium
    Gerrit-Branch: main
    Gerrit-Change-Id: I8162dd98885cf6e75bfe8b5d82f61d7d4252bea1
    Gerrit-Change-Number: 148230
    Gerrit-PatchSet: 18
    Gerrit-Owner: Aryan Krishnan <aryankr...@gmail.com>
    Gerrit-Reviewer: Andy Phan <andy...@chromium.org>
    Gerrit-Reviewer: Aryan Krishnan <aryankr...@gmail.com>
    Gerrit-Reviewer: Lei Zhang <the...@chromium.org>
    Gerrit-Reviewer: SLSA Policy Verification Service <devtools-gerritco...@google.com>
    Gerrit-Reviewer: Tom Sepez <tse...@chromium.org>
    Gerrit-Attention: Lei Zhang <the...@chromium.org>
    Gerrit-Attention: Tom Sepez <tse...@chromium.org>
    Gerrit-Attention: Andy Phan <andy...@chromium.org>
    Gerrit-Comment-Date: Sat, 30 May 2026 03:23:17 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Aryan Krishnan <aryankr...@gmail.com>
    unsatisfied_requirement
    open
    diffy

    Aryan Krishnan (Gerrit)

    unread,
    May 31, 2026, 12:17:52 AM (5 days ago) May 31
    to SLSA Policy Verification Service, Lei Zhang, Tom Sepez, Andy Phan, pdfium...@luci-project-accounts.iam.gserviceaccount.com, pdfium-...@googlegroups.com
    Attention needed from Andy Phan, Lei Zhang and Tom Sepez

    Aryan Krishnan added 1 comment

    Patchset-level comments
    File-level comment, Patchset 20 (Latest):
    Aryan Krishnan . resolved

    Ok seems like these samples are a bit broken or something - will upload a fix soon...

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Andy Phan
    • Lei Zhang
    • Tom Sepez
    Submit Requirements:
    • requirement is not satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedReview-Enforcement
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: pdfium
    Gerrit-Branch: main
    Gerrit-Change-Id: I8162dd98885cf6e75bfe8b5d82f61d7d4252bea1
    Gerrit-Change-Number: 148230
    Gerrit-PatchSet: 20
    Gerrit-Owner: Aryan Krishnan <aryankr...@gmail.com>
    Gerrit-Reviewer: Andy Phan <andy...@chromium.org>
    Gerrit-Reviewer: Aryan Krishnan <aryankr...@gmail.com>
    Gerrit-Reviewer: Lei Zhang <the...@chromium.org>
    Gerrit-Reviewer: SLSA Policy Verification Service <devtools-gerritco...@google.com>
    Gerrit-Reviewer: Tom Sepez <tse...@chromium.org>
    Gerrit-Attention: Lei Zhang <the...@chromium.org>
    Gerrit-Attention: Tom Sepez <tse...@chromium.org>
    Gerrit-Attention: Andy Phan <andy...@chromium.org>
    Gerrit-Comment-Date: Sun, 31 May 2026 04:17:46 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    unsatisfied_requirement
    open
    diffy

    Aryan Krishnan (Gerrit)

    unread,
    May 31, 2026, 6:52:28 AM (4 days ago) May 31
    to SLSA Policy Verification Service, Lei Zhang, Tom Sepez, Andy Phan, pdfium...@luci-project-accounts.iam.gserviceaccount.com, pdfium-...@googlegroups.com
    Attention needed from Andy Phan, Lei Zhang and Tom Sepez

    Aryan Krishnan added 1 comment

    Patchset-level comments
    File-level comment, Patchset 22 (Latest):
    Aryan Krishnan . resolved

    Hopefully this should fix it.

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Andy Phan
    • Lei Zhang
    • Tom Sepez
    Submit Requirements:
    • requirement is not satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedReview-Enforcement
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: pdfium
    Gerrit-Branch: main
    Gerrit-Change-Id: I8162dd98885cf6e75bfe8b5d82f61d7d4252bea1
    Gerrit-Change-Number: 148230
    Gerrit-PatchSet: 22
    Gerrit-Owner: Aryan Krishnan <aryankr...@gmail.com>
    Gerrit-Reviewer: Andy Phan <andy...@chromium.org>
    Gerrit-Reviewer: Aryan Krishnan <aryankr...@gmail.com>
    Gerrit-Reviewer: Lei Zhang <the...@chromium.org>
    Gerrit-Reviewer: SLSA Policy Verification Service <devtools-gerritco...@google.com>
    Gerrit-Reviewer: Tom Sepez <tse...@chromium.org>
    Gerrit-Attention: Lei Zhang <the...@chromium.org>
    Gerrit-Attention: Tom Sepez <tse...@chromium.org>
    Gerrit-Attention: Andy Phan <andy...@chromium.org>
    Gerrit-Comment-Date: Sun, 31 May 2026 10:52:22 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    unsatisfied_requirement
    open
    diffy

    Aryan Krishnan (Gerrit)

    unread,
    May 31, 2026, 6:55:41 AM (4 days ago) May 31
    to SLSA Policy Verification Service, Lei Zhang, Tom Sepez, Andy Phan, pdfium...@luci-project-accounts.iam.gserviceaccount.com, pdfium-...@googlegroups.com
    Attention needed from Andy Phan, Lei Zhang and Tom Sepez

    Aryan Krishnan voted and added 1 comment

    Votes added by Aryan Krishnan

    Commit-Queue+1

    1 comment

    Patchset-level comments
    File-level comment, Patchset 23 (Latest):
    Aryan Krishnan . resolved

    Fix part 2

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Andy Phan
    • Lei Zhang
    • Tom Sepez
    Submit Requirements:
    • requirement is not satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedReview-Enforcement
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: pdfium
    Gerrit-Branch: main
    Gerrit-Change-Id: I8162dd98885cf6e75bfe8b5d82f61d7d4252bea1
    Gerrit-Change-Number: 148230
    Gerrit-PatchSet: 23
    Gerrit-Owner: Aryan Krishnan <aryankr...@gmail.com>
    Gerrit-Reviewer: Andy Phan <andy...@chromium.org>
    Gerrit-Reviewer: Aryan Krishnan <aryankr...@gmail.com>
    Gerrit-Reviewer: Lei Zhang <the...@chromium.org>
    Gerrit-Reviewer: SLSA Policy Verification Service <devtools-gerritco...@google.com>
    Gerrit-Reviewer: Tom Sepez <tse...@chromium.org>
    Gerrit-Attention: Lei Zhang <the...@chromium.org>
    Gerrit-Attention: Tom Sepez <tse...@chromium.org>
    Gerrit-Attention: Andy Phan <andy...@chromium.org>
    Gerrit-Comment-Date: Sun, 31 May 2026 10:55:37 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    unsatisfied_requirement
    open
    diffy

    Aryan Krishnan (Gerrit)

    unread,
    May 31, 2026, 6:59:53 AM (4 days ago) May 31
    to SLSA Policy Verification Service, Lei Zhang, Tom Sepez, Andy Phan, pdfium...@luci-project-accounts.iam.gserviceaccount.com, pdfium-...@googlegroups.com
    Attention needed from Andy Phan, Lei Zhang and Tom Sepez

    Aryan Krishnan voted Commit-Queue+1

    Commit-Queue+1
    Open in Gerrit

    Related details

    Attention is currently required from:
    • Andy Phan
    • Lei Zhang
    • Tom Sepez
    Submit Requirements:
    • requirement is not satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedReview-Enforcement
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: pdfium
    Gerrit-Branch: main
    Gerrit-Change-Id: I8162dd98885cf6e75bfe8b5d82f61d7d4252bea1
    Gerrit-Change-Number: 148230
    Gerrit-PatchSet: 26
    Gerrit-Owner: Aryan Krishnan <aryankr...@gmail.com>
    Gerrit-Reviewer: Andy Phan <andy...@chromium.org>
    Gerrit-Reviewer: Aryan Krishnan <aryankr...@gmail.com>
    Gerrit-Reviewer: Lei Zhang <the...@chromium.org>
    Gerrit-Reviewer: SLSA Policy Verification Service <devtools-gerritco...@google.com>
    Gerrit-Reviewer: Tom Sepez <tse...@chromium.org>
    Gerrit-Attention: Lei Zhang <the...@chromium.org>
    Gerrit-Attention: Tom Sepez <tse...@chromium.org>
    Gerrit-Attention: Andy Phan <andy...@chromium.org>
    Gerrit-Comment-Date: Sun, 31 May 2026 10:59:49 +0000
    Gerrit-HasComments: No
    Gerrit-Has-Labels: Yes
    unsatisfied_requirement
    open
    diffy

    Aryan Krishnan (Gerrit)

    unread,
    May 31, 2026, 7:21:54 AM (4 days ago) May 31
    to SLSA Policy Verification Service, Lei Zhang, Tom Sepez, Andy Phan, pdfium...@luci-project-accounts.iam.gserviceaccount.com, pdfium-...@googlegroups.com
    Attention needed from Andy Phan, Lei Zhang and Tom Sepez

    Aryan Krishnan voted Commit-Queue+1

    Commit-Queue+1
    Open in Gerrit

    Related details

    Attention is currently required from:
    • Andy Phan
    • Lei Zhang
    • Tom Sepez
    Submit Requirements:
    • requirement is not satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedReview-Enforcement
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: pdfium
    Gerrit-Branch: main
    Gerrit-Change-Id: I8162dd98885cf6e75bfe8b5d82f61d7d4252bea1
    Gerrit-Change-Number: 148230
    Gerrit-PatchSet: 27
    Gerrit-Owner: Aryan Krishnan <aryankr...@gmail.com>
    Gerrit-Reviewer: Andy Phan <andy...@chromium.org>
    Gerrit-Reviewer: Aryan Krishnan <aryankr...@gmail.com>
    Gerrit-Reviewer: Lei Zhang <the...@chromium.org>
    Gerrit-Reviewer: SLSA Policy Verification Service <devtools-gerritco...@google.com>
    Gerrit-Reviewer: Tom Sepez <tse...@chromium.org>
    Gerrit-Attention: Lei Zhang <the...@chromium.org>
    Gerrit-Attention: Tom Sepez <tse...@chromium.org>
    Gerrit-Attention: Andy Phan <andy...@chromium.org>
    Gerrit-Comment-Date: Sun, 31 May 2026 11:21:49 +0000
    Gerrit-HasComments: No
    Gerrit-Has-Labels: Yes
    unsatisfied_requirement
    open
    diffy

    Aryan Krishnan (Gerrit)

    unread,
    May 31, 2026, 7:23:03 AM (4 days ago) May 31
    to SLSA Policy Verification Service, Lei Zhang, Tom Sepez, Andy Phan, pdfium...@luci-project-accounts.iam.gserviceaccount.com, pdfium-...@googlegroups.com
    Attention needed from Andy Phan, Lei Zhang and Tom Sepez

    Aryan Krishnan voted Commit-Queue+1

    Commit-Queue+1
    Open in Gerrit

    Related details

    Attention is currently required from:
    • Andy Phan
    • Lei Zhang
    • Tom Sepez
    Submit Requirements:
    • requirement is not satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedReview-Enforcement
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: pdfium
    Gerrit-Branch: main
    Gerrit-Change-Id: I8162dd98885cf6e75bfe8b5d82f61d7d4252bea1
    Gerrit-Change-Number: 148230
    Gerrit-PatchSet: 29
    Gerrit-Owner: Aryan Krishnan <aryankr...@gmail.com>
    Gerrit-Reviewer: Andy Phan <andy...@chromium.org>
    Gerrit-Reviewer: Aryan Krishnan <aryankr...@gmail.com>
    Gerrit-Reviewer: Lei Zhang <the...@chromium.org>
    Gerrit-Reviewer: SLSA Policy Verification Service <devtools-gerritco...@google.com>
    Gerrit-Reviewer: Tom Sepez <tse...@chromium.org>
    Gerrit-Attention: Lei Zhang <the...@chromium.org>
    Gerrit-Attention: Tom Sepez <tse...@chromium.org>
    Gerrit-Attention: Andy Phan <andy...@chromium.org>
    Gerrit-Comment-Date: Sun, 31 May 2026 11:22:59 +0000
    Gerrit-HasComments: No
    Gerrit-Has-Labels: Yes
    unsatisfied_requirement
    open
    diffy

    Aryan Krishnan (Gerrit)

    unread,
    May 31, 2026, 7:26:04 AM (4 days ago) May 31
    to SLSA Policy Verification Service, Lei Zhang, Tom Sepez, Andy Phan, pdfium...@luci-project-accounts.iam.gserviceaccount.com, pdfium-...@googlegroups.com
    Attention needed from Andy Phan, Lei Zhang and Tom Sepez

    Aryan Krishnan voted Commit-Queue+1

    Commit-Queue+1
    Open in Gerrit

    Related details

    Attention is currently required from:
    • Andy Phan
    • Lei Zhang
    • Tom Sepez
    Submit Requirements:
    • requirement is not satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedReview-Enforcement
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: pdfium
    Gerrit-Branch: main
    Gerrit-Change-Id: I8162dd98885cf6e75bfe8b5d82f61d7d4252bea1
    Gerrit-Change-Number: 148230
    Gerrit-PatchSet: 30
    Gerrit-Owner: Aryan Krishnan <aryankr...@gmail.com>
    Gerrit-Reviewer: Andy Phan <andy...@chromium.org>
    Gerrit-Reviewer: Aryan Krishnan <aryankr...@gmail.com>
    Gerrit-Reviewer: Lei Zhang <the...@chromium.org>
    Gerrit-Reviewer: SLSA Policy Verification Service <devtools-gerritco...@google.com>
    Gerrit-Reviewer: Tom Sepez <tse...@chromium.org>
    Gerrit-Attention: Lei Zhang <the...@chromium.org>
    Gerrit-Attention: Tom Sepez <tse...@chromium.org>
    Gerrit-Attention: Andy Phan <andy...@chromium.org>
    Gerrit-Comment-Date: Sun, 31 May 2026 11:26:00 +0000
    Gerrit-HasComments: No
    Gerrit-Has-Labels: Yes
    unsatisfied_requirement
    open
    diffy

    Aryan Krishnan (Gerrit)

    unread,
    May 31, 2026, 8:37:30 AM (4 days ago) May 31
    to SLSA Policy Verification Service, Lei Zhang, Tom Sepez, Andy Phan, pdfium...@luci-project-accounts.iam.gserviceaccount.com, pdfium-...@googlegroups.com
    Attention needed from Andy Phan, Lei Zhang and Tom Sepez

    Aryan Krishnan voted and added 1 comment

    Votes added by Aryan Krishnan

    Commit-Queue+1

    1 comment

    Patchset-level comments
    File-level comment, Patchset 32 (Latest):
    Aryan Krishnan . resolved

    Try this again maybe?

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Andy Phan
    • Lei Zhang
    • Tom Sepez
    Submit Requirements:
    • requirement is not satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedReview-Enforcement
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: pdfium
    Gerrit-Branch: main
    Gerrit-Change-Id: I8162dd98885cf6e75bfe8b5d82f61d7d4252bea1
    Gerrit-Change-Number: 148230
    Gerrit-PatchSet: 32
    Gerrit-Owner: Aryan Krishnan <aryankr...@gmail.com>
    Gerrit-Reviewer: Andy Phan <andy...@chromium.org>
    Gerrit-Reviewer: Aryan Krishnan <aryankr...@gmail.com>
    Gerrit-Reviewer: Lei Zhang <the...@chromium.org>
    Gerrit-Reviewer: SLSA Policy Verification Service <devtools-gerritco...@google.com>
    Gerrit-Reviewer: Tom Sepez <tse...@chromium.org>
    Gerrit-Attention: Lei Zhang <the...@chromium.org>
    Gerrit-Attention: Tom Sepez <tse...@chromium.org>
    Gerrit-Attention: Andy Phan <andy...@chromium.org>
    Gerrit-Comment-Date: Sun, 31 May 2026 12:37:26 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    unsatisfied_requirement
    open
    diffy

    Aryan Krishnan (Gerrit)

    unread,
    Jun 1, 2026, 12:20:07 PM (3 days ago) Jun 1
    to SLSA Policy Verification Service, Lei Zhang, Tom Sepez, Andy Phan, pdfium...@luci-project-accounts.iam.gserviceaccount.com, pdfium-...@googlegroups.com
    Attention needed from Andy Phan, Lei Zhang and Tom Sepez

    Aryan Krishnan added 1 comment

    File core/fxcodec/brotli/brotli_embeddertest.cpp
    Line 13, Patchset 9:TEST_F(BrotliEmbedderTest, DISABLED_PrototypeA) {
    Lei Zhang . resolved

    Do the tests currently fail if they run?

    Aryan Krishnan

    Well now my new samples fail at OpenDocument for some reason but I added extra steps which BrotliDecode should pass so we can keep using the existing tests even after we fix the issues.

    Aryan Krishnan

    Fixed the issue (turns out my pdfs were broken earlier but they should work now).

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Andy Phan
    • Lei Zhang
    • Tom Sepez
    Submit Requirements:
    • requirement is not satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedReview-Enforcement
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: pdfium
    Gerrit-Branch: main
    Gerrit-Change-Id: I8162dd98885cf6e75bfe8b5d82f61d7d4252bea1
    Gerrit-Change-Number: 148230
    Gerrit-PatchSet: 33
    Gerrit-Owner: Aryan Krishnan <aryankr...@gmail.com>
    Gerrit-Reviewer: Andy Phan <andy...@chromium.org>
    Gerrit-Reviewer: Aryan Krishnan <aryankr...@gmail.com>
    Gerrit-Reviewer: Lei Zhang <the...@chromium.org>
    Gerrit-Reviewer: SLSA Policy Verification Service <devtools-gerritco...@google.com>
    Gerrit-Reviewer: Tom Sepez <tse...@chromium.org>
    Gerrit-Attention: Lei Zhang <the...@chromium.org>
    Gerrit-Attention: Tom Sepez <tse...@chromium.org>
    Gerrit-Attention: Andy Phan <andy...@chromium.org>
    Gerrit-Comment-Date: Mon, 01 Jun 2026 16:20:01 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    unsatisfied_requirement
    open
    diffy

    Lei Zhang (Gerrit)

    unread,
    Jun 2, 2026, 5:54:58 PM (2 days ago) Jun 2
    to Aryan Krishnan, SLSA Policy Verification Service, Lei Zhang, Tom Sepez, Andy Phan, pdfium...@luci-project-accounts.iam.gserviceaccount.com, pdfium-...@googlegroups.com
    Attention needed from Andy Phan, Aryan Krishnan and Tom Sepez

    Lei Zhang added 4 comments

    File BUILD.gn
    Line 167, Patchset 35 (Latest): if (pdf_enable_brotli) {
    Lei Zhang . unresolved

    nit: Move above line 141 to keep the list sorted.

    File pdfium.gni
    Line 23, Patchset 35 (Latest): pdf_enable_brotli = false
    Lei Zhang . unresolved

    CL description should mention this.

    Line 41, Patchset 9: pdf_enable_brotli = false
    Lei Zhang . unresolved

    Try to keep the list somewhat sorted. Move above `pdf_enable_click_logging`.

    Aryan Krishnan

    Done

    Lei Zhang

    Above, not below.

    File testing/resources/brotli_prototype_a.pdf
    Lei Zhang . resolved

    Where exactly are these files from?

    Aryan Krishnan

    From the PDF Association: (as per commit msg)

    https://pdfa.org/brotli-compression-coming-to-pdf/#public-prototype-implementation

    Lei Zhang

    It's a bit vague. Assuming this is https://pdfa.org/download-area/examples/Brotli-Prototype-PDFs.zip, add that to the commit message to be more specific?

    Aryan Krishnan

    Added the link.

    Lei Zhang

    Thanks. It's unclear what license those files are released under. So instead of using PDFA's example, how about creating one from scratch, similar to testing/resources/utf-8.in. Let me know if you need help.

    Aryan Krishnan

    Will do, but it might take me a while to get it done.

    Aryan Krishnan

    Done

    Aryan Krishnan

    Not quite sure if it would really work and it is kind of hard to tell if the OpenDocument() failure is from Brotli or from something else with the strutcure of the PDF.

    Lei Zhang

    I can't actually view the .in files in the web review tool. I suspect it's because the files have binary data. Consider chaining `/ASCII85Decode` to make the content streams ASCII. This is similar to what testing/tools/encode_pdf_filter.py produces, but with `/BrotliDecode` instead of `/FlateDecode`.

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Andy Phan
    • Aryan Krishnan
    • Tom Sepez
    Submit Requirements:
      • requirement is not satisfiedCode-Owners
      • requirement is not satisfiedCode-Review
      • requirement is not satisfiedNo-Unresolved-Comments
      • requirement is not satisfiedReview-Enforcement
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: comment
      Gerrit-Project: pdfium
      Gerrit-Branch: main
      Gerrit-Change-Id: I8162dd98885cf6e75bfe8b5d82f61d7d4252bea1
      Gerrit-Change-Number: 148230
      Gerrit-PatchSet: 35
      Gerrit-Owner: Aryan Krishnan <aryankr...@gmail.com>
      Gerrit-Reviewer: Andy Phan <andy...@chromium.org>
      Gerrit-Reviewer: Aryan Krishnan <aryankr...@gmail.com>
      Gerrit-Reviewer: Lei Zhang <the...@chromium.org>
      Gerrit-Reviewer: SLSA Policy Verification Service <devtools-gerritco...@google.com>
      Gerrit-Reviewer: Tom Sepez <tse...@chromium.org>
      Gerrit-Attention: Tom Sepez <tse...@chromium.org>
      Gerrit-Attention: Aryan Krishnan <aryankr...@gmail.com>
      Gerrit-Attention: Andy Phan <andy...@chromium.org>
      Gerrit-Comment-Date: Tue, 02 Jun 2026 21:54:53 +0000
      unsatisfied_requirement
      open
      diffy

      Aryan Krishnan (Gerrit)

      unread,
      Jun 2, 2026, 11:46:44 PM (2 days ago) Jun 2
      to SLSA Policy Verification Service, Lei Zhang, Tom Sepez, Andy Phan, pdfium...@luci-project-accounts.iam.gserviceaccount.com, pdfium-...@googlegroups.com
      Attention needed from Andy Phan, Lei Zhang and Tom Sepez

      Aryan Krishnan added 3 comments

      File BUILD.gn
      Line 167, Patchset 35: if (pdf_enable_brotli) {
      Lei Zhang . resolved

      nit: Move above line 141 to keep the list sorted.

      Aryan Krishnan

      Done

      File pdfium.gni
      Line 23, Patchset 35: pdf_enable_brotli = false
      Lei Zhang . resolved

      CL description should mention this.

      Aryan Krishnan

      Wait why is this here?

      The previous CL already does that.

      Removed.

      Line 41, Patchset 9: pdf_enable_brotli = false
      Lei Zhang . resolved

      Try to keep the list somewhat sorted. Move above `pdf_enable_click_logging`.

      Aryan Krishnan

      Done

      Lei Zhang

      Above, not below.

      Aryan Krishnan

      Oops - Done!

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Andy Phan
      • Lei Zhang
      • Tom Sepez
      Submit Requirements:
        • requirement is not satisfiedCode-Owners
        • requirement is not satisfiedCode-Review
        • requirement is not satisfiedReview-Enforcement
        Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
        Gerrit-MessageType: comment
        Gerrit-Project: pdfium
        Gerrit-Branch: main
        Gerrit-Change-Id: I8162dd98885cf6e75bfe8b5d82f61d7d4252bea1
        Gerrit-Change-Number: 148230
        Gerrit-PatchSet: 39
        Gerrit-Owner: Aryan Krishnan <aryankr...@gmail.com>
        Gerrit-Reviewer: Andy Phan <andy...@chromium.org>
        Gerrit-Reviewer: Aryan Krishnan <aryankr...@gmail.com>
        Gerrit-Reviewer: Lei Zhang <the...@chromium.org>
        Gerrit-Reviewer: SLSA Policy Verification Service <devtools-gerritco...@google.com>
        Gerrit-Reviewer: Tom Sepez <tse...@chromium.org>
        Gerrit-Attention: Lei Zhang <the...@chromium.org>
        Gerrit-Attention: Tom Sepez <tse...@chromium.org>
        Gerrit-Attention: Andy Phan <andy...@chromium.org>
        Gerrit-Comment-Date: Wed, 03 Jun 2026 03:46:40 +0000
        unsatisfied_requirement
        open
        diffy

        Aryan Krishnan (Gerrit)

        unread,
        Jun 2, 2026, 11:48:44 PM (2 days ago) Jun 2
        to SLSA Policy Verification Service, Lei Zhang, Tom Sepez, Andy Phan, pdfium...@luci-project-accounts.iam.gserviceaccount.com, pdfium-...@googlegroups.com
        Attention needed from Andy Phan, Lei Zhang and Tom Sepez

        Aryan Krishnan added 1 comment

        File testing/resources/brotli_prototype_a.pdf
        Lei Zhang . resolved

        Where exactly are these files from?

        Aryan Krishnan

        From the PDF Association: (as per commit msg)

        https://pdfa.org/brotli-compression-coming-to-pdf/#public-prototype-implementation

        Lei Zhang

        It's a bit vague. Assuming this is https://pdfa.org/download-area/examples/Brotli-Prototype-PDFs.zip, add that to the commit message to be more specific?

        Aryan Krishnan

        Added the link.

        Lei Zhang

        Thanks. It's unclear what license those files are released under. So instead of using PDFA's example, how about creating one from scratch, similar to testing/resources/utf-8.in. Let me know if you need help.

        Aryan Krishnan

        Will do, but it might take me a while to get it done.

        Aryan Krishnan

        Done

        Aryan Krishnan

        Not quite sure if it would really work and it is kind of hard to tell if the OpenDocument() failure is from Brotli or from something else with the strutcure of the PDF.

        Lei Zhang

        I can't actually view the .in files in the web review tool. I suspect it's because the files have binary data. Consider chaining `/ASCII85Decode` to make the content streams ASCII. This is similar to what testing/tools/encode_pdf_filter.py produces, but with `/BrotliDecode` instead of `/FlateDecode`.

        Aryan Krishnan

        Encode_pdf_filter.py is helpful. I can just hotwire the script a bit to work with BrotliDecode on my local fork to help make the PDFs.

        Will work on it.

        Gerrit-Comment-Date: Wed, 03 Jun 2026 03:48:38 +0000
        unsatisfied_requirement
        open
        diffy

        Aryan Krishnan (Gerrit)

        unread,
        Jun 3, 2026, 1:32:33 PM (yesterday) Jun 3
        to SLSA Policy Verification Service, Lei Zhang, Tom Sepez, Andy Phan, pdfium...@luci-project-accounts.iam.gserviceaccount.com, pdfium-...@googlegroups.com
        Attention needed from Andy Phan, Lei Zhang and Tom Sepez

        Aryan Krishnan added 2 comments

        File testing/resources/brotli_prototype_a.pdf
        Lei Zhang . resolved

        Where exactly are these files from?

        Aryan Krishnan

        From the PDF Association: (as per commit msg)

        https://pdfa.org/brotli-compression-coming-to-pdf/#public-prototype-implementation

        Lei Zhang

        It's a bit vague. Assuming this is https://pdfa.org/download-area/examples/Brotli-Prototype-PDFs.zip, add that to the commit message to be more specific?

        Aryan Krishnan

        Added the link.

        Lei Zhang

        Thanks. It's unclear what license those files are released under. So instead of using PDFA's example, how about creating one from scratch, similar to testing/resources/utf-8.in. Let me know if you need help.

        Aryan Krishnan

        Will do, but it might take me a while to get it done.

        Aryan Krishnan

        Done

        Aryan Krishnan

        Not quite sure if it would really work and it is kind of hard to tell if the OpenDocument() failure is from Brotli or from something else with the strutcure of the PDF.

        Lei Zhang

        I can't actually view the .in files in the web review tool. I suspect it's because the files have binary data. Consider chaining `/ASCII85Decode` to make the content streams ASCII. This is similar to what testing/tools/encode_pdf_filter.py produces, but with `/BrotliDecode` instead of `/FlateDecode`.

        Aryan Krishnan

        Encode_pdf_filter.py is helpful. I can just hotwire the script a bit to work with BrotliDecode on my local fork to help make the PDFs.

        Will work on it.

        Aryan Krishnan

        Nevermind decided to just make another python script to do that. But should be done now I think.

        File testing/resources/hello_world_brotli_with_length1.pdf
        Line 39, Patchset 40 (Latest):/Length /Length 92
        Aryan Krishnan . unresolved

        Why are there 2 lengths... Anyway.

        Open in Gerrit

        Related details

        Attention is currently required from:
        • Andy Phan
        • Lei Zhang
        • Tom Sepez
        Submit Requirements:
          • requirement is not satisfiedCode-Owners
          • requirement is not satisfiedCode-Review
          • requirement is not satisfiedNo-Unresolved-Comments
          • requirement is not satisfiedReview-Enforcement
          Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
          Gerrit-MessageType: comment
          Gerrit-Project: pdfium
          Gerrit-Branch: main
          Gerrit-Change-Id: I8162dd98885cf6e75bfe8b5d82f61d7d4252bea1
          Gerrit-Change-Number: 148230
          Gerrit-PatchSet: 40
          Gerrit-Owner: Aryan Krishnan <aryankr...@gmail.com>
          Gerrit-Reviewer: Andy Phan <andy...@chromium.org>
          Gerrit-Reviewer: Aryan Krishnan <aryankr...@gmail.com>
          Gerrit-Reviewer: Lei Zhang <the...@chromium.org>
          Gerrit-Reviewer: SLSA Policy Verification Service <devtools-gerritco...@google.com>
          Gerrit-Reviewer: Tom Sepez <tse...@chromium.org>
          Gerrit-Attention: Lei Zhang <the...@chromium.org>
          Gerrit-Attention: Tom Sepez <tse...@chromium.org>
          Gerrit-Attention: Andy Phan <andy...@chromium.org>
          Gerrit-Comment-Date: Wed, 03 Jun 2026 17:32:28 +0000
          unsatisfied_requirement
          open
          diffy

          Aryan Krishnan (Gerrit)

          unread,
          Jun 3, 2026, 1:34:45 PM (yesterday) Jun 3
          to SLSA Policy Verification Service, Lei Zhang, Tom Sepez, Andy Phan, pdfium...@luci-project-accounts.iam.gserviceaccount.com, pdfium-...@googlegroups.com
          Attention needed from Andy Phan, Lei Zhang and Tom Sepez

          Aryan Krishnan voted and added 1 comment

          Votes added by Aryan Krishnan

          Commit-Queue+1

          1 comment

          File testing/resources/hello_world_brotli_with_length1.pdf
          Line 39, Patchset 40:/Length /Length 92
          Aryan Krishnan . resolved

          Why are there 2 lengths... Anyway.

          Aryan Krishnan

          Done

          Open in Gerrit

          Related details

          Attention is currently required from:
          • Andy Phan
          • Lei Zhang
          • Tom Sepez
          Submit Requirements:
            • requirement is not satisfiedCode-Owners
            • requirement is not satisfiedCode-Review
            • requirement is not satisfiedReview-Enforcement
            Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
            Gerrit-MessageType: comment
            Gerrit-Project: pdfium
            Gerrit-Branch: main
            Gerrit-Change-Id: I8162dd98885cf6e75bfe8b5d82f61d7d4252bea1
            Gerrit-Change-Number: 148230
            Gerrit-PatchSet: 41
            Gerrit-Owner: Aryan Krishnan <aryankr...@gmail.com>
            Gerrit-Reviewer: Andy Phan <andy...@chromium.org>
            Gerrit-Reviewer: Aryan Krishnan <aryankr...@gmail.com>
            Gerrit-Reviewer: Lei Zhang <the...@chromium.org>
            Gerrit-Reviewer: SLSA Policy Verification Service <devtools-gerritco...@google.com>
            Gerrit-Reviewer: Tom Sepez <tse...@chromium.org>
            Gerrit-Attention: Lei Zhang <the...@chromium.org>
            Gerrit-Attention: Tom Sepez <tse...@chromium.org>
            Gerrit-Attention: Andy Phan <andy...@chromium.org>
            Gerrit-Comment-Date: Wed, 03 Jun 2026 17:34:40 +0000
            Gerrit-HasComments: Yes
            Gerrit-Has-Labels: Yes
            Comment-In-Reply-To: Aryan Krishnan <aryankr...@gmail.com>
            unsatisfied_requirement
            open
            diffy

            Aryan Krishnan (Gerrit)

            unread,
            Jun 3, 2026, 1:35:17 PM (yesterday) Jun 3
            to SLSA Policy Verification Service, Lei Zhang, Tom Sepez, Andy Phan, pdfium...@luci-project-accounts.iam.gserviceaccount.com, pdfium-...@googlegroups.com
            Attention needed from Andy Phan, Lei Zhang and Tom Sepez

            Aryan Krishnan voted Commit-Queue+1

            Commit-Queue+1
            Open in Gerrit

            Related details

            Attention is currently required from:
            • Andy Phan
            • Lei Zhang
            • Tom Sepez
            Submit Requirements:
            • requirement is not satisfiedCode-Owners
            • requirement is not satisfiedCode-Review
            • requirement is not satisfiedReview-Enforcement
            Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
            Gerrit-MessageType: comment
            Gerrit-Project: pdfium
            Gerrit-Branch: main
            Gerrit-Change-Id: I8162dd98885cf6e75bfe8b5d82f61d7d4252bea1
            Gerrit-Change-Number: 148230
            Gerrit-PatchSet: 42
            Gerrit-Owner: Aryan Krishnan <aryankr...@gmail.com>
            Gerrit-Reviewer: Andy Phan <andy...@chromium.org>
            Gerrit-Reviewer: Aryan Krishnan <aryankr...@gmail.com>
            Gerrit-Reviewer: Lei Zhang <the...@chromium.org>
            Gerrit-Reviewer: SLSA Policy Verification Service <devtools-gerritco...@google.com>
            Gerrit-Reviewer: Tom Sepez <tse...@chromium.org>
            Gerrit-Attention: Lei Zhang <the...@chromium.org>
            Gerrit-Attention: Tom Sepez <tse...@chromium.org>
            Gerrit-Attention: Andy Phan <andy...@chromium.org>
            Gerrit-Comment-Date: Wed, 03 Jun 2026 17:35:13 +0000
            Gerrit-HasComments: No
            Gerrit-Has-Labels: Yes
            unsatisfied_requirement
            open
            diffy
            Reply all
            Reply to author
            Forward
            0 new messages