Read-only Git mirror of the Mercurial gecko repositories at https://hg.mozilla.org. How to contribute: https://firefox-source-docs.mozilla.org/contributing/contribution_quickref.html
Перейти к файлу
Joey Arhar bbbd30cc4d Bug 1616437 [wpt PR 21873] - Don't make anchor clicks cancel form submission when href=#, a=testonly
Automatic update from web-platform-tests
Don't make anchor clicks cancel form submission when href=#

In http://crrev.com/c/1922699 I made anchor clicks cancel all form
submissions on a page in order to make this test pass:
external/wpt/html/browsers/browsing-the-web/navigating-across-documents/006.html

The test basically says that anchor navigations should take precedence
over form submissions when the form submission is initiated by the
onclick handler of the anchor element.

However, when the anchor has href="#", form submissions should actually
go through, and this has introduced a bug on websites which rely on this
behavior.

This logic I added to cancel form submissions would not be necessary if
we made anchor clicks navigate asynchronously like the spec says to do,
so I made a bug to do so and remove this logic: http://crbug.com/1053679

Bug: 1053312
Change-Id: I27bf193cf0d544222cddad932728a1d0f61ba62a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2063265
Reviewed-by: Kent Tamura <tkent@chromium.org>
Reviewed-by: Mason Freed <masonfreed@chromium.org>
Commit-Queue: Joey Arhar <jarhar@chromium.org>
Cr-Commit-Position: refs/heads/master@{#743410}

--

wpt-commits: af2a784ca500a061287d26b75f7822cb4cb99b34
wpt-pr: 21873
2020-02-24 10:23:05 +00:00
.cargo Bug 1615786 - Fix crash report about wasm library sandbox creation on AMD machines r=froydnj 2020-02-17 15:37:27 +00:00
.vscode
accessible Bug 1616851 - For grouping, calculate name from subtree if requested by other accessible object, r=Jamie 2020-02-24 06:52:19 +00:00
browser Bug 1611386 - Drop support for --enable-system-sqlite. r=asuth,glandium 2020-02-20 22:16:03 +00:00
build Bug 1611386 - Drop support for --enable-system-sqlite. r=asuth,glandium 2020-02-20 22:16:03 +00:00
caps Bug 1615029 - Remove GetURI calls from CorsListenerProxy r=ckerschb 2020-02-17 13:57:41 +00:00
chrome Bug 1616912 - Remove unused locale related code from nsChromeRegistry. r=jfkthame 2020-02-22 00:20:03 +00:00
config Bug 1611386 - Drop support for --enable-system-sqlite. r=asuth,glandium 2020-02-20 22:16:03 +00:00
devtools Bug 1615967 - Move customUserAgent to BrowsingContext. r=nika,remote-protocol-reviewers 2020-02-24 02:15:03 +00:00
docs no bug - doc: Add a list of all the clang-tidy check, now contains the list of autofix r=andi 2020-02-24 08:10:17 +00:00
docshell Bug 1614847 - Construct nsDocShellLoadState in ContentChild to avoid needing to pass excess parameters into nsDocShell. r=nika 2020-02-24 02:16:24 +00:00
dom Bug 1614958 - Disable VP9 codec in MSE on Android device with no VP9 hardware decoder. r=jolin 2020-02-24 06:46:43 +00:00
editor Bug 1613830 - Add `nsINode::GetAsElementOrParentElement()` r=smaug 2020-02-21 02:47:05 +00:00
extensions Bug 1611415 - Prefer using std::move over forget. r=froydnj 2020-02-13 14:38:48 +00:00
gfx Bug 1616680 [Wayland] Use widget.wayland_dmabuf_vaapi.enabled to enable VAAPI / dmabuf video playback, r=jhorak 2020-02-24 09:50:23 +00:00
gradle/wrapper
hal
image Bug 1540776 - Change CMSOutputProfile functions to return nsArray r=gcp 2020-02-21 21:27:53 +00:00
intl Bug 1616999 - Move the ICU include to GTK OSPreferences. r=jfkthame 2020-02-21 15:36:45 +00:00
ipc Bug 1610017 - Actually taint data when tainted is specified for IPC methods r=nika 2020-02-21 17:24:17 +00:00
js Bug 1617437 - StoreBuffer.h: Fix a -Wnon-c-typedef-for-linkage warning r=jandem 2020-02-24 07:50:07 +00:00
layout Backed out changeset ca76228564c8 (bug 1616994) for breaking Gecko Decision Task. CLOSED TREE 2020-02-24 05:06:24 +02:00
media Bug 1322095 - Part 1b: Update callbacks to support moved args and convert nsAutoPtr usage. r=jya 2020-02-21 22:43:53 +00:00
memory Bug 1615896 - Stop using CreateFileA in memory/replace/logalloc/. r=glandium 2020-02-20 08:05:25 +00:00
mfbt Bug 1610017 - Actually taint data when tainted is specified for IPC methods r=nika 2020-02-21 17:24:17 +00:00
mobile Bug 1615967 - Move customUserAgent to BrowsingContext. r=nika,remote-protocol-reviewers 2020-02-24 02:15:03 +00:00
modules Bug 1616855 [Wayland] Ship widget.wayland_dmabuf_webgl.enabled preference r=jhorak 2020-02-24 09:50:15 +00:00
mozglue Bug 1615265 - Suppress data race in OffThreadDecodeCallback. r=nbp 2020-02-20 10:00:12 +00:00
netwerk Bug 1614610 - Have cache occupancy for each content-type in cache index r=valentin 2020-02-24 09:09:54 +00:00
nsprpub Bug 1600803 - NSPR_4_25_RTM for Firefox 74. r=kjacobs UPGRADE_NSPR_RELEASE 2020-02-03 12:17:20 +00:00
other-licenses
parser Bug 1597495 - Remove nsIDocShellTreeItem from nsHtml5TreeOpExecutor::MaybeComplainAboutCharset(). r=hsivonen 2020-02-21 08:00:21 +00:00
python Bug 1617389. When generating compile_commands.json, insert -ferror-limit before the file name. r=botond 2020-02-22 21:35:10 +00:00
remote Bug 1615967 - Move customUserAgent to BrowsingContext. r=nika,remote-protocol-reviewers 2020-02-24 02:15:03 +00:00
security Bug 1611290 - Windows sandbox for socket process. r=bobowen 2020-02-21 15:49:54 +00:00
services Bug 1597336 - add a fxa+sync scenario r=lina,markh 2020-02-23 23:17:23 +00:00
servo Bug 1617069 - Minor LengthPercentage improvements. r=heycam 2020-02-23 22:27:13 +00:00
startupcache Bug 1616186 - Don't try to write StartupCache if it doesn't exist r=froydnj 2020-02-18 17:49:47 +00:00
storage Bug 1611386 - Drop support for --enable-system-sqlite. r=asuth,glandium 2020-02-20 22:16:03 +00:00
taskcluster Bug 1597336 - add a fxa+sync scenario r=lina,markh 2020-02-23 23:17:23 +00:00
testing Bug 1616437 [wpt PR 21873] - Don't make anchor clicks cancel form submission when href=#, a=testonly 2020-02-24 10:23:05 +00:00
third_party Bug 1611386 - Drop support for --enable-system-sqlite. r=asuth,glandium 2020-02-20 22:16:03 +00:00
toolkit Bug 1616147 - Bump layout perf telemetry expiry. r=kamidphish 2020-02-21 03:29:47 +00:00
tools Bug 1617528 - Enable modernize-use-using at review phase r=andi 2020-02-24 10:05:16 +00:00
uriloader Bug 1612403 - File extensions are duplicated for file inputs with custom 'accept'. r=Gijs 2020-02-21 08:30:30 +00:00
view Bug 1556568. Fix the first paint telemetry metric. r=mattwoodrow,chutten 2020-02-18 20:56:10 +00:00
widget Bug 1616680 [Wayland] Use widget.wayland_dmabuf_vaapi.enabled to enable VAAPI / dmabuf video playback, r=jhorak 2020-02-24 09:50:23 +00:00
xpcom Bug 1617437 - TaskQueue.h: Fix a -Wnon-c-typedef-for-linkage warning r=froydnj 2020-02-23 12:59:35 +00:00
xpfe/appshell Bug 1613237 - Call nsIWebBrowserChrome3 for main process pages. r=kmag,esawin 2020-02-20 19:29:08 +00:00
.arcconfig
.clang-format
.clang-format-ignore Bug 1353652 - Initial Draft of MPRIS API Provider (Media API on Linux) r=alwu 2020-02-12 13:10:50 +00:00
.cron.yml Bug 1612540 - bake geckoview in the push phase of releases. r=jlorenzo 2020-02-11 11:10:42 +00:00
.eslintignore Bug 1614822 - Enable ESLint for testing/mochitest/tests/Harness_sanity/. r=kmag 2020-02-12 19:38:40 +00:00
.eslintrc.js Bug 1614822 - Enable ESLint for testing/mochitest/tests/Harness_sanity/. r=kmag 2020-02-12 19:38:40 +00:00
.flake8 Bug 1597336 - add a fxa+sync scenario r=lina,markh 2020-02-23 23:17:23 +00:00
.gdbinit
.gdbinit_python
.git-blame-ignore-revs
.gitattributes
.gitignore Bug 1614314 - Use GitHub as upstream for the Java code of the HTML parser. r=alchen 2020-02-10 15:05:17 +00:00
.hg-annotate-ignore-revs
.hg-format-source
.hgignore
.hgtags No bug - Tagging mozilla-central f53ecf8eee2a0d2a7705d7ea3ec8682028e922a0 with FIREFOX_NIGHTLY_74_END a=release DONTBUILD CLOSED TREE 2020-02-10 10:54:50 +00:00
.lldbinit
.mailmap
.prettierignore
.prettierrc
.taskcluster.yml
.trackerignore
.yamllint
.ycm_extra_conf.py
AUTHORS
CLOBBER
Cargo.lock Bug 1616999 - Move the ICU include to GTK OSPreferences. r=jfkthame 2020-02-21 15:36:45 +00:00
Cargo.toml Bug 1361341 - Add rust clippy to mozlint r=ahal 2020-02-19 08:50:35 +00:00
GNUmakefile
LEGAL
LICENSE
Makefile.in
README.txt
aclocal.m4
build.gradle
client.mk
client.py
configure.in
configure.py
gradle.properties
gradlew
gradlew.bat
mach Bug 1614518 - Implement `mach hazards` command set for running the GC rooting hazard analysis. r=ahal,jonco,froydnj 2020-02-20 18:27:50 +00:00
moz.build Bug 1616630 - Use py3_action for GENERATED_FILES that already support it; r=firefox-build-system-reviewers,kvark,rstewart 2020-02-21 00:05:17 +00:00
moz.configure Bug 1609881 - Part 3: build the fork server for Linux & FreeBSD. r=gsvelto 2020-02-14 16:50:33 +00:00
mozilla-config.h.in
old-configure.in Bug 1611386 - Drop support for --enable-system-sqlite. r=asuth,glandium 2020-02-20 22:16:03 +00:00
package-lock.json
package.json
settings.gradle
substitute-local-geckoview.gradle
test.mozbuild

README.txt

An explanation of the Mozilla Source Code Directory Structure and links to
project pages with documentation can be found at:

    https://firefox-source-docs.mozilla.org/contributing/directory_structure.html

For information on how to build Mozilla from the source code and create the patch see:

    https://firefox-source-docs.mozilla.org/contributing/how_to_contribute_firefox.html

If you have a question about developing Mozilla, and can't find the solution
on https://developer.mozilla.org, you can try asking your question on IRC at irc.mozilla.org in #introduction channel.

Nightly development builds can be downloaded from:

    https://archive.mozilla.org/pub/firefox/nightly/latest-mozilla-central/
            - or -
    https://www.mozilla.org/firefox/channel/desktop/#nightly

Keep in mind that nightly builds, which are used by Mozilla developers for
testing, may be buggy.