Page MenuHomePhabricator

Bug 1627263 - Provide the nonce for speculative style preloads. r?smaug
ClosedPublic

Authored by tschuster on Jul 19 2023, 9:52 AM.
Referenced Files
Unknown Object (File)
Wed, Oct 15, 7:17 PM
Unknown Object (File)
Jun 18 2025, 2:54 PM
Unknown Object (File)
Jan 16 2025, 12:53 PM
Unknown Object (File)
Jan 16 2025, 9:40 AM
Unknown Object (File)
Jan 14 2025, 12:46 PM
Unknown Object (File)
Jan 8 2025, 12:04 PM
Unknown Object (File)
Dec 28 2024, 2:44 PM
Unknown Object (File)
Feb 3 2024, 8:42 PM

Event Timeline

tschuster created this revision.
phab-bot changed the visibility from "Custom Policy" to "Public (No Login Required)".Jul 19 2023, 9:52 AM
phab-bot changed the edit policy from "Custom Policy" to "Restricted Project (Project)".
phab-bot removed a project: secure-revision.

Code analysis found 7 defects in diff 744098:

  • 1 defect found by clang-format
  • 1 defect found by clang-format (Mozlint)
  • 5 build errors found by clang-tidy
WARNING: Found 2 defects (warning level) that can be dismissed.
IMPORTANT: Found 5 defects (error level) that must be fixed before landing.

You can run this analysis locally with:

  • ./mach static-analysis check --outgoing (C/C++)
  • ./mach clang-format -p dom/base/Document.cpp
  • ./mach lint --warnings --outgoing

For your convenience, here is a patch that fixes all the clang-format defects (use it in your repository with hg import or git apply -p0).


If you see a problem in this automated review, please report it here.

You can view these defects in the Diff Detail section of Phabricator diff 744098.

tschuster edited the summary of this revision. (Show Details)

Code analysis found 1 defect in diff 745159:

  • 1 defect found by clang-format

1 defect unresolved and 6 defects closed compared to the previous diff 744098.

WARNING: Found 1 defect (warning level) that can be dismissed.

You can run this analysis locally with:

  • ./mach clang-format -p dom/base/Document.cpp

For your convenience, here is a patch that fixes all the clang-format defects (use it in your repository with hg import or git apply -p0).


If you see a problem in this automated review, please report it here.

You can view these defects in the Diff Detail section of Phabricator diff 745159.

tschuster updated this revision to Diff 745404.
tschuster retitled this revision from WIP: Bug 1627263 - Provide the nonce for speculative style preloads. to Bug 1627263 - Provide the nonce for speculative style preloads. r?smaug.
tschuster added a reviewer: smaug.
smaug requested changes to this revision.Jul 21 2023, 3:55 PM

Hmm, so the patch explicitly is not passing nonce for preloads, only speculative loads, yet the commit message says this is about preloads.
I'm confused.

This revision now requires changes to proceed.Jul 21 2023, 3:55 PM

Or does this just need a tweak to the commit message?

The commit message is already "... speculative style preloads" though?

tschuster updated this revision to Diff 745462.

But what is preload there? There are speculative loads, but the preload part explicitly doesn't handle nonce, no?

But I think the commit message just could use some clarification.

Do we have some tests for all this stuff?

This revision is now accepted and ready to land.Jul 21 2023, 7:11 PM

This revision requires a Testing Policy Project Tag to be set before landing. Please apply one of testing-approved, testing-exception-unchanged, testing-exception-ui, testing-exception-elsewhere, testing-exception-other. Tip: this Firefox add-on makes it easy!