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
Go to file
Masayuki Nakano 05ac721436 Bug 1533293 - part 4: Make Selection::SetStartAndEndInternal() select frames by itself r=smaug
When adding an range via `Selection::AddItem()` and only when it's caused by
user's operation, the range may be split at non-selectable content.  This is
done in `nsRange::ExcludeNonSelectableNodes()` but it modifies the given range
as the first range.  Then, [`Selection::AddRangeInternal()` calls
`Selection::SelectFrames()` with the range which may have been modified by
`nsRange::ExcludeNonSelectableNodes()`](https://searchfox.org/mozilla-central/rev/358f816f63da072145c593e9e2ac36b7250ecd25/dom/base/Selection.cpp#2030,2049).

Therefore, only the frames between first child of `<body>` element and
previous element of first non-selectable content are painted as selection
after user does "Select All".

[`Selection::Extend()` calls `Selection::SelectFrames()` by itself for all
existing ranges](https://searchfox.org/mozilla-central/rev/358f816f63da072145c593e9e2ac36b7250ecd25/dom/base/Selection.cpp#2718-2724).  Therefore, this patch creates new method and makes both
`Selection::Extend()` and `Selection::SetStartAndEndInternal()` call it only
when the result is not only one range.

Differential Revision: https://phabricator.services.mozilla.com/D24871

--HG--
extra : moz-landing-system : lando
2019-03-26 10:16:20 +00:00
.cargo Bug 1538419 - Add support for thumbv7neon to target-lexicon. r=froydnj 2019-03-26 03:12:56 +00:00
.vscode
accessible Bug 1473234: make a11y listen to DOM events from iframes and shadow DOM. r=eeejay 2019-03-25 05:04:36 +00:00
browser Bug 1505535 - Add tab usage probes for pinned tabs r=janerik 2019-03-26 09:12:10 +00:00
build Bug 1536307 - Bump libstdc++ requirement to 4.7. r=froydnj 2019-03-25 12:40:25 +00:00
caps Bug 1517483 - Get rid of nsIScriptSecurityManager::IsSystemPrincipal r=bzbarsky 2019-03-24 20:36:25 +00:00
chrome Bug 1523609 - avoid triggering nsChromeRegistryChrome::CheckForNewChrome (which does main thread I/O) during shutdown of system add-ons, r=kmag. 2019-03-22 14:19:59 +00:00
config Bug 1524396 - Unify how target/host linker/flags are passed to rust. r=chmanchester 2019-03-22 11:05:18 +00:00
db Bug 1530749 - Upgrade to SQLite 3.27.2. r=mak 2019-02-26 23:21:05 +00:00
devtools Bug 1512400 - Make console autocomplete optional. r=nchevobbe. 2019-03-26 07:13:15 +00:00
docshell Bug 1522412 - P3. Adopt nsIChannel.LOAD_BYPASS_URL_CLASSIFIER in the algorithm determining if we should classify a channel's URI. r=Ehsan,mayhemer 2019-03-25 12:48:25 +00:00
dom Bug 1533293 - part 4: Make Selection::SetStartAndEndInternal() select frames by itself r=smaug 2019-03-26 10:16:20 +00:00
editor Bug 1533293 - part 3: Make editor and ContentEventHandler not use Selection::Extend() due to too slow r=m_kato 2019-03-26 10:09:47 +00:00
embedding Bug 1514594: Part 3 - Change ChromeUtils.import API. 2019-01-17 10:18:31 -08:00
extensions Bug 1533293 - part 3: Make editor and ContentEventHandler not use Selection::Extend() due to too slow r=m_kato 2019-03-26 10:09:47 +00:00
gfx Bug 1538796 - Part 6 - remove unused IPDL OverlaySource union; r=kats 2019-03-25 19:30:26 +00:00
gradle/wrapper
hal Bug 1523969 part 9 - Move method definition inline comments to new line in 'hal/'. r=gsvelto 2019-02-25 16:07:35 -06:00
image Bug 1522412 - P2. Remove nsIChannel.LOAD_CLASSIFY_URI flag. r=Ehsan 2019-03-25 12:47:57 +00:00
intl Bug 1536103 - Fix Sphinx Warning - Title Underline too short in 'mach doc'. r=ahal 2019-03-22 19:30:34 +00:00
ipc Bug 1515551 - Add functionality to SharedMemoryBasic to help map the shared memory at an arbitrary address. r=kmag 2019-03-22 00:11:51 +00:00
js Bug 1538488 - Fix XPConnect/BigInt test when bigint is off r=kmag 2019-03-26 07:17:47 +00:00
layout Bug 1536353 - part 3: Make nsIDOMWindowUtils.dispatchDOMEventViaPresShell() dispatch only trusted event r=smaug 2019-03-26 10:10:22 +00:00
media Bug 1537725 - Use the default stack alignment in windows x86 for libdav1d. r=TD-Linux 2019-03-26 09:45:21 +00:00
memory Bug 1533240 - Replace DMD's custom TLS code with use of mozilla/ThreadLocal.h. r=erahm 2019-03-22 20:07:30 +00:00
mfbt Bug 1526507 - Use std::exp2{,f}(n) instead of pow{,f}(2.0, n) in TestFloatingPoint.cpp to be (hopefully) more resilient against standard library imprecision in the latter. r=dmajor 2019-03-25 17:54:25 +00:00
mobile Bug 1537885 - Use cmd_copy for copy command r=geckoview-reviewers,snorp 2019-03-25 16:34:07 +00:00
modules Bug 1538966 - Use legacy keyCode and charCode for sites with known issues. r=masayuki 2019-03-25 23:40:25 +00:00
mozglue Bug 1536316 remove suggestion that spurious condition variable wakeups are magically handled by ConditionVariableImpl r=froydnj 2019-03-25 12:41:19 +00:00
netwerk Bug 1527712 - Move I/O in nsFileChannel::OpenContentStream to a background thread, r=kershaw,dragana 2019-03-25 19:31:06 +00:00
nsprpub Bug 1526010, NSPR 4.21 RTM, r=me 2019-03-07 11:16:36 +01:00
other-licenses Bug 1523118 atk: Implement scrollsubstringto ATK API. r=surkov 2019-01-26 20:38:53 +01:00
parser Bug 1534346 - Mark malformed SVG scripts as malformed for real. r=alchen 2019-03-21 20:39:22 +00:00
python Bug 1539005 - Make mach bootstrap install the thumbv7neon-linux-androideabi target. r=froydnj 2019-03-26 00:19:20 +00:00
remote Bug 1536794 - Test Page.frameStoppedLoading and Page.navigatedWithinDocument. r=ato 2019-03-21 14:23:20 +00:00
security Bug 1538621. r=keeler 2019-03-25 22:01:10 +00:00
services No Bug, mozilla-central repo-update HSTS HPKP blocklist remote-settings - a=repo-update r=RyanVM 2019-03-25 12:45:49 +00:00
servo Bug 1536586 - followup of the followup: Remove unused #[macro_use] in 32-bit builds. 2019-03-22 00:09:22 +01:00
startupcache Bug 1353013 - create preloaded newtab browser from an idle task, only in top window(s), r=dthayer 2019-03-19 17:29:48 +00:00
storage Bug 1482608 - Add basic Rust bindings for mozStorage. r=nika,asuth,mak 2019-03-25 04:49:18 +00:00
taskcluster Bug 1519825: Update grcov to version 0.4.3 on macosx r=marco 2019-03-25 18:34:39 +00:00
testing Bug 1533293 - part 1: Create Selection::SetStartAndEnd() to set new range as far as faster r=smaug 2019-03-26 10:06:00 +00:00
third_party Bug 1538419 - Add support for thumbv7neon to target-lexicon. r=froydnj 2019-03-26 03:12:56 +00:00
toolkit Bug 1536353 - part 3: Make nsIDOMWindowUtils.dispatchDOMEventViaPresShell() dispatch only trusted event r=smaug 2019-03-26 10:10:22 +00:00
tools Bug 1480480 - Explain why some clang-tidy checkers are not published. r=sylvestre 2019-03-26 10:04:58 +00:00
uriloader Bug 1533074 - Implement Fingerprinting and Cryptomining annotation features - Part 1 - Classification flags in nsIHttpChannel, r=valentin,dimi 2019-03-14 17:47:59 +00:00
view Bug 1533617 part 1. Improve MOZ_CAN_RUN_SCRIPT annotations around synth mouse events. r=emilio 2019-03-11 14:58:04 +00:00
widget Merge inbound to mozilla-central a=merge 2019-03-25 17:53:27 +02:00
xpcom Backed out changeset 1c16d4ce9107 (bug 1527704) for build bustages in builds/worker/workspace/build/src/toolkit/profile/nsToolkitProfileService.cpp CLOSED TREE 2019-03-26 03:16:51 +02:00
xpfe/appshell Bug 1533405 - Do not create the hidden window if it's too early on startup or during shutdown. r=mossop 2019-03-20 19:35:59 +00:00
.arcconfig
.clang-format Bug 1521000 - Part 2: Adjust our clang-format rules to include spaces after the hash for nested preprocessor directives r=sylvestre 2019-01-18 10:16:18 +01:00
.clang-format-ignore Bug 1528492 - Add cbor-cpp to the thirdparty list r=jcj 2019-02-17 01:03:40 +00:00
.cron.yml Bug 1535057: Always re-fetch chromium in cron; r=aki 2019-03-13 20:05:24 +00:00
.eslintignore Bug 1507709 - Move WebExtensions geckoProfiler API to toolkit. r=kmag 2019-03-22 13:18:01 +00:00
.eslintrc.js Bug 1537776 - dom/ manual ESLint no-throw-literal fixes. r=asuth 2019-03-25 16:49:03 +00:00
.flake8 Bug 1523835 - Added python/mozbuild/mozpack to the flake8 linter and solved the errors, r=ahal 2019-03-01 15:36:45 -05:00
.gdbinit
.gdbinit_python
.git-blame-ignore-revs No Bug - Ignore bug 1128203 in blame/annotate. r=me 2019-03-21 16:37:20 -07:00
.gitignore Bug 1521864 - It should be possible to open the debugger in a tab. r=davidwalsh 2019-02-21 14:56:47 +00:00
.hg-annotate-ignore-revs No Bug - Ignore bug 1128203 in blame/annotate. r=me 2019-03-21 16:37:20 -07:00
.hg-format-source
.hgignore Bug 1525638 - Let hg ignore the build directories of WebRender standalone builds. r=ted 2019-02-11 13:37:44 +00:00
.hgtags No bug - Tagging mozilla-central 9421b477d67cfc4c9e03350cd554a9e6acc7f435 with FIREFOX_NIGHTLY_67_END a=release DONTBUILD CLOSED TREE 2019-03-18 10:56:58 +00:00
.lldbinit
.mailmap
.taskcluster.yml Bug 1534283 - add a 'tasks_for' property; r=tomprince 2019-03-14 20:01:32 +00:00
.trackerignore
.yamllint
.ycm_extra_conf.py Bug 1522135 - Make .ycm_extra_conf.py work with python3. r=jgraham 2019-01-24 13:51:28 +01:00
aclocal.m4 Bug 1519603 - Manually inline AC_OUTPUT_SUBDIRS and MOZ_RUN_ALL_SUBCONFIGURES. r=nalexander 2019-01-14 18:37:06 +00:00
AUTHORS
build.gradle Bug 1535013: [geckoview] Add default impls to all interfaces. r=snorp 2019-03-14 16:48:57 +00:00
Cargo.lock Bug 1538419 - Add support for thumbv7neon to target-lexicon. r=froydnj 2019-03-26 03:12:56 +00:00
Cargo.toml Bug 1538419 - Add support for thumbv7neon to target-lexicon. r=froydnj 2019-03-26 03:12:56 +00:00
client.mk
client.py
CLOBBER Update configs. IGNORE BROKEN CHANGESETS CLOSED TREE NO BUG a=release ba=release 2019-03-18 11:01:13 +00:00
configure.in
configure.py Bug 1528241 - Add a trace mode to python configure that logs internal values. r=chmanchester 2019-02-20 07:46:22 +09:00
GNUmakefile
gradle.properties Bug 1527896 - Increase Gradle heaps to handle large assets. r=nalexander 2019-02-14 18:21:13 +00:00
gradlew
LEGAL
LICENSE
mach
Makefile.in Bug 1535501 - Allow to get full crashreporter symbols on artifact builds. r=mshal 2019-03-15 21:56:14 +00:00
moz.build Bug 1507334 - Add mozconfigs for 3-stage PGO; r=firefox-build-system-reviewers,chmanchester#firefox-build-system-reviewers 2019-01-10 01:34:49 +00:00
moz.configure Bug 1535501 - Allow to get full crashreporter symbols on artifact builds. r=mshal 2019-03-15 21:56:14 +00:00
mozilla-config.h.in
old-configure.in Bug 1535226 - Remove uses of XP_WIN32 in Gecko. r=glandium 2019-03-21 01:28:50 +00:00
package-lock.json Bug 1517707. Update ESLint related modules to latest versions. r=mossop 2019-01-04 16:44:49 +00:00
package.json Bug 1517707. Update ESLint related modules to latest versions. r=mossop 2019-01-04 16:44:49 +00:00
README.txt
settings.gradle
test.mozbuild

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

    https://developer.mozilla.org/en/Mozilla_Source_Code_Directory_Structure

For information on how to build Mozilla from the source code, see:

    https://developer.mozilla.org/en/docs/Build_Documentation

To have your bug fix / feature added to Mozilla, you should create a patch and
submit it to Bugzilla (https://bugzilla.mozilla.org). Instructions are at:

    https://developer.mozilla.org/en/docs/Creating_a_patch
    https://developer.mozilla.org/en/docs/Getting_your_patch_in_the_tree

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 in a
mozilla.* Usenet group, or on IRC at irc.mozilla.org. [The Mozilla news groups
are accessible on Google Groups, or news.mozilla.org with a NNTP reader.]

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.