⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 273790 in webkit


Ignore:
Timestamp:
Mar 2, 2021, 7:08:30 PM (6 years ago)
Author:
Alan Coon
Message:

Cherry-pick r273304. rdar://problem/74953207

[macOS] Crash under AuxiliaryProcess::initializeSandbox
​https://bugs.webkit.org/show_bug.cgi?id=222233

Unreviewed, address additional review feedback.

Add comment and logging when the WebKit client is setting the user directory suffix.

  • Shared/mac/AuxiliaryProcessMac.mm: (WebKit::initializeSandboxParameters):

git-svn-id: ​https://svn.webkit.org/repository/webkit/trunk@273304 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Location:
branches/safari-612.1.5-branch/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/safari-612.1.5-branch/Source/WebKit/ChangeLog

    r273789 r273790  
     12021-03-02  Alan Coon  <alancoon@apple.com>
     2
     3        Cherry-pick r273304. rdar://problem/74953207
     4
     5    [macOS] Crash under AuxiliaryProcess::initializeSandbox
     6    https://bugs.webkit.org/show_bug.cgi?id=222233
     7   
     8    Unreviewed, address additional review feedback.
     9   
     10    Add comment and logging when the WebKit client is setting the user directory suffix.
     11   
     12   
     13    * Shared/mac/AuxiliaryProcessMac.mm:
     14    (WebKit::initializeSandboxParameters):
     15   
     16   
     17    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@273304 268f45cc-cd09-0410-ab3c-d52691b4dbfc
     18
     19    2021-02-23  Per Arne Vollan  <pvollan@apple.com>
     20
     21            [macOS] Crash under AuxiliaryProcess::initializeSandbox
     22            https://bugs.webkit.org/show_bug.cgi?id=222233
     23
     24            Unreviewed, address additional review feedback.
     25
     26            Add comment and logging when the WebKit client is setting the user directory suffix.
     27
     28            * Shared/mac/AuxiliaryProcessMac.mm:
     29            (WebKit::initializeSandboxParameters):
     30
    1312021-03-02  Alan Coon  <alancoon@apple.com>
    232
  • branches/safari-612.1.5-branch/Source/WebKit/Shared/mac/AuxiliaryProcessMac.mm

    r273788 r273790  
    642642        if (userDirectorySuffix != parameters.extraInitializationData.end()) {
    643643            String suffix = userDirectorySuffix->value;
     644            WTFLogAlways("WebKit client is requesting user directory suffix: %s", suffix.utf8().data());
     645            // Make sure the user directory suffix is not a path, since confstr will fail when the path does not exist.
    644646            auto firstPathSeparator = suffix.find("/");
    645             if (firstPathSeparator != notFound)
     647            if (firstPathSeparator != notFound) {
    646648                suffix.truncate(firstPathSeparator);
     649                WTFLogAlways("User directory suffix is a path, which will be truncated: %s", suffix.utf8().data());
     650            }
    647651            sandboxParameters.setUserDirectorySuffix(suffix);
    648652        } else {
Note: See TracChangeset for help on using the changeset viewer.