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
Tom Klein ce402fbf10 Bug 1340929 - Don't scroll to a new tab opened from a link. r=sebastian
We used to scroll in addTab to make sure a new tab created by a close-tab-undo
at the start or the end of the list was made visible instead of staying where it
was created off the edge.  We're now taking care of that in selectTab (where it
should have stayed in the first place), where the select in that case occurs
between the time when the new tab is added to the adapter and when the layout
gets updated.  In the case where the new tab is at the start, that means the
check 'position < layoutManager.findFirstCompletelyVisibleItemPosition()' in
selectTab reads '0 < 0', which fails (which is why we need the new check for
'position == 0'), but the check 'position >
layoutManager.findLastCompletelyVisibleItemPosition()' for a tab added at the
end reads 'new_lengh -1 > old_length - 1' which already passes, so we don't need
a special case for undo-tab-close adds at the end in selectTab.  Tabs added at
the end by a normal "create new tab" still scroll for the same reason.

Robotium was confused by the duplicate 'add_tab' ids from the tab strip and the
tabs panel, so I renamed one of them.  Also note that the 'getTabId' added to
TabStripItemView for testing already exists on TabLayoutItemView, but the two
classes don't share a common base.

MozReview-Commit-ID: BzG2r8BSs90

--HG--
rename : mobile/android/tests/browser/robocop/src/org/mozilla/gecko/tests/testTabStripPrivacyMode.java => mobile/android/tests/browser/robocop/src/org/mozilla/gecko/tests/testTabStrip.java
extra : rebase_source : b2859647d9e26cdca24e1b03065d3c62e20f7b1b
extra : source : 119ee2655404e277c13d0e436fba1cad1272797e
2017-02-22 21:54:11 -06:00
.cargo Bug 1277338 - Part 1: Turn js/src into the mozjs-sys crate; r=sfink 2016-10-13 16:12:42 -07:00
accessible Bug 1339779 - bail early if ipcDoc is not yet created. r=tbsaunde 2017-02-25 17:18:30 -05:00
addon-sdk Bug 1341097 - part 3: don't dispatch oodles of titlechanged notifications for new history entries, r=mak 2017-02-27 18:26:21 +00:00
b2g Bug 1342144 - Remove version parameter from the type attribute of script elements. r=jmaher 2017-02-23 06:10:07 +09:00
browser Bug 1311345 - Enable eslint of browser/components/privatebrowsing/ - Final manual fixes. r=jaws 2017-02-28 13:17:42 +00:00
build Bug 1316879 - Don't use CPP/CXXCPP from environment after bug 1299919. r=glandium 2017-02-23 22:01:18 +00:00
caps Bug 1341218 - nsNullPrincipal should serialize its URL, r=qdot 2017-02-23 14:30:23 +01:00
chrome merge mozilla-inbound to mozilla-central a=merge 2017-02-03 13:25:24 +01:00
config Bug 1302704 - part 1 - define CARGO_TARGET_DIR in the backend; r=chmanchester 2017-02-23 10:35:07 -05:00
db/sqlite3 Bug 1340028 - Remove the CLANG_VERSION macro from the in-tree SQLite. r=mak 2017-02-16 09:46:41 -05:00
devtools Bug 1341361 - reattach listChanged evts in root actor earlier to avoid missing updates;r=jryans 2017-02-09 22:11:01 +01:00
docshell Bug 1341657 - Properly deal with not having a frame element in nsDocShell::InternalLoad(); r=smaug 2017-02-27 09:39:50 -05:00
dom Bug 276079 - parse and compute CSS text-justify property. r=xidorn 2017-03-01 20:58:25 +08:00
editor Reenable some more stylo reftests. No bug. r=bzbarsky 2017-02-24 10:49:37 -05:00
embedding Bug 1332392 - embedding/* should have BUG_COMPONENTS specified in moz.build files. r=ted 2017-02-06 09:45:58 -05:00
extensions Bug 1340486 - Remove duplication of code at nsHttpNegotiate/NTLMAuth::TestPref and MatchesBaseURI r=mayhemer 2017-02-27 17:57:59 +01:00
gfx merge mozilla-inbound to mozilla-central a=merge 2017-03-01 11:40:59 +01:00
gradle/wrapper Bug 1300094 - Update Gradle to 2.14.1 and Gradle Plugin to 2.1.3 r=sebastian 2016-09-22 14:31:01 -07:00
hal Bug 1060419 - make log_print use Printf.h, r=froydnj 2016-12-15 20:16:31 -07:00
image Reenable several crashtests that no longer crash or leak or time out with stylo. No bug, r=bzbarsky 2017-02-24 15:22:37 -05:00
intl Bug 1341653 - Add NEWS to the local hyphen checkout to more easily track future updates. r=tjr 2017-02-27 14:25:27 -05:00
ipc Bug 1303060: Fix problematic annotation on mscom::InParamWalker; r=staticbustage-fix 2017-03-01 11:05:35 -07:00
js Bug 1343292 - change return types in GenericPrinter; r=nbp 2017-02-28 14:18:40 -07:00
layout Bug 1343593 - update stylo-failures.md for text-justify. r=Manishearth,test-fix 2017-03-01 19:00:18 +01:00
media Merge mozilla-central to autoland 2017-03-01 16:43:23 +01:00
memory Bug 1341621 - Avoid deadlocks in DMD when forking. r=njn 2017-02-23 17:47:02 -08:00
mfbt Bug 1341951 - Remove mozilla::AlignedStorage, and inline its sole use into js::jit::RInstructionStorage. r=nbp 2017-02-22 18:27:51 -08:00
mobile Bug 1340929 - Don't scroll to a new tab opened from a link. r=sebastian 2017-02-22 21:54:11 -06:00
modules Bug 1330349 - Part 1 - move the new theme WebExtension API to the toolkit collection of APIs. r=aswan 2017-03-01 17:57:13 +01:00
mozglue Bug 1256565 - Part 1. Implement GetEventTimeStamp(). r=jchen,karlt 2017-02-20 12:34:44 +09:00
netwerk Merge mozilla-central to autoland 2017-03-01 16:43:23 +01:00
nsprpub Bug 1331810: enable sending of 0 size UDP packets in NSPR. r=ted 2017-01-18 11:50:12 -08:00
other-licenses Bug 1324617 - Allow any of multiple installations to be set as the Windows default browser; r=jimm,rstrong 2017-01-09 08:14:00 -08:00
parser Bug 1342144 - Remove version parameter from the type attribute of script elements. r=jmaher 2017-02-23 06:10:07 +09:00
probes
python Backed out changeset 3c0a7527608a (bug 1335873) 2017-03-01 17:35:06 +01:00
rdf Bug 1060419 - make log_print use Printf.h, r=froydnj 2016-12-15 20:16:31 -07:00
release/docker bug 1314574 replace sys.path with site.addsitedir so that .pth files are processed. r=rail a=release DONTBUILD 2016-11-02 10:43:57 +00:00
security Bug 1342736 - Remove nsIX509CertDB.verifySignedManifestAsync(). r=mgoodwin 2017-02-26 20:25:36 +08:00
services Bug 1321740 - Avoid a full sync after signing in due to fxa reauthentication. r=markh 2017-02-21 16:18:43 -05:00
servo servo: Merge #15416 - Fix border shorthand serialization (from karlding:servo-15395_border_serialization); r=emilio 2017-03-01 09:50:49 -08:00
startupcache Bug 1341794 - annotate startupcache/* moz.build file with BUG_COMPONENT. r=froydnj 2017-02-23 08:01:45 -05:00
storage Bug 1342441 - Improve the Wrong Sqlite Version message. r=asuth 2017-02-24 17:39:30 +01:00
taskcluster Backed out changeset 3c0a7527608a (bug 1335873) 2017-03-01 17:35:06 +01:00
testing Bug 1343539: Enable unit and talos tests for macosx64 opt. r=catlee 2017-03-01 15:26:13 -03:00
third_party/rust Bug 1341102: Revendor rust dependencies; r=bustage 2017-02-28 09:23:59 -08:00
toolkit Bug 1337115 - Part 2 - Send telemetry if session restore completely fails and we're not on the first run. r=sebastian 2017-02-17 20:02:33 +01:00
tools Bug 1328378 (part 4) - Remove sample_obj. r=mstange. 2017-02-27 12:32:55 +11:00
uriloader Bug 1322576 - [4.0] Fix some coding style issues. r=smaug 2017-02-22 14:57:41 +01:00
view Bug 1275347 - Move the display list profiler marker to the right place. r=mattwoodrow 2017-02-16 19:18:37 -05:00
widget merge mozilla-inbound to mozilla-central a=merge 2017-03-01 11:40:59 +01:00
xpcom merge mozilla-inbound to mozilla-central a=merge 2017-03-01 11:40:59 +01:00
xpfe Bug 1060419 - remove unneeded includes of prprf.h, r=froydnj 2016-12-09 10:00:01 -10:00
.clang-format Bug 1322321 - Update the clang format file to match more our coding style r=ehsan 2016-12-06 17:43:17 -10:00
.clang-format-ignore Bug 1343185 - Add the JNI generate files in the list of ignored elements r=mystor 2017-02-28 08:27:33 +01:00
.clang-tidy Bug 1319396 - Update the list of checkers in the .clang-tidy file r=Ehsan 2016-11-22 12:30:19 +01:00
.cron.yml Bug 1338385 - Add cron job for nightly coverage tests run; r=jmaher 2017-02-08 11:16:25 -08:00
.eslintignore Bug 1311345 - Enable eslint of browser/components/privatebrowsing/ - Initial changes; r=standard8 2017-02-28 12:21:00 +00:00
.eslintrc.js Bug 1338585 - Add an eslint rule to require using .ownerGlobal instead of .ownerDocument.defaultView, r=jaws. 2017-02-13 13:01:32 +01:00
.flake8 Bug 1321956 - Disable flake8 check for 'visually indented line with same indent as next logical line', r=ahal 2016-12-08 09:53:21 -10:00
.gdbinit Bug 1317802 - don't stop for SIGSYS in .gdbinit; r=jld 2016-11-16 01:13:22 -05:00
.gdbinit_python
.gitignore Bug 1301790 - Bundle codemirror into a single script;r=gl 2016-09-11 09:38:51 -07:00
.hgignore Bug 1332691: Add script to regenerate tests, update the WPT manifest and expectations; r=luke 2017-02-17 20:13:54 +01:00
.hgtags No bug - Tagging mozilla-central f80dc9fc34680105b714a49b4704bb843f5f7004 with FIREFOX_AURORA_53_BASE a=release DONTBUILD CLOSED TREE 2017-01-23 15:31:28 +00:00
.lldbinit
.taskcluster.yml Bug 1334810: temporarily revert {{owner}}; r=garndt 2017-02-07 16:18:19 +00:00
.ycm_extra_conf.py Bug 1293534: Fix .ycm_extra_conf after bug 1195748. r=gps 2016-08-09 10:30:58 -07:00
aclocal.m4 Bug 1262155 - Use moz.build instead of libffi's build system. r=ted,glandium 2016-08-08 16:58:54 -07:00
Android.mk
AUTHORS Bug 1302763 - Move docker images out of testing/docker into taskcluster/docker; r=dustin r=CuriousLearner 2016-10-20 18:25:34 +05:30
build.gradle Bug 1318823 - Use com.getkeepsafe.dexcount in Gradle builds. r=sebastian 2016-11-18 18:28:58 -08:00
client.mk Bug 1317778 - Emit a depfile with python configure dependencies so Make will know when to re-run configure. r=glandium 2016-12-02 10:05:57 -08:00
client.py
CLOBBER Backed out 5 changesets (bug 1318370) for mozilla-central Windows static-analysis bustage 2017-02-21 21:22:01 -08:00
configure.in Bug 1295751 - Make it possible to copy configure.in to configure. r=gps 2016-08-16 19:35:00 -07:00
configure.py Bug 1316140 - Allow use of multiprocessing from config.status on windows. r=mshal 2016-12-21 16:28:28 -08:00
GNUmakefile
gradle.properties
gradlew
LEGAL
LICENSE
mach Bug 1316140 - Allow use of multiprocessing from config.status on windows. r=mshal 2016-12-21 16:28:28 -08:00
Makefile.in Bug 1339182 - Remove OSX universal support in the build system; r=glandium 2017-02-10 16:52:17 -05:00
moz.build Backed out changeset f35554b2951e (bug 1335873) 2017-03-01 17:35:01 +01:00
moz.configure Bug 1197325 - Remove now unused genisoimage. r=ted 2017-02-02 10:10:27 -05:00
mozilla-config.h.in
old-configure.in Bug 1337162 - Enable the Linux content sandbox for non-Nightly builds. r=ted 2017-02-27 18:01:33 +01:00
README.txt
settings.gradle Bug 1291363 - Add geckoview and geckoview_example Gradle projects. r=jchen,sebastian 2016-10-05 20:23:38 -07:00
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:

    http://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:

    http://developer.mozilla.org/en/docs/Creating_a_patch
    http://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 http://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.]

You can download nightly development builds from the Mozilla FTP server.
Keep in mind that nightly builds, which are used by Mozilla developers for
testing, may be buggy. Firefox nightlies, for example, can be found at:

    https://archive.mozilla.org/pub/firefox/nightly/latest-mozilla-central/
            - or -
    http://nightly.mozilla.org/