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

Changeset 291823 in webkit


Ignore:
Timestamp:
Mar 24, 2022, 4:23:53 PM (5 years ago)
Author:
Patrick Angle
Message:

REGRESSION(STP142): "A JavaScript exception occured: Can't find variable: utils" from SafariDriver
​https://bugs.webkit.org/show_bug.cgi?id=238335

Reviewed by Devin Rousso.

Following r289467, we can't just copy the WebDriver atom scripts to the build products, since they now need to
have utils.js in any script that uses the utils namespace. The WebKit.framework copy of these scripts are
later used while building safaridriver, so they need to include the scripts as well.

  • WebKit.xcodeproj/project.pbxproj:
Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r291821 r291823  
     12022-03-24  Patrick Angle  <pangle@apple.com>
     2
     3        REGRESSION(STP142): "A JavaScript exception occured: Can't find variable: utils" from SafariDriver
     4        https://bugs.webkit.org/show_bug.cgi?id=238335
     5
     6        Reviewed by Devin Rousso.
     7
     8        Following r289467, we can't just copy the WebDriver atom scripts to the build products, since they now need to
     9        have `utils.js` in any script that uses the `utils` namespace. The `WebKit.framework` copy of these scripts are
     10        later used while building safaridriver, so they need to include the scripts as well.
     11
     12        * WebKit.xcodeproj/project.pbxproj:
     13
    1142022-03-24  Per Arne Vollan  <pvollan@apple.com>
    215
  • trunk/Source/WebKit/WebKit.xcodeproj/project.pbxproj

    r291814 r291823  
    1668616686                        runOnlyForDeploymentPostprocessing = 0;
    1668716687                        shellPath = /bin/sh;
    16688                         shellScript = "DST_DIR=\"$TARGET_BUILD_DIR/$PRIVATE_HEADERS_FOLDER_PATH/atoms\"\nmkdir -p \"$DST_DIR\"\n\nfor ((i = 0; i < ${SCRIPT_INPUT_FILE_COUNT}; ++i)); do\n    eval WEBDRIVER_ATOM=\\${SCRIPT_INPUT_FILE_${i}}\n    ditto \"${WEBDRIVER_ATOM}\" \"${DST_DIR}/${WEBDRIVER_ATOM##*/}\"\ndone\n";
     16688                        shellScript = "DST_DIR=\"$TARGET_BUILD_DIR/$PRIVATE_HEADERS_FOLDER_PATH/atoms\"\nmkdir -p \"$DST_DIR\"\n\nfor ((i = 0; i < ${SCRIPT_INPUT_FILE_COUNT}; ++i)); do\n    eval WEBDRIVER_ATOM=\\${SCRIPT_INPUT_FILE_${i}}\n    python3 ${SRCROOT}/Scripts/generate-automation-atom.py \"${WEBDRIVER_ATOM}\" \"${DST_DIR}/${WEBDRIVER_ATOM##*/}\"\ndone\n";
    1668916689                };
    1669016690                A55DEAA61670402E003DB841 /* Check For Inappropriate Macros in External Headers */ = {
Note: See TracChangeset for help on using the changeset viewer.