Skip to content

Commit

Permalink
Adding sources for Opera 71.0.3770.182
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukasz Bendig committed Sep 28, 2020
1 parent b537a04 commit 1528ec6
Show file tree
Hide file tree
Showing 17,975 changed files with 1,276,488 additions and 2,104,158 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
14 changes: 8 additions & 6 deletions lgpl/sources/chromium/src/base/third_party/nspr/prtime.cc
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,15 @@
* Unit tests are in base/time/pr_time_unittest.cc.
*/

#include <limits.h>

#include "base/logging.h"
#include "base/third_party/nspr/prtime.h"

#include "base/check.h"
#include "build/build_config.h"

#include <ctype.h>
#include <errno.h> /* for EINVAL */
#include <limits.h>
#include <string.h>
#include <time.h>

/*
Expand Down Expand Up @@ -1086,7 +1088,7 @@ PR_ParseTimeString(

/* "-" is ignored at the beginning of a token if we have not yet
parsed a year (e.g., the second "-" in "30-AUG-1966"), or if
the character after the dash is not a digit. */
the character after the dash is not a digit. */
if (*rest == '-' && ((rest > string &&
isalpha((unsigned char)rest[-1]) && year < 0) ||
rest[1] < '0' || rest[1] > '9'))
Expand Down Expand Up @@ -1232,7 +1234,7 @@ PR_ParseTimeString(
/*
* mktime will return (time_t) -1 if the input is a date
* after 23:59:59, December 31, 3000, US Pacific Time (not
* UTC as documented):
* UTC as documented):
* http://msdn.microsoft.com/en-us/library/d1y53h2a(VS.80).aspx
* But if the year is 3001, mktime also invokes the invalid
* parameter handler, causing the application to crash. This
Expand Down Expand Up @@ -1260,7 +1262,7 @@ PR_ParseTimeString(
return PR_SUCCESS;
}
}

/* So mktime() can't handle this case. We assume the
zone_offset for the date we are parsing is the same as
the zone offset on 00:00:00 2 Jan 1970 GMT. */
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
[email protected]
[email protected]
[email protected]
[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -369,9 +369,7 @@ executable("xz") {
"xz/src/xz/util.c",
]

deps = [
":lzma",
]
deps = [ ":lzma" ]

include_dirs = [
"config/$host_os",
Expand All @@ -391,9 +389,7 @@ executable("xzdec") {
"xz/src/xzdec/xzdec.c",
]

deps = [
":lzma_decompress",
]
deps = [ ":lzma_decompress" ]

include_dirs = [
"config/$host_os",
Expand Down
31 changes: 28 additions & 3 deletions lgpl/sources/chromium/src/chrome/test/data/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

import("//chrome/common/features.gni")
import("//mojo/public/tools/bindings/mojom.gni")
import("//pdf/features.gni")
import("//third_party/closure_compiler/compile_js.gni")
import("//tools/grit/grit_rule.gni")

grit("webui_test_resources") {
Expand All @@ -14,9 +16,7 @@ grit("webui_test_resources") {
"webui_test_resources.pak",
]

deps = [
":web_ui_test_bindings_js",
]
deps = [ ":web_ui_test_bindings_js" ]

grit_flags = [
"-E",
Expand All @@ -27,6 +27,31 @@ grit("webui_test_resources") {

mojom("web_ui_test_bindings") {
sources = [
"webui/mojo/foobar.mojom",
"webui/web_ui_test.mojom",
]
}

group("closure_compile") {
deps = [ ":closure_compile_local" ]
if (enable_pdf) {
deps += [ "pdf:closure_compile" ]
}
if (!is_android) {
deps += [ "webui:closure_compile" ]
}
}

js_type_check("closure_compile_local") {
deps = [ ":test_api_js" ]
}

js_library("test_api_js") {
sources = [ "webui/test_api.js" ]
externs_list = [
"webui/mock4js_externs.js",
"//third_party/chaijs/externs/chai-3.5.js",
"//ui/webui/resources/js/dom_automation_controller.js",
]
deps = [ ":web_ui_test_bindings_js_library_for_compile" ]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<!DOCTYPE html>
<body>
<!-- Images with existing non-trivial alt text should not be annotated. -->
<img src="red.png" alt="throwing a frisbee" width=16 height=16>
<img src="green.png" alt="potatoes" width=16 height=16>

<!-- Images with only "stopwords" in their alt text should be annotated. -->
<img src="/android/UiCapture/frog.jpg" alt="the" width=50 height=50>
<img src="/android/UiCapture/train.png" alt="photo background" width=50 height=50>
<img src="/android/UiCapture/cloud.png" alt="12345678.jpg" width=50 height=50>
<img src="/android/UiCapture/goat.jpg" alt="Sunday, Feb 6, 1966" width=50 height=50>
<img src="/android/UiCapture/dog.jpg" alt="fotografia bianca e nero" width=50 height=50>

</body>
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<!DOCTYPE html>
<body>
<!-- If there's an image containing just stopwords in a link,
both should be annotated. -->
<a href="#">
<img src="/android/UiCapture/train.png" alt="photo background" width=50 height=50>
</a>

<!-- If the link has its own name and it's not just stopwords,
the link shouldn't get annotated. -->
<a href="#" aria-label="Link to more details on frogs">
<img src="/android/UiCapture/frog.jpg" alt="the" width=50 height=50>
</a>

</body>
6 changes: 6 additions & 0 deletions lgpl/sources/chromium/src/chrome/test/data/ad_tagging/ad.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<html>
<body>
This is an ad. Tests which require an ad frame should use this page,
and explictly disallow this resource path.
</body>
</html>
53 changes: 53 additions & 0 deletions lgpl/sources/chromium/src/chrome/test/data/ad_tagging/ad_script.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,56 @@ async function createDocWrittenAdFrame(name, base_url) {
frame.contentDocument.write(doc_text);
frame.contentDocument.close();
}

function createAdFrameWithDocWriteAbortedLoad(name) {
let frame = document.createElement('iframe');
frame.name = name;

// slow takes 100 seconds to load, plenty of time to overwrite the
// provisional load.
frame.src = '/slow?100';
document.body.appendChild(frame);
frame.contentDocument.open();
// We load the scripts in frame_factory.html to allow subframe creation,
// setting the title so we know when all scripts have loaded.
frame.contentDocument.write(
'<html><head>' +
'<script src="create_frame.js"></script>' +
'<script src="ad_script.js"></script>' +
'<script onload="top.document.title = window.name" ' +
'src="ad_script_2.js"></script></head><body></body></html>');
frame.contentDocument.close();
}

function createAdFrameWithWindowStopAbortedLoad(name) {
let frame = document.createElement('iframe');
frame.name = name;

// slow takes 100 seconds to load, plenty of time to overwrite the
// provisional load.
frame.src = '/slow?100';
document.body.appendChild(frame);
frame.contentWindow.stop();

// We load the scripts in frame_factory.html to allow subframe creation. We
// set the async attribute to false to ensure that these scripts are loaded in
// insertion order.
let script1 = document.createElement('script');
script1.async = false;
script1.src = 'create_frame.js';
frame.contentDocument.head.appendChild(script1);

let script2 = document.createElement('script');
script2.async = false;
script2.src = 'ad_script.js';
frame.contentDocument.head.appendChild(script2);

let script3 = document.createElement('script');
script3.async = false;
script3.src = 'ad_script_2.js';
// Set title so we know when all scripts have loaded.
script3.onload = function() {
top.document.title = name;
};
frame.contentDocument.head.appendChild(script3);
}
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,56 @@ async function createDocWrittenFrame(name, base_url) {
frame.contentDocument.write(doc_text);
frame.contentDocument.close();
}

function createFrameWithDocWriteAbortedLoad(name) {
let frame = document.createElement('iframe');
frame.name = name;

// slow takes 100 seconds to load, plenty of time to overwrite the
// provisional load.
frame.src = '/slow?100';
document.body.appendChild(frame);
frame.contentDocument.open();
// We load the scripts in frame_factory.html to allow subframe creation,
// setting the title so we know when all scripts have loaded.
frame.contentDocument.write(
'<html><head>' +
'<script src="create_frame.js"></script>' +
'<script src="ad_script.js"></script>' +
'<script onload="top.document.title = window.name" ' +
'src="ad_script_2.js"></script></head><body></body></html>');
frame.contentDocument.close();
}

function createFrameWithWindowStopAbortedLoad(name) {
let frame = document.createElement('iframe');
frame.name = name;

// slow takes 100 seconds to load, plenty of time to overwrite the
// provisional load.
frame.src = '/slow?100';
document.body.appendChild(frame);
frame.contentWindow.stop();

// We load the scripts in frame_factory.html to allow subframe creation. We
// set the async attribute to false to ensure that these scripts are loaded in
// insertion order.
let script1 = document.createElement('script');
script1.async = false;
script1.src = 'create_frame.js';
frame.contentDocument.head.appendChild(script1);

let script2 = document.createElement('script');
script2.async = false;
script2.src = 'ad_script.js';
frame.contentDocument.head.appendChild(script2);

let script3 = document.createElement('script');
script3.async = false;
script3.src = 'ad_script_2.js';
// Set title so we know when all scripts have loaded.
script3.onload = function() {
top.document.title = name;
};
frame.contentDocument.head.appendChild(script3);
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/* Copyright 2020 The Chromium Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
@font-face {
font-family: "Vanilla";
src: url("font.woff2") format("woff2");
}

.test {
font-family: "Vanilla";
background-image: url("pixel.png");
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<html>
<head></head>
<body>
<div class="test">Test</div>
</body>
</html>
Original file line number Diff line number Diff line change
@@ -1,7 +1,18 @@
// Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// Creates and iframe and appends it to the body element. Make sure the caller
// has a body element!
function createAdIframe() {
let frame = document.createElement('iframe');
document.body.appendChild(frame);
return frame;
}
}

function createAdIframeWithSrc(src) {
let frame = document.createElement('iframe');
frame.src = src;
document.body.appendChild(frame);
return frame;
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@
window.domAutomationController.send(e.data);
});

adIframe = createAdIframe();
adIframe = createAdIframeWithSrc("/slow?100");
adIframe.id = "slow_frame";
adIframe.src = "/slow?100";

// slow takes 100 seconds to load, plenty of time to overwrite the
// provisional load.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<!doctype html>
<!-- can not be in a sub-directory as TestContentProvider does not support it -->
<html>
<head><title>running</title></head>
<body><script>
try {
const worker = new Worker('./worker.js');
worker.onerror = e => document.title = 'error';
worker.onmessage = e => document.title = e.data;
worker.postMessage([]);
} catch (e) {
document.title = 'exception'
}
</script></body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<!doctype html>
<!-- can not be in a sub-directory as TestContentProvider does not support it -->
<html>
<head><title>running</title></head>
<body><script>
window.onload = function () {
const params = new URL(document.location).searchParams;
const api = params.get('api');
if (api == "xhr") {
const xhr = new XMLHttpRequest();
xhr.open('get', params.get('url'), true);
xhr.onload = e => document.title = 'load';
xhr.onerror = e => document.title = 'error';
xhr.onabort = e => document.title = 'abort';
xhr.send();
} else if (api == "fetch") {
fetch(params.get('url'), { 'mode': params.get('mode') }).then(
e => document.title = 'load',
e => document.title = 'error');
} else {
document.title = "unknown api"
}
};
</script></body>
</html>
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<script>
if (window.location.hash.indexOf('clear') != -1) {
function clearCookie() {
document.cookie = '';
}

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<html>
<body>
<img src="google1.jpg"/>
<img src="http://a.com:REPLACE_WITH_HTTP_PORT/non_google.jpg"/>
<iframe src="cct_header_frame.html"></iframe>
</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<html>
<body>
<img src="google2.jpg"/>
</body>
</html>
Loading

0 comments on commit 1528ec6

Please sign in to comment.