gecko-dev/browser/components/migration
Gabriele Svelto 69790bc62e Bug 1600545 - Remove useless inclusions of header files generated from IDL files in accessible/, browser/, caps/, chrome/, devtools/, docshell/, editor/, extensions/, gfx/, hal/, image/, intl/, ipc/, js/, layout/, and media/ r=Ehsan
The inclusions were removed with the following very crude script and the
resulting breakage was fixed up by hand. The manual fixups did either
revert the changes done by the script, replace a generic header with a more
specific one or replace a header with a forward declaration.

find . -name "*.idl" | grep -v web-platform | grep -v third_party | while read path; do
    interfaces=$(grep "^\(class\|interface\).*:.*" "$path" | cut -d' ' -f2)
    if [ -n "$interfaces" ]; then
        if [[ "$interfaces" == *$'\n'* ]]; then
          regexp="\("
          for i in $interfaces; do regexp="$regexp$i\|"; done
          regexp="${regexp%%\\\|}\)"
        else
          regexp="$interfaces"
        fi
        interface=$(basename "$path")
        rg -l "#include.*${interface%%.idl}.h" . | while read path2; do
            hits=$(grep -v "#include.*${interface%%.idl}.h" "$path2" | grep -c "$regexp" )
            if [ $hits -eq 0 ]; then
                echo "Removing ${interface} from ${path2}"
                grep -v "#include.*${interface%%.idl}.h" "$path2" > "$path2".tmp
                mv -f "$path2".tmp "$path2"
            fi
        done
    fi
done

Differential Revision: https://phabricator.services.mozilla.com/D55443

--HG--
extra : moz-landing-system : lando
2019-12-06 09:16:44 +00:00
..
content Bug 1592369 - Rewrite [align="left"] to [align="start"] and [align="right"] to [align="end"] in XUL elements r=NeilDeakin 2019-11-19 20:30:34 +00:00
tests Bug 1558330 - disable test_MigrationUtils_timedRetry.js on mac shippable r=egao 2019-11-27 07:11:51 +00:00
.eslintrc.js
360seProfileMigrator.jsm Bug 1578683 Turn on ESLint rule prefer-boolean-length-check for toolkit and browser r=Standard8 2019-09-14 09:39:26 +00:00
ChromeMacOSLoginCrypto.jsm Bug 1423714 - Add a module to decrypt Chrome/Chromium Login Data from macOS. r=Gijs 2019-09-18 04:47:22 +00:00
ChromeMigrationUtils.jsm
ChromeProfileMigrator.jsm Bug 1423714 - Import logins from Chrome/Chromium on macOS. r=Gijs 2019-09-18 04:47:34 +00:00
components.conf Bug 1423714 - Add an API to retrieve a password from Keychain by account and service. r=mstange 2019-09-18 04:47:10 +00:00
EdgeProfileMigrator.jsm Bug 1578683 Turn on ESLint rule prefer-boolean-length-check for toolkit and browser r=Standard8 2019-09-14 09:39:26 +00:00
ESEDBReader.jsm
FirefoxProfileMigrator.jsm Bug 1577662 (part 2) - Profile reset now correctly handles that signed in to FxA doesn't always mean sync. r=Gijs 2019-10-01 01:12:42 +00:00
IEProfileMigrator.jsm Bug 1578683 Turn on ESLint rule prefer-boolean-length-check for toolkit and browser r=Standard8 2019-09-14 09:39:26 +00:00
jar.mn
MigrationUtils.jsm Bug 1578683 Turn on ESLint rule prefer-boolean-length-check for toolkit and browser r=Standard8 2019-09-14 09:39:26 +00:00
moz.build Bug 1423714 - Add a module to decrypt Chrome/Chromium Login Data from macOS. r=Gijs 2019-09-18 04:47:22 +00:00
MSMigrationUtils.jsm Bug 1574469 - Removed block param from nsICookieManager::Remove. r=Ehsan 2019-09-24 17:13:43 +00:00
nsIBrowserProfileMigrator.idl
nsIEHistoryEnumerator.cpp Bug 1600545 - Remove useless inclusions of header files generated from IDL files in accessible/, browser/, caps/, chrome/, devtools/, docshell/, editor/, extensions/, gfx/, hal/, image/, intl/, ipc/, js/, layout/, and media/ r=Ehsan 2019-12-06 09:16:44 +00:00
nsIEHistoryEnumerator.h
nsIKeychainMigrationUtils.idl Bug 1423714 - Add an API to retrieve a password from Keychain by account and service. r=mstange 2019-09-18 04:47:10 +00:00
nsKeychainMigrationUtils.h Bug 1423714 - Add an API to retrieve a password from Keychain by account and service. r=mstange 2019-09-18 04:47:10 +00:00
nsKeychainMigrationUtils.mm Bug 1423714 - Add an API to retrieve a password from Keychain by account and service. r=mstange 2019-09-18 04:47:10 +00:00
nsWindowsMigrationUtils.h
ProfileMigrator.jsm
SafariProfileMigrator.jsm Bug 1578683 Turn on ESLint rule prefer-boolean-length-check for toolkit and browser r=Standard8 2019-09-14 09:39:26 +00:00