[webkit-changes] [WebKit/WebKit] cb1f64: Replace checks for ending slash in file paths with...

Rose noreply at github.com
Sun Mar 5 14:04:51 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: cb1f64337310fec41266ad91ef5600b6a45808c5
      https://github.com/WebKit/WebKit/commit/cb1f64337310fec41266ad91ef5600b6a45808c5
  Author: Rose <83477269+AtariDreams at users.noreply.github.com>
  Date:   2023-03-05 (Sun, 05 Mar 2023)

  Changed paths:
    M Source/WTF/wtf/cocoa/FileSystemCocoa.mm
    M Source/WebKit/Shared/Cocoa/SandboxExtensionCocoa.mm

  Log Message:
  -----------
  Replace checks for ending slash in file paths with runtime assertions
https://bugs.webkit.org/show_bug.cgi?id=253253

Reviewed by Alexey Proskuryakov.

This issue has been long fixed on iOS Simulator. Therefore, this check
is safe to turn into a runtime assertion.

* Source/WTF/wtf/cocoa/FileSystemCocoa.mm:(openTemporaryFile): Change
  temporaryFilePath.last() check to a runtime assertion.

* Source/WebKit/Shared/Cocoa/SandboxExtensionCocoa.mm:(createHandleForTemporaryFile): Ditto.

Canonical link: https://commits.webkit.org/261246@main




More information about the webkit-changes mailing list