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
Перейти к файлу
Kris Maglione b68275373e Bug 1672479: Fix beforeunload handling in location.refresh under SHiP. r=peterv
Per spec, whenever a "beforeunload" event handler which would affect a
`location.reload()` call exists, it must be called before the `reload()` call
returns. If a handler requests to block the navigation and we choose to
display a confirmation prompt, that must also be displayed before the call
returns.

With session history in parent, though, that currently does not happen,
because `location.reload()` triggers an async IPC call to the parent process,
and only attempts the actual reload (and thus beforeunload dispatch and
prompting) once it returns, which is too late to affect the caller.

This patch changes the handling in this case to manually perform permit unload
checks before taking an async code path. This still leaves the opportunity for
session history handlers in the parent to cancel the load asynchronously, but
that doesn't violate any spec-defined behavior.

Differential Revision: https://phabricator.services.mozilla.com/D94354
2020-12-14 21:25:46 +00:00
.cargo Bug 1682262 - Update neqo to 0.4.18 and bindgen to 0.56 r=necko-reviewers,emilio,valentin 2020-12-14 18:38:49 +00:00
.vscode
accessible Bug 1639218 - Remove prompts.tab_modal.enabled pref. r=marionette-reviewers,johannh 2020-12-14 14:19:54 +00:00
browser Bug 1681042 - Fix user not being able to create new logins if they remove all logins when creating a new login. r=sfoster 2020-12-14 16:58:13 +00:00
build Bug 1682345 - Mention LLVM's build guide in toolchains.rst r=Gankro DONTBUILD 2020-12-14 18:30:22 +00:00
caps Backed out changeset f3aaf04fce3b (bug 1679758) for Devtool failures in browser_styleeditor_syncAddProperty.js. CLOSED TREE 2020-12-13 16:38:21 +02:00
chrome Bug 1660470 - Add missing include directives/forward declarations. r=nika 2020-11-23 16:21:38 +00:00
config Bug 1673027 - Part 2: Update tzdata in ICU data files to 2020d. r=jwalden 2020-12-04 17:23:41 +00:00
devtools Bug 1682295 - Update property dbs. 2020-12-14 18:27:54 +00:00
docs Backed out changeset eb6cdd43ce2e (bug 1677549) as requested by Simon. CLOSED TREE 2020-12-14 17:32:44 +02:00
docshell Bug 1672479: Fix beforeunload handling in location.refresh under SHiP. r=peterv 2020-12-14 21:25:46 +00:00
dom Bug 1675207 - Fail the websocket connection when there is no enough memory r=necko-reviewers,valentin 2020-12-14 21:15:38 +00:00
editor Bug 1671764 - Part 2. Respect application/system locale if language code is matched. r=masayuki 2020-12-14 03:01:08 +00:00
extensions Bug 1671764 - Part 1. Use ACString for dictionary language instead. r=masayuki 2020-12-14 03:01:05 +00:00
gfx Bug 1682365 - Pt 1 - Remove PrevPassAlpha and PrevPassColor r=nical 2020-12-14 19:38:48 +00:00
gradle/wrapper
hal Bug 1677466 - Move ParamTraits specializations with extra dependencies out of IPCMessageUtils.h. r=mccr8 2020-12-10 11:09:21 +00:00
image Backed out changeset f3aaf04fce3b (bug 1679758) for Devtool failures in browser_styleeditor_syncAddProperty.js. CLOSED TREE 2020-12-13 16:38:21 +02:00
intl Backed out changeset f3aaf04fce3b (bug 1679758) for Devtool failures in browser_styleeditor_syncAddProperty.js. CLOSED TREE 2020-12-13 16:38:21 +02:00
ipc Bug 1677466 - Move ParamTraits specializations with extra dependencies out of IPCMessageUtils.h. r=mccr8 2020-12-10 11:09:21 +00:00
js Backed out changeset 092f0ef9b7cf (bug 1681445) for causing bustage in TimeStamp_posix. CLOSED TREE 2020-12-14 23:17:27 +02:00
layout Bug 1493208 - Tweak scrollable rect offset to (0, 0) for the popup window opened by extensions. r=botond 2020-12-14 21:21:33 +00:00
media Bug 1681173 - Add updatebot key to moz.yaml file schema; r=tjr 2020-12-08 18:25:37 +00:00
memory Bug 1670885 - Replace deprecated NSSpinLocks with os_unfair_locks in the memory allocator r=glandium 2020-12-14 15:53:41 +00:00
mfbt Bug 1681546 - rename MOZ_ATOMIC_BITFIELDS methods to Load/Store. r=valentin,necko-reviewers 2020-12-09 18:14:55 +00:00
mobile Bug 1677838 - [1.1] Verify the image resource size string is valid before accepting it. r=geckoview-reviewers,agi 2020-12-08 21:07:30 +00:00
modules Bug 1493208 - Enable apz.popups.enabled. r=botond 2020-12-14 21:21:40 +00:00
mozglue Bug 1614697 - Remove supression for fixed issue. r=decoder 2020-12-14 17:26:32 +00:00
netwerk Bug 1675207 - Fail the websocket connection when there is no enough memory r=necko-reviewers,valentin 2020-12-14 21:15:38 +00:00
nsprpub
other-licenses
parser Bug 1680269 - Fix includes for nsHtml5StreamParser. r=hsivonen 2020-12-07 14:21:43 +00:00
python Bug 1681112 - python3 - python/mozbuild/mozbuild/configure/lint.py fix types.CodeType arguments. r=glandium 2020-12-09 00:52:39 +00:00
remote Bug 1681855 - [remote] Fallback to default timeout in browser_consoleAPICalled.js. r=remote-protocol-reviewers,jgraham 2020-12-14 09:25:49 +00:00
security Bug 1681104 - python3 - security/manager/tools/getCTKnownLogs.py - base64.decodestring -> base64.decodebytes. r=keeler 2020-12-10 21:14:31 +00:00
services No Bug, mozilla-central repo-update HSTS HPKP remote-settings tld-suffixes - a=repo-update r=RyanVM 2020-12-14 14:31:26 +00:00
servo Bug 1682262 - Update neqo to 0.4.18 and bindgen to 0.56 r=necko-reviewers,emilio,valentin 2020-12-14 18:38:49 +00:00
startupcache Bug 1660470 - Add missing include directives/forward declarations. r=nika 2020-11-23 16:21:38 +00:00
storage Bug 1678062 - Remove unnecessary includes. r=andi 2020-11-23 16:12:02 +00:00
taskcluster Bug 1678663 - Run wpt tests under Python 3 on Taskcluster, r=bc 2020-12-14 14:17:33 +00:00
testing Bug 1681109 - python3 - use six.moves.urllib instead of urllib in testing/mozbase/mozproxy/mozproxy/backends/mitm/scripts/alternate-server-replay.py. r=jmaher 2020-12-11 19:45:55 +00:00
third_party Bug 1682262 - Update neqo to 0.4.18 and bindgen to 0.56 r=necko-reviewers,emilio,valentin 2020-12-14 18:38:49 +00:00
toolkit Bug 1673648 - Use cross-platform printf format specifier r=smolnar! CLOSED TREE 2020-12-14 20:38:53 +00:00
tools Bug 1678663 - Swallow exceptions during shutdown of fix_stacks.py, r=bc 2020-12-14 14:11:10 +00:00
uriloader Backed out changeset f3aaf04fce3b (bug 1679758) for Devtool failures in browser_styleeditor_syncAddProperty.js. CLOSED TREE 2020-12-13 16:38:21 +02:00
view
widget Bug 1678463 - Part 1: Add _WITH_DELETE_ON_EVENT_TARGET macros to nsISupportsImpl, r=mccr8 2020-12-14 18:30:51 +00:00
xpcom Bug 1678463 - Part 1: Add _WITH_DELETE_ON_EVENT_TARGET macros to nsISupportsImpl, r=mccr8 2020-12-14 18:30:51 +00:00
xpfe/appshell Bug 1635914 - Move active flag handling explicitly to BrowsingContext. r=nika 2020-12-11 15:43:19 +00:00
.arcconfig
.babel-eslint.rc.js
.clang-format
.clang-format-ignore
.cron.yml Bug 1680028 - run l10n-bumper daily instead of hourly. r=releng-reviewers,jmaher,aki 2020-12-02 20:22:57 +00:00
.eslintignore
.eslintrc.js Bug 1675349: Update tests under dom/plugins/test for the removal of plugins. r=jmathies 2020-11-18 15:58:15 +00:00
.flake8 Bug 1673700 - Don't use double quotes around strings in definition of `fork_interpose` r=firefox-build-system-reviewers,glandium 2020-10-29 15:47:14 +00:00
.git-blame-ignore-revs Bug 1648010 - Add revisions for the replacement of literal string macros by string literals to the ignore sets. r=marco,glandium DONTBUILD 2020-12-01 09:04:42 +00:00
.gitattributes
.gitignore Bug 1666347 - Delete assorted dead code after removal of vendored `psutil` r=firefox-build-system-reviewers,rstewart 2020-11-27 16:21:07 +00:00
.hg-annotate-ignore-revs Bug 1648010 - Add revisions for the replacement of literal string macros by string literals to the ignore sets. r=marco,glandium DONTBUILD 2020-12-01 09:04:42 +00:00
.hg-format-source
.hgignore Bug 1666347 - Delete assorted dead code after removal of vendored `psutil` r=firefox-build-system-reviewers,rstewart 2020-11-27 16:21:07 +00:00
.hgtags No bug - tagging efceae9186cd456bb70240aa851855efb5afd316 with FIREFOX_NIGHTLY_84_END a=release DONTBUILD CLOSED TREE 2020-11-16 10:11:08 +00:00
.lldbinit
.mailmap
.prettierignore
.prettierrc
.taskcluster.yml
.trackerignore
.yamllint
.ycm_extra_conf.py
AUTHORS
CLOBBER
Cargo.lock Bug 1682262 - Update neqo to 0.4.18 and bindgen to 0.56 r=necko-reviewers,emilio,valentin 2020-12-14 18:38:49 +00:00
Cargo.toml Bug 1681485 - Revendor Cranelift to 3334d92350da40b90d2529c147db3ea44918b558. r=lth. 2020-12-10 06:51:48 +00:00
GNUmakefile
LICENSE
Makefile.in Bug 1675086 - drop reference to 'pgo' from Windows AArch EME artifact build. r=nalexander 2020-11-03 22:46:57 +00:00
README.txt
aclocal.m4
build.gradle Bug 1671460 - Update to apilint 0.4.0. r=snorp 2020-11-02 19:42:25 +00:00
client.mk
client.py
configure.in
configure.py
gradle.properties
gradlew
gradlew.bat
mach Bug 1638996 - Run wpt mach commands under Python 3, r=karlcow 2020-12-14 14:11:15 +00:00
moz.build Bug 1679938 - Don't recurse the build into mfbt for projects that don't need it. r=firefox-build-system-reviewers,mhentges 2020-12-01 23:52:03 +00:00
moz.configure Bug 1677742 - Followups for new pass manager LTO r=glandium 2020-11-21 02:13:04 +00:00
mozilla-config.h.in
old-configure.in Backed out changeset 092f0ef9b7cf (bug 1681445) for causing bustage in TimeStamp_posix. CLOSED TREE 2020-12-14 23:17:27 +02:00
package-lock.json
package.json
settings.gradle
substitute-local-geckoview.gradle
test.mozbuild

README.txt

An explanation of the Firefox 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 Firefox from the source code and create the patch see:

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

If you have a question about developing Firefox, and can't find the solution
on https://firefox-source-docs.mozilla.org/, you can try asking your question on Matrix at chat.mozilla.org in `Introduction` (https://chat.mozilla.org/#/room/#introduction:mozilla.org) 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 Firefox developers for
testing, may be buggy.