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

« back to all changes in this revision

Viewing changes to debian/tests/data/HTML5test/backend/models/browsers.php

  • Committer: Olivier Tilloy
  • Date: 2019-06-05 14:27:38 UTC
  • mto: This revision was merged to the branch mainline in revision 1504.
  • Revision ID: olivier.tilloy@canonical.com-20190605142738-vt1q8apf04qde12k
* 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

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<?php
2
 
 
3
 
        class Browsers {
4
 
 
5
 
                static function getAll($release) {
6
 
                        $results = array();
7
 
 
8
 
                        $types = array('desktop', 'tablet', 'mobile', 'television', 'gaming');
9
 
 
10
 
                        $db = Factory::Database();
11
 
 
12
 
                        foreach($types AS $type) {
13
 
                                $result = $db->query("
14
 
                                        SELECT
15
 
                                                v.platform, IFNULL(v.version,'') AS version, v.nickname, v.details, v.visible, IFNULL(p.related,p.platform) AS id, f.score
16
 
                                        FROM
17
 
                                                data_platforms AS p
18
 
                                                LEFT JOIN data_versions AS v ON (p.platform = v.platform)
19
 
                                                LEFT JOIN scores AS s ON (v.platform = s.platform AND (v.version = s.version OR (v.version IS NULL AND s.version IS NULL)))
20
 
                                                LEFT JOIN fingerprints AS f ON (f.fingerprint = s.fingerprint)
21
 
                                        WHERE
22
 
                                                FIND_IN_SET('" . $type . "',v.type) AND
23
 
                                                s.release = '" . $release . "' AND
24
 
                                                f.points != ''
25
 
                                        ORDER BY
26
 
                                                v.platform, v.status='experimental', v.status='upcoming', ISNULL(v.releasedate), v.releasedate, v.version
27
 
                                ");
28
 
 
29
 
                                while ($row = $result->fetch_object()) {
30
 
                                        $row->uid = $type . '-' . $row->platform . '-' . $row->version;
31
 
                                        $row->type = $type;
32
 
                                        $row->visible = $row->visible == '1';
33
 
 
34
 
                                        $results[] = $row;
35
 
                                }
36
 
                        }
37
 
 
38
 
                        return $results;
39
 
                }
40
 
 
41
 
 
42
 
        }
 
 
b'\\ No newline at end of file'