~chromium-team/chromium-browser/focal-stable

« back to all changes in this revision

Viewing changes to chromium-browser

  • Committer: Olivier Tilloy
  • Date: 2019-06-12 07:56:52 UTC
  • mfrom: (1494.1.4 eoan-snap)
  • Revision ID: olivier.tilloy@canonical.com-20190612075652-2mej8weep7syq5j9
* Upstream release: 75.0.3770.80
  - CVE-2019-5828: Use after free in ServiceWorker.
  - CVE-2019-5829: Use after free in Download Manager.
  - CVE-2019-5830: Incorrectly credentialed requests in CORS.
  - CVE-2019-5831: Incorrect map processing in V8.
  - CVE-2019-5832: Incorrect CORS handling in XHR.
  - CVE-2019-5833: Inconsistent security UI placement.
  - CVE-2019-5834: URL spoof in Omnibox on iOS.
  - CVE-2019-5835: Out of bounds read in Swiftshader.
  - CVE-2019-5836: Heap buffer overflow in Angle.
  - CVE-2019-5837: Cross-origin resources size disclosure in Appcache.
  - CVE-2019-5838: Overly permissive tab access in Extensions.
  - CVE-2019-5839: Incorrect handling of certain code points in Blink.
  - CVE-2019-5840: Popup blocker bypass.
* Install the chromium snap in place of the debian packages, and make the wrapper script rename the desktop file in well-known desktop launchers (currently GNOME Shell and Unity)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
if ! [ -x /snap/bin/chromium ]; then
 
3
    echo "" >&2
 
4
    echo "Command '$0' requires the chromium snap to be installed." >&2
 
5
    echo "Please install it with:" >&2
 
6
    echo "" >&2
 
7
    echo "snap install chromium" >&2
 
8
    echo "" >&2
 
9
    exit 1
 
10
fi
 
11
 
 
12
# GNOME Shell
 
13
OLD="chromium-browser.desktop"
 
14
NEW="chromium_chromium.desktop"
 
15
FAVS=$(gsettings get org.gnome.shell favorite-apps)
 
16
if echo "$FAVS" | grep -q "'$OLD'"; then
 
17
  NEWFAVS=$(echo $FAVS | sed -e "s#'$OLD'#'$NEW'#")
 
18
  gsettings set org.gnome.shell favorite-apps "$NEWFAVS"
 
19
fi
 
20
 
 
21
# Unity
 
22
OLD="application://chromium-browser.desktop"
 
23
NEW="application://chromium_chromium.desktop"
 
24
FAVS=$(gsettings get com.canonical.Unity.Launcher favorites)
 
25
if echo "$FAVS" | grep -q "'$OLD'"; then
 
26
  NEWFAVS=$(echo $FAVS | sed -e "s#'$OLD'#'$NEW'#")
 
27
  gsettings set com.canonical.Unity.Launcher favorites "$NEWFAVS"
 
28
fi
 
29
 
 
30
# TODO: handle KDE and other desktop environments
 
31
 
 
32
exec /snap/bin/chromium "$@"