Commit d316a1c1 authored by Carsten Schoenert's avatar Carsten Schoenert
Browse files

New upstream version 86.0~b3

parent b142ac6d
......@@ -2,20 +2,35 @@
# It was generated by `mach vendor rust`.
# Please do not edit.
[source."https://github.com/zakarumych/gpu-descriptor"]
git = "https://github.com/zakarumych/gpu-descriptor"
replace-with = "vendored-sources"
rev = "831460c4b5120d9a74744d542f39a95b9816b5ab"
[source."https://github.com/zakarumych/gpu-alloc"]
git = "https://github.com/zakarumych/gpu-alloc"
replace-with = "vendored-sources"
rev = "d07be73f9439a37c89f5b72f2500cbf0eb4ff613"
[source."https://github.com/shravanrn/nix/"]
branch = "r0.13.1"
git = "https://github.com/shravanrn/nix/"
replace-with = "vendored-sources"
rev = "4af6c367603869a30fddb5ffb0aba2b9477ba92e"
[source."https://github.com/msirringhaus/minidump_writer_linux.git"]
git = "https://github.com/msirringhaus/minidump_writer_linux.git"
replace-with = "vendored-sources"
rev = "4ea371049a9cca212cc13c19b7952c1c014085c6"
[source."https://github.com/mozilla/neqo"]
git = "https://github.com/mozilla/neqo"
replace-with = "vendored-sources"
tag = "v0.4.16"
tag = "v0.4.19"
[source."https://github.com/mozilla/mp4parse-rust"]
git = "https://github.com/mozilla/mp4parse-rust"
replace-with = "vendored-sources"
rev = "f7c35a30ff25521bebe64c19d3f306569ecb5385"
rev = "3d9efdc868ce8c5767cea28708fa6512c0ab6d17"
[source."https://github.com/mozilla/application-services"]
git = "https://github.com/mozilla/application-services"
......@@ -62,15 +77,25 @@ git = "https://github.com/hsivonen/packed_simd"
replace-with = "vendored-sources"
rev = "0917fe780032a6bbb23d71be545f9c1834128d75"
[source."https://github.com/hsivonen/chardetng_c"]
git = "https://github.com/hsivonen/chardetng_c"
replace-with = "vendored-sources"
rev = "ed8a4c6f900a90d4dbc1d64b856e61490a1c3570"
[source."https://github.com/hsivonen/chardetng"]
git = "https://github.com/hsivonen/chardetng"
replace-with = "vendored-sources"
rev = "7d5e0608d3e012bdfea3bd199111e3546607dd31"
rev = "fd4ed671ef495af4dcda4c4cba3ef8d426db8af1"
[source."https://github.com/gfx-rs/naga"]
git = "https://github.com/gfx-rs/naga"
replace-with = "vendored-sources"
rev = "4d4e1cd4cbfad2b81264a7239a336b6ec1346611"
rev = "96c80738650822de35f77ab6a589f309460c8f39"
[source."https://github.com/gfx-rs/gfx"]
git = "https://github.com/gfx-rs/gfx"
replace-with = "vendored-sources"
rev = "1d14789011cb892f4c1a205d3f8a87d479c2e354"
[source."https://github.com/djg/cubeb-pulse-rs"]
git = "https://github.com/djg/cubeb-pulse-rs"
......
......@@ -101,26 +101,25 @@ gfx/qcms/.*
gfx/sfntly/.*
gfx/skia/.*
gfx/vr/service/openvr/.*
gfx/vr/service/openvr/headers/openvr.h
gfx/vr/service/openvr/src/README
gfx/vr/service/openvr/src/dirtools_public.cpp
gfx/vr/service/openvr/src/dirtools_public.h
gfx/vr/service/openvr/src/envvartools_public.cpp
gfx/vr/service/openvr/src/envvartools_public.h
gfx/vr/service/openvr/src/hmderrors_public.cpp
gfx/vr/service/openvr/src/hmderrors_public.h
gfx/vr/service/openvr/src/ivrclientcore.h
gfx/vr/service/openvr/src/openvr_api_public.cpp
gfx/vr/service/openvr/src/pathtools_public.cpp
gfx/vr/service/openvr/src/pathtools_public.h
gfx/vr/service/openvr/src/sharedlibtools_public.cpp
gfx/vr/service/openvr/src/sharedlibtools_public.h
gfx/vr/service/openvr/src/strtools_public.cpp
gfx/vr/service/openvr/src/strtools_public.h
gfx/vr/service/openvr/src/vrpathregistry_public.cpp
gfx/vr/service/openvr/headers/openvr.h
gfx/vr/service/openvr/src/README
gfx/vr/service/openvr/src/dirtools_public.cpp
gfx/vr/service/openvr/src/dirtools_public.h
gfx/vr/service/openvr/src/envvartools_public.cpp
gfx/vr/service/openvr/src/envvartools_public.h
gfx/vr/service/openvr/src/hmderrors_public.cpp
gfx/vr/service/openvr/src/hmderrors_public.h
gfx/vr/service/openvr/src/ivrclientcore.h
gfx/vr/service/openvr/src/openvr_api_public.cpp
gfx/vr/service/openvr/src/pathtools_public.cpp
gfx/vr/service/openvr/src/pathtools_public.h
gfx/vr/service/openvr/src/sharedlibtools_public.cpp
gfx/vr/service/openvr/src/sharedlibtools_public.h
gfx/vr/service/openvr/src/strtools_public.cpp
gfx/vr/service/openvr/src/strtools_public.h
gfx/vr/service/openvr/src/vrpathregistry_public.cpp
gfx/vr/service/openvr/src/vrpathregistry_public.h
gfx/wgpu/.*
gfx/wr/.*
gfx/ycbcr/.*
intl/hyphenation/hyphen/.*
intl/icu/.*
......
......@@ -29,7 +29,8 @@ jobs:
- mozilla-central
when:
by-project:
# Match buildbot starts for now
# Please update the `searchfox-index` job `mozilla-central` `when`
# times as well if updating the times here.
mozilla-central: [{hour: 10, minute: 0}, {hour: 22, minute: 0}]
# No default
......@@ -130,6 +131,8 @@ jobs:
- {weekday: 'Wednesday', hour: 10, minute: 30}
- {weekday: 'Friday', hour: 10, minute: 30}
# For more context on this job, see:
# https://github.com/mozsearch/mozsearch-mozilla#how-searchfoxorg-stays-up-to-date
- name: searchfox-index
job:
type: decision-task
......@@ -141,7 +144,24 @@ jobs:
- mozilla-release
- mozilla-esr78
when:
- {hour: 10, minute: 0}
by-project:
# We want to run at both of the times the nightly runs.
mozilla-central: [{hour: 10, minute: 0}, {hour: 22, minute: 0}]
# For all other jobs we just run once daily matching the 10 UTC
# nightly which is designed to align with searchfox's AWS cron
# jobs (for legacy reasons) rather than trying to align with
# specific builds. (Ex: mozilla-beta has a "daily-releases" job
# that currently runs 3 times a week.)
#
# Note that for branches that don't change a lot this will result
# in a redundant job being scheduled each day rather than reusing
# the previous day's job. This is only beneficial in the sense
# that there's no risk of expiration for artifacts and is a
# trade-off to avoid stale indices. Bug 1686981 tracks fixing
# this.
mozilla-beta: [{hour: 10, minute: 0}]
mozilla-release: [{hour: 10, minute: 0}]
mozilla-esr78: [{hour: 10, minute: 0}]
- name: coverity-tree-analysis
job:
......
......@@ -172,7 +172,6 @@ module.exports = {
"no-redeclare": "off",
"no-shadow": "off",
"no-throw-literal": "off",
"no-unused-vars": "off",
},
},
{
......@@ -317,22 +316,6 @@ module.exports = {
"no-with": "off",
},
},
{
files: [
"dom/l10n/tests/mochitest/document_l10n/non-system-principal/test.html",
"dom/payments/test/test_basiccard.html",
"dom/payments/test/test_bug1478740.html",
"dom/payments/test/test_canMakePayment.html",
"dom/payments/test/test_closePayment.html",
"dom/payments/test/test_showPayment.html",
"dom/tests/browser/browser_persist_cookies.js",
"dom/tests/browser/browser_persist_mixed_content_image.js",
"netwerk/test/unit/test_http2-proxy.js",
],
rules: {
"no-async-promise-executor": "off",
},
},
{
files: [
"testing/mochitest/browser-harness.xhtml",
......
......@@ -5,7 +5,6 @@ exclude =
devtools/shared,
dom/base,
dom/bindings,
dom/encoding,
gfx/tests,
ipc/ipdl/ipdl,
layout/base/tests/marionette,
......
......@@ -162,3 +162,9 @@ lextab.py
.vscode/
!.vscode/extensions.json
!.vscode/tasks.json
# Ignore various raptor performance framework files
testing/raptor/.raptor-venv
testing/raptor/raptor-venv
testing/raptor/raptor/tests/json/
testing/raptor/webext/raptor/auto_gen_test_config.js
......@@ -10,8 +10,6 @@
"esbenp.prettier-vscode",
// C/C++ language support with clangd
"llvm-vs-code-extensions.vscode-clangd",
// Rust language support.
"rust-lang.rust",
// Provides support for rust-analyzer: novel LSP server for the Rust programming language.
"matklad.rust-analyzer",
// CSS support for HTML documents.
......
This diff is collapsed.
......@@ -13,8 +13,7 @@ members = [
"netwerk/test/http3server",
"security/manager/ssl/osclientcerts",
"testing/geckodriver",
"toolkit/components/updateagent",
"toolkit/crashreporter/rust",
"toolkit/crashreporter/rust_minidump_writer_linux",
"toolkit/library/gtest/rust",
"toolkit/library/rust/",
"toolkit/mozapps/defaultagent/rust",
......@@ -72,15 +71,17 @@ opt-level = 1
opt-level = 1
[patch.crates-io]
chardetng = { git = "https://github.com/hsivonen/chardetng", rev="7d5e0608d3e012bdfea3bd199111e3546607dd31" }
chardetng = { git = "https://github.com/hsivonen/chardetng", rev="fd4ed671ef495af4dcda4c4cba3ef8d426db8af1" }
chardetng_c = { git = "https://github.com/hsivonen/chardetng_c", rev="ed8a4c6f900a90d4dbc1d64b856e61490a1c3570" }
libudev-sys = { path = "dom/webauthn/libudev-sys" }
packed_simd = { git = "https://github.com/hsivonen/packed_simd", rev="0917fe780032a6bbb23d71be545f9c1834128d75" }
rlbox_lucet_sandbox = { git = "https://github.com/PLSysSec/rlbox_lucet_sandbox/", rev="f3cace4fb8b53db0849c62af4fa62bade5a620f7" }
nix = { git = "https://github.com/shravanrn/nix/", branch = "r0.13.1", rev="4af6c367603869a30fddb5ffb0aba2b9477ba92e" }
spirv_cross = { git = "https://github.com/kvark/spirv_cross", branch = "wgpu4", rev = "e9eff10f964957e7a001c5f712effe17ce09aa99" }
nix = { git = "https://github.com/shravanrn/nix/", rev="4af6c367603869a30fddb5ffb0aba2b9477ba92e" }
spirv_cross = { git = "https://github.com/kvark/spirv_cross", branch = "wgpu4" }
# failure's backtrace feature might break our builds, see bug 1608157.
failure = { git = "https://github.com/badboy/failure", rev = "64af847bc5fdcb6d2438bec8a6030812a80519a5" }
failure_derive = { git = "https://github.com/badboy/failure", rev = "64af847bc5fdcb6d2438bec8a6030812a80519a5" }
minidump_writer_linux = { git = "https://github.com/msirringhaus/minidump_writer_linux.git", rev = "4ea371049a9cca212cc13c19b7952c1c014085c6" }
[patch.crates-io.cranelift-codegen]
git = "https://github.com/mozilla-spidermonkey/wasmtime"
......@@ -89,3 +90,11 @@ rev = "3334d92350da40b90d2529c147db3ea44918b558"
[patch.crates-io.cranelift-wasm]
git = "https://github.com/mozilla-spidermonkey/wasmtime"
rev = "3334d92350da40b90d2529c147db3ea44918b558"
# Patch autocfg to hide rustc output. Workaround for https://github.com/cuviper/autocfg/issues/30
[patch.crates-io.autocfg]
path = "third_party/rust/autocfg"
[patch.crates-io.autocfg01]
path = "third_party/rust/autocfg-0.1.6"
package = "autocfg"
......@@ -162,7 +162,7 @@ static const nsRoleMapEntry sWAIRoleMaps[] = {
eTableCell,
kNoReqStates,
eARIASelectableIfDefined,
eARIAReadonlyOrEditableIfDefined
eARIAReadonly
},
{ // combobox, which consists of text input and popup
nsGkAtoms::combobox,
......@@ -707,7 +707,7 @@ static const nsRoleMapEntry sWAIRoleMaps[] = {
eSelect | eTable,
kNoReqStates,
eARIAMultiSelectable,
eARIAReadonlyOrEditable,
eARIAReadonly,
eFocusableUntilDisabled
},
{ // gridcell
......@@ -720,7 +720,7 @@ static const nsRoleMapEntry sWAIRoleMaps[] = {
eTableCell,
kNoReqStates,
eARIASelectable,
eARIAReadonlyOrEditableIfDefined
eARIAReadonly
},
{ // group
nsGkAtoms::group,
......@@ -1058,7 +1058,7 @@ static const nsRoleMapEntry sWAIRoleMaps[] = {
eTableCell,
kNoReqStates,
eARIASelectableIfDefined,
eARIAReadonlyOrEditableIfDefined
eARIAReadonly
},
{ // scrollbar
nsGkAtoms::scrollbar,
......@@ -1280,7 +1280,7 @@ static const nsRoleMapEntry sWAIRoleMaps[] = {
eNoLiveAttr,
eSelect | eTable,
kNoReqStates,
eARIAReadonlyOrEditable,
eARIAReadonly,
eARIAMultiSelectable,
eFocusableUntilDisabled,
eARIAOrientation
......
......@@ -233,14 +233,6 @@ bool aria::MapToState(EStateRule aRule, dom::Element* aElement,
return true;
}
case eARIAReadonlyOrEditableIfDefined: {
static const TokenTypeData data(nsGkAtoms::aria_readonly, eBoolType, 0,
states::READONLY, states::EDITABLE);
MapTokenType(aElement, aState, data);
return true;
}
case eARIARequired: {
static const TokenTypeData data(nsGkAtoms::aria_required, eBoolType, 0,
states::REQUIRED);
......
......@@ -40,7 +40,6 @@ enum EStateRule {
eARIAPressed,
eARIAReadonly,
eARIAReadonlyOrEditable,
eARIAReadonlyOrEditableIfDefined,
eARIARequired,
eARIASelectable,
eARIASelectableIfDefined,
......
......@@ -22,6 +22,7 @@
#include "nsIDocShellTreeItem.h"
#include "mozilla/PresShell.h"
#include "mozilla/dom/BorrowedAttrInfo.h"
#include "mozilla/dom/Document.h"
#include "mozilla/dom/Element.h"
#include "mozilla/dom/HTMLBodyElement.h"
#include "mozilla/dom/Selection.h"
......
......@@ -21,12 +21,16 @@ StyleInfo::StyleInfo(dom::Element* aElement) : mElement(aElement) {
void StyleInfo::Display(nsAString& aValue) {
aValue.Truncate();
mComputedStyle->GetComputedPropertyValue(eCSSProperty_display, aValue);
nsAutoCString value;
mComputedStyle->GetComputedPropertyValue(eCSSProperty_display, value);
CopyUTF8toUTF16(value, aValue);
}
void StyleInfo::TextAlign(nsAString& aValue) {
aValue.Truncate();
mComputedStyle->GetComputedPropertyValue(eCSSProperty_text_align, aValue);
nsAutoCString value;
mComputedStyle->GetComputedPropertyValue(eCSSProperty_text_align, value);
CopyUTF8toUTF16(value, aValue);
}
void StyleInfo::TextIndent(nsAString& aValue) {
......
......@@ -17,6 +17,9 @@ class nsIVariant;
class nsRange;
namespace mozilla {
namespace dom {
class Selection;
} // namespace dom
namespace a11y {
class Accessible;
......
......@@ -20,6 +20,7 @@
#include "nsIPersistentProperties2.h"
#include "nsISimpleEnumerator.h"
#include "mozilla/a11y/PDocAccessibleChild.h"
#include "mozilla/dom/Document.h"
#include "mozilla/dom/Element.h"
#include "nsAccessibilityService.h"
......
......@@ -25,6 +25,7 @@
#include "nsArrayUtils.h"
#include "nsAttrName.h"
#include "nsDOMTokenList.h"
#include "nsCRT.h"
#include "nsEventShell.h"
#include "nsIFrameInlines.h"
#include "nsServiceManagerUtils.h"
......@@ -506,10 +507,14 @@ void nsAccessibilityService::DeckPanelSwitched(PresShell* aPresShell,
nsIContent* aDeckNode,
nsIFrame* aPrevBoxFrame,
nsIFrame* aCurrentBoxFrame) {
// Ignore tabpanels elements (a deck having an accessible) since their
// children are accessible not depending on selected tab.
DocAccessible* document = GetDocAccessible(aPresShell);
if (!document || document->HasAccessible(aDeckNode)) return;
if (!document) {
return;
}
// A deck with an Accessible is a tabpanels element.
const bool isTabPanels = document->HasAccessible(aDeckNode);
MOZ_ASSERT(!isTabPanels || aDeckNode->IsXULElement(nsGkAtoms::tabpanels),
"A deck with an Accessible should be a tabpanels element");
if (aPrevBoxFrame) {
nsIContent* panelNode = aPrevBoxFrame->GetContent();
......@@ -521,8 +526,16 @@ void nsAccessibilityService::DeckPanelSwitched(PresShell* aPresShell,
logging::MsgEnd();
}
#endif
document->ContentRemoved(panelNode);
if (isTabPanels) {
// Tabpanels are accessible even when not selected.
if (Accessible* acc = document->GetAccessible(panelNode)) {
RefPtr<AccEvent> event =
new AccStateChangeEvent(acc, states::OFFSCREEN, true);
document->FireDelayedEvent(event);
}
} else {
document->ContentRemoved(panelNode);
}
}
if (aCurrentBoxFrame) {
......@@ -535,8 +548,17 @@ void nsAccessibilityService::DeckPanelSwitched(PresShell* aPresShell,
logging::MsgEnd();
}
#endif
document->ContentInserted(panelNode, panelNode->GetNextSibling());
if (isTabPanels) {
// Tabpanels are accessible even when not selected, so we don't have to
// insert an Accessible.
if (Accessible* acc = document->GetAccessible(panelNode)) {
RefPtr<AccEvent> event =
new AccStateChangeEvent(acc, states::OFFSCREEN, false);
document->FireDelayedEvent(event);
}
} else {
document->ContentInserted(panelNode, panelNode->GetNextSibling());
}
}
}
......
......@@ -360,7 +360,7 @@ bool nsCoreUtils::IsContentDocument(Document* aDocument) {
}
bool nsCoreUtils::IsTopLevelContentDocInProcess(Document* aDocumentNode) {
BrowsingContext* bc = aDocumentNode->GetBrowsingContext();
mozilla::dom::BrowsingContext* bc = aDocumentNode->GetBrowsingContext();
return bc->IsContent() && (
// Tab document.
bc->IsTop() ||
......
......@@ -1283,12 +1283,11 @@ void Accessible::ApplyARIAState(uint64_t* aState) const {
aria::MapToState(roleMapEntry->attributeMap3, element, aState))
aria::MapToState(roleMapEntry->attributeMap4, element, aState);
// ARIA gridcell inherits editable/readonly states from the grid until it's
// overridden.
// ARIA gridcell inherits readonly state from the grid until it's overridden.
if ((roleMapEntry->Is(nsGkAtoms::gridcell) ||
roleMapEntry->Is(nsGkAtoms::columnheader) ||
roleMapEntry->Is(nsGkAtoms::rowheader)) &&
!(*aState & (states::READONLY | states::EDITABLE))) {
!nsAccUtils::HasDefinedARIAToken(mContent, nsGkAtoms::aria_readonly)) {
const TableCellAccessible* cell = AsTableCell();
if (cell) {
TableAccessible* table = cell->Table();
......@@ -1296,7 +1295,7 @@ void Accessible::ApplyARIAState(uint64_t* aState) const {
Accessible* grid = table->AsAccessible();
uint64_t gridState = 0;
grid->ApplyARIAState(&gridState);
*aState |= (gridState & (states::READONLY | states::EDITABLE));
*aState |= gridState & states::READONLY;
}
}
}
......
......@@ -14,6 +14,7 @@
#include "States.h"
#include "nsServiceManagerUtils.h"
#include "mozilla/dom/Document.h"
#include "mozilla/Services.h"
#include "nsGlobalWindow.h"
#include "nsIStringBundle.h"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment