Skip to content

Commit

Permalink
Update dependencies (GoogleChrome#1096)
Browse files Browse the repository at this point in the history
Updates a nunber of dependencies in a single PR. These were
suggested by dependabot but updating them individually would
mean the reposistory would be in a broken state until everything
had merged.

I'm not personally a huge fan of lowercasing doctype, but
Prettier has taken an opinionated stance here and there is not a
way to disable it:

prettier/prettier#15096
  • Loading branch information
oliverdunk authored Feb 20, 2024
1 parent e293e59 commit d2296fa
Show file tree
Hide file tree
Showing 75 changed files with 1,662 additions and 1,376 deletions.
2 changes: 1 addition & 1 deletion api-samples/action/demo/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
Expand Down
2 changes: 1 addition & 1 deletion api-samples/action/popups/a.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
Expand Down
2 changes: 1 addition & 1 deletion api-samples/action/popups/b.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
Expand Down
2 changes: 1 addition & 1 deletion api-samples/action/popups/popup.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
Expand Down
2 changes: 1 addition & 1 deletion api-samples/alarms/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
Expand Down
2 changes: 1 addition & 1 deletion api-samples/bookmarks/popup.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
limitations under the License.
-->

<!DOCTYPE html>
<!doctype html>
<html>
<head>
<title>Bookmark Viewer</title>
Expand Down
2 changes: 1 addition & 1 deletion api-samples/browsingData/popup.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
limitations under the License.
-->

<!DOCTYPE html>
<!doctype html>
<html>
<head>
<title>Popup</title>
Expand Down
2 changes: 1 addition & 1 deletion api-samples/contentSettings/popup.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html>
<head>
<title>Popup</title>
Expand Down
2 changes: 1 addition & 1 deletion api-samples/contextMenus/global_context_search/popup.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html>
<head>
<title>Global Context Search</title>
Expand Down
2 changes: 1 addition & 1 deletion api-samples/cookies/cookie-clearer/popup.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html>
<head>
<script src="popup.js" type="module"></script>
Expand Down
2 changes: 1 addition & 1 deletion api-samples/devtools/inspectedWindow/devtools.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@
limitations under the License.
-->

<!DOCTYPE html>
<!doctype html>
<button>Display Types</button>
<script src="devtools.js"></script>
2 changes: 1 addition & 1 deletion api-samples/devtools/inspectedWindow/panel.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
limitations under the License.
-->

<!DOCTYPE html>
<!doctype html>
<html style="display: flex">
<head>
<meta charset="utf8" />
Expand Down
2 changes: 1 addition & 1 deletion api-samples/favicon/popup.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<body>
<script src="popup.js"></script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ cr.define('cr.ui.overlay', function () {
// Close the overlay on clicking any of the pages' close buttons.
let closeButtons = overlay.querySelectorAll('.page > .close-button');
for (let i = 0; i < closeButtons.length; i++) {
closeButtons[i].addEventListener('click', function (e) {
closeButtons[i].addEventListener('click', function () {
cr.dispatchSimpleEvent(overlay, 'cancelOverlay');
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
See the License for the specific language governing permissions and
limitations under the License.
-->
<!DOCTYPE html>
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
Expand Down
2 changes: 1 addition & 1 deletion api-samples/fontSettings/fontSettings Basic/popup.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
See the License for the specific language governing permissions and
limitations under the License.
-->
<!DOCTYPE html>
<!doctype html>
<html>
<head>
<title>Font Settings</title>
Expand Down
2 changes: 1 addition & 1 deletion api-samples/history/showHistory/popup.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html>
<head>
<title>Recently Typed URLs</title>
Expand Down
2 changes: 1 addition & 1 deletion api-samples/idle/history.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html>
<head>
<style>
Expand Down
2 changes: 1 addition & 1 deletion api-samples/il8n/popup.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
Expand Down
2 changes: 1 addition & 1 deletion api-samples/nativeMessaging/extension/main.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<!--
* Copyright 2013 The Chromium Authors. All rights reserved. Use of this
* source code is governed by a BSD-style license that can be found in the
Expand Down
4 changes: 1 addition & 3 deletions api-samples/nativeMessaging/extension/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,5 @@
"icons": {
"128": "icon-128.png"
},
"permissions": [
"nativeMessaging"
]
"permissions": ["nativeMessaging"]
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,5 @@
"description": "Chrome Native Messaging API Example Host",
"path": "native-messaging-example-host.bat",
"type": "stdio",
"allowed_origins": [
"chrome-extension://knldjmfmopnpolahpmmgbagdohdnhkik/"
]
"allowed_origins": ["chrome-extension://knldjmfmopnpolahpmmgbagdohdnhkik/"]
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,5 @@
"description": "Chrome Native Messaging API Example Host",
"path": "HOST_PATH",
"type": "stdio",
"allowed_origins": [
"chrome-extension://knldjmfmopnpolahpmmgbagdohdnhkik/"
]
"allowed_origins": ["chrome-extension://knldjmfmopnpolahpmmgbagdohdnhkik/"]
}
2 changes: 1 addition & 1 deletion api-samples/omnibox/simple-example/logs.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
Expand Down
2 changes: 1 addition & 1 deletion api-samples/printing/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ The `chrome.printing` namespace only works on ChromeOS. The sample demonstrates

Calling `submitJob()` triggers a dialog box asking the user to confirm printing. Use the [`PrintingAPIExtensionsAllowlist`](https://chromeenterprise.google/policies/#PrintingAPIExtensionsAllowlist") policy to bypass confirmation.

If the **Roll Printers** checkbox is selected, only printers capable of roll printing will appear in the table. In this case, a separate test file is printed and the height of the media can be variable. See [`Roll printing`](https://developer.chrome.com/docs/extensions/reference/printing/#roll-printing) for more information.
If the **Roll Printers** checkbox is selected, only printers capable of roll printing will appear in the table. In this case, a separate test file is printed and the height of the media can be variable. See [`Roll printing`](https://developer.chrome.com/docs/extensions/reference/printing/#roll-printing) for more information.

## Implementation Notes

Expand Down
13 changes: 8 additions & 5 deletions api-samples/printing/printers.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* source code is governed by a BSD-style license that can be found in the
* LICENSE file.
-->
<!DOCTYPE html>
<!doctype html>
<html>
<head>
<title>Printers</title>
Expand All @@ -13,7 +13,10 @@

<body>
<h2>Print Job:</h2>
<p>On some systems, the print job may leave the queue too quickly to be visible in this list.</p>
<p>
On some systems, the print job may leave the queue too quickly to be
visible in this list.
</p>
<div id="printJob">
<table id="printJobTable">
<thread>
Expand All @@ -29,8 +32,8 @@ <h2>Print Job:</h2>

<h2>Printers:</h2>
<div id="printers">
<input type='checkbox' id='rollPrinters' name='rollPrinters'>
<label for='rollPrinters'>Roll Printers</label>
<input type="checkbox" id="rollPrinters" name="rollPrinters" />
<label for="rollPrinters">Roll Printers</label>
<table id="printersTable">
<thead>
<tr>
Expand All @@ -47,7 +50,7 @@ <h2>Printers:</h2>
<th>Status</th>
</tr>
</thead>
<tbody id="tbody"/>
<tbody id="tbody" />
</table>
</div>
</body>
Expand Down
2 changes: 1 addition & 1 deletion api-samples/readingList/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
Expand Down
2 changes: 1 addition & 1 deletion api-samples/richNotification/popup.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
See the License for the specific language governing permissions and
limitations under the License.
-->
<!DOCTYPE html>
<!doctype html>
<html>
<head>
<title>Rich Notifications</title>
Expand Down
2 changes: 1 addition & 1 deletion api-samples/sandbox/sandbox/mainpage.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
See the License for the specific language governing permissions and
limitations under the License.
-->
<!DOCTYPE html>
<!doctype html>
<html>
<head>
<script src="mainpage.js"></script>
Expand Down
2 changes: 1 addition & 1 deletion api-samples/sandbox/sandbox/sandbox.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
See the License for the specific language governing permissions and
limitations under the License.
-->
<!DOCTYPE html>
<!doctype html>
<html>
<head>
<script src="handlebars-1.0.0.beta.6.js"></script>
Expand Down
2 changes: 1 addition & 1 deletion api-samples/sandbox/sandboxed-content/main.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
Expand Down
2 changes: 1 addition & 1 deletion api-samples/sandbox/sandboxed-content/sandboxed.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
Expand Down
2 changes: 1 addition & 1 deletion api-samples/scripting/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
Expand Down
2 changes: 1 addition & 1 deletion api-samples/storage/stylizr/options.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html>
<head>
<title>Stylizr</title>
Expand Down
2 changes: 1 addition & 1 deletion api-samples/storage/stylizr/popup.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html>
<head>
<title>Stylizr</title>
Expand Down
2 changes: 1 addition & 1 deletion api-samples/tabCapture/receiver.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
Expand Down
2 changes: 1 addition & 1 deletion api-samples/tabs/inspector/window_and_tabs_manager.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html>
<head>
<title>Tabs Inspector</title>
Expand Down
2 changes: 1 addition & 1 deletion api-samples/tabs/screenshot/screenshot.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html>
<head>
<title>Tab Screenshot</title>
Expand Down
2 changes: 1 addition & 1 deletion api-samples/tabs/zoom/popup.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html>
<head>
<title>Tab Zoom Extension</title>
Expand Down
2 changes: 1 addition & 1 deletion api-samples/topSites/basic/popup.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html>
<body>
<h2 style="width: 300px">Most Visited:</h2>
Expand Down
2 changes: 1 addition & 1 deletion api-samples/topSites/magic8ball/newTab.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<!--
Copyright 2023 Google LLC
Expand Down
2 changes: 1 addition & 1 deletion api-samples/userScripts/options.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
limitations under the License.
-->

<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
Expand Down
2 changes: 1 addition & 1 deletion api-samples/web-accessible-resources/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
Expand Down
2 changes: 1 addition & 1 deletion functional-samples/cookbook.file_handlers/view-file.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
limitations under the License.
-->

<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
<!DOCTYPE html>
<!doctype html>
<script src="offscreen.js"></script>
2 changes: 1 addition & 1 deletion functional-samples/cookbook.geolocation-popup/popup.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<head>
<title>geolocation - popup</title>
</head>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ async function addToClipboard(value) {

// Solution 2 – Once extension service workers can use the Clipboard API,
// replace the offscreen document based implementation with something like this.
// eslint-disable-next-line no-unused-vars -- This is an alternative implementation
async function addToClipboardV2(value) {
navigator.clipboard.writeText(value);
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<!DOCTYPE html>
<!doctype html>
<textarea id="text"></textarea>
<script src="offscreen.js"></script>
2 changes: 1 addition & 1 deletion functional-samples/cookbook.offscreen-dom/offscreen.html
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
<!DOCTYPE html>
<!doctype html>
<script src="offscreen.js"></script>
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html>
<head>
<title>My Sidepanel</title>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html>
<head>
<title>My Sidepanel extension</title>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html>
<head>
<title>Welcome to this side panel</title>
Expand Down
2 changes: 1 addition & 1 deletion functional-samples/cookbook.sidepanel-open/page.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html>
<body>
<h1>This is an extension page</h1>
Expand Down
Loading

0 comments on commit d2296fa

Please sign in to comment.