Skip to content

Commit

Permalink
Adding sources of Opera 53.0.2907.117
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukasz Bendig committed Jun 29, 2018
1 parent c7d542d commit 545b49b
Show file tree
Hide file tree
Showing 5,106 changed files with 138,519 additions and 64,107 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<!DOCTYPE html>
<img id="image" src="../capybara.jpg"/>
<script>
imgLoaded = false;
var img = document.getElementById("image");
img.onload = () => { imgLoaded = true; }
</script>
17 changes: 17 additions & 0 deletions lgpl/sources/chromium/src/chrome/test/data/android/test.mht
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
From: <Saved by UnMHT>
Subject: Test
Date: Mon, Nov 21 2011 10:59:06 GMT-0800
MIME-Version: 1.0
Content-Type: multipart/related;
boundary="----=_NextPart_000_0000_0324C3DC.A3C79392";
type="text/html"

------=_NextPart_000_0000_0324C3DC.A3C79392
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Content-Location: http://www.example.com

<html>
Welcome!
</html>
------=_NextPart_000_0000_0324C3DC.A3C79392--
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<script>

function delayedUpload() {
window.domAutomationController.send("SUBMISSION_FINISHED");
console.log("delayedUpload")
}

function send_post() {
setTimeout(delayedUpload, 0);
}

</script>

<form action="" onsubmit="send_post(); return false;">
<label id="label_id"> Address </label>
<input type="text" id="address" name="address" autocomplete="on">

<p id="p_id">Address 1</p>
<input type="text" name="address1" autocomplete="on">
<input type="submit" id="submit_button" name="submit_button">
</form>
</body>
</html>
125 changes: 117 additions & 8 deletions lgpl/sources/chromium/src/chrome/test/data/banners/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,135 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

function initialize() {
navigator.serviceWorker.register('service_worker.js');
const Action = {
VERIFY_APPINSTALLED: "verify_appinstalled",
VERIFY_PROMPT_APPINSTALLED: "verify_prompt_appinstalled",
VERIFY_BEFOREINSTALLPROMPT: "verify_beforeinstallprompt",
CALL_PROMPT_DELAYED: "call_prompt_delayed",
CALL_PROMPT_IN_HANDLER: "call_prompt_in_handler",
CALL_PROMPT_NO_USERCHOICE: "call_prompt_no_userchoice",
CANCEL_PROMPT_AND_NAVIGATE: "cancel_prompt_and_navigate",
CANCEL_PROMPT: "cancel_prompt",
STASH_EVENT: "stash_event",
};

const LISTENER = "listener";
const ATTR = "attr";

// These blanks will get filled in when each event comes through.
let gotEventsFrom = ['_'.repeat(LISTENER.length), '_'.repeat(ATTR.length)];

let stashedEvent = null;

function startWorker(worker) {
navigator.serviceWorker.register(worker);
}

window.addEventListener('appinstalled', () => {
window.document.title = 'Got appinstalled';
function verifyEvents(eventName) {
function setTitle() {
window.document.title = 'Got ' + eventName + ': ' +
gotEventsFrom.join(', ');
}

window.addEventListener(eventName, () => {
gotEventsFrom[0] = LISTENER;
setTitle();
});
window['on' + eventName] = () => {
gotEventsFrom[1] = ATTR;
setTitle();
};
}

function callPrompt(event) {
event.prompt();
event.userChoice.then(function(choiceResult) {
window.document.title = 'Got userChoice: ' + choiceResult.outcome;
});
}

function callStashedPrompt() {
if (stashedEvent === null) {
throw new Error('No event was previously stashed');
}
stashedEvent.prompt();
}

function addPromptListener(action) {
window.addEventListener('beforeinstallprompt', function(e) {
e.preventDefault();

switch (action) {
case Action.CALL_PROMPT_DELAYED:
setTimeout(callPrompt, 0, e);
break;
case Action.CALL_PROMPT_IN_HANDLER:
callPrompt(e);
break;
case Action.CALL_PROMPT_NO_USERCHOICE:
setTimeout(() => e.prompt(), 0);
break;
case Action.CANCEL_PROMPT_AND_NAVIGATE:
// Navigate the window to trigger cancellation in the renderer.
window.location.href = "/";
break;
case Action.STASH_EVENT:
stashedEvent = e;
break;
}
});
}

function addManifestLinkTag() {
var url = window.location.href;
var manifestIndex = url.indexOf("?manifest=");
var manifestUrl =
(manifestIndex >= 0) ? url.slice(manifestIndex + 10) : 'manifest.json';
const url = new URL(window.location.href);
let manifestUrl = url.searchParams.get('manifest');
if (!manifestUrl) {
manifestUrl = 'manifest.json';
}

var linkTag = document.createElement("link");
linkTag.id = "manifest";
linkTag.rel = "manifest";
linkTag.href = manifestUrl;
document.head.append(linkTag);
}

function initialize() {
const url = new URL(window.location.href);
const action = url.searchParams.get('action');
if (!action) {
return;
}

switch (action) {
case Action.VERIFY_APPINSTALLED:
verifyEvents('appinstalled');
break;
case Action.VERIFY_PROMPT_APPINSTALLED:
addPromptListener(Action.CALL_PROMPT_NO_USERCHOICE);
verifyEvents('appinstalled');
break;
case Action.VERIFY_BEFOREINSTALLPROMPT:
verifyEvents('beforeinstallprompt');
break;
case Action.CALL_PROMPT_DELAYED:
case Action.CALL_PROMPT_IN_HANDLER:
case Action.CALL_PROMPT_NO_USERCHOICE:
case Action.CANCEL_PROMPT_AND_NAVIGATE:
case Action.CANCEL_PROMPT:
case Action.STASH_EVENT:
addPromptListener(action);
break;
default:
throw new Error("Unrecognised action: " + action);
}
}

function initializeWithWorker(worker) {
startWorker(worker);
initialize();
}

function changeManifestUrl(newManifestUrl) {
var linkTag = document.getElementById("manifest");
linkTag.href = newManifestUrl;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
<html>
<head>
<title>Web app banner test page</title>
<link rel="manifest" href="manifest.json" />
<script src="main.js"></script>
<script>
// If a "manifest=/path/to/manifest.json" query argument is provided to
// the URL accessing this page, that path is injected as the manifest tag.
// Otherwise, "manifest.json" is used as the manifest tag.
addManifestLinkTag();
</script>
</head>
<body>
<body onload="initialize()">
Do-nothing page with a manifest but no service worker.
</body>
</html>
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
addManifestLinkTag();
</script>
</head>
<body onload="initialize()">
Do-nothing page with a service worker.
<body onload="initializeWithWorker('service_worker.js')">
Do-nothing page with a manifest and a service worker.
</body>
</html>
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
<title>Web app banner test page</title>
<script src="main.js"></script>
</head>
<body onload="initialize()">
Do-nothing page with a service worker, but no manifest.
<script>
navigator.serviceWorker.register('service_worker.js');
</script>
<body>
Do-nothing page with a service worker, but no manifest.
</body>
</html>
</html>
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
<html>
<head>
<link rel="manifest" href="manifest.json" />
<title>Web app banner test page</title>
<script src="main.js"></script>
<script>
navigator.serviceWorker.register('service_worker_no_fetch_handler.js');
// If a "manifest=/path/to/manifest.json" query argument is provided to
// the URL accessing this page, that path is injected as the manifest tag.
// Otherwise, "manifest.json" is used as the manifest tag.
addManifestLinkTag();
</script>
</head>
<body>
Page with a service worker missing a fetch handler.
<body onload="initializeWithWorker('service_worker_no_fetch_handler.js')">
Do-nothing page with a manifest and a service worker missing a fetch handler.
</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<html>
<body>
<h1>A</h1>
</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<html>
<body>
<h1>B</h1>
</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<html>
<body>
<h1>C</h1>
</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<html>
<body>
<h1>D</h1>
</body>
</html>
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
HTTP/1.0 301 Moved permanently
Location: https://mock.captive.portal.long.timeout/title2.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
-----BEGIN PRIVATE KEY-----
MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQC3aFAcHk8yszLB
n+3LtibvlyPBmh2BLKq7t9A03LKx7zbFVCxxX9N+KMfXFvAW+craT/yyAYV3KOsF
V6hyTr4QnSJ4WP8u9HRgLLkrbHgnnlzsd74NKz0IpwREd4AG/AhAtA2znX9wZFdN
3//vLzTp1+QLbqvj5dWGJ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