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
Перейти к файлу
Nicolas Chevobbe 0905947b3b Bug 1564480 - Enhance performance on parseAttribute function. r=gl.
`hasAttribute` and `getAttribute` were using for..of loop to
get what they wanted, which wasn't ideal.
Moreover, most of those operations were happening because we
didn't pass the attribute value to the parseAttribute function,
only an array of all the attributes. This is a bit unfortunate
there's only one place where we call the parseAttribute function,
and there, we have easy access to the attribute value.

This patch removes direct calls to hasAttribute and getAttribute.
hasAttribute is removed, but we need to keep getAttribute for the
isValid function in parsers.
We add an `attributeValue` parameter to the parseAttribute function.
The unit test for this function is also modified to pass the attribute
value.

perfherder reports a ~2.5% improvement on custom open and ~3% on
custom reload.

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

--HG--
extra : moz-landing-system : lando
2019-07-11 08:53:53 +00:00
.cargo Bug 1563263: Bump Cranelift to 312516a69da03dc06eace32f61412389a8dcadf3; r=lth 2019-07-04 06:28:01 +00:00
.vscode Bug 1563848 - Recommend a VSCode plugin for prettier. r=vporof 2019-07-06 07:33:28 +00:00
accessible Bug 1564299: Fire a reorder event on the outer doc accessible when an OOP document gets added. r=yzen 2019-07-10 12:59:21 +00:00
browser Bug 1564830 - Remove userInitiatedFocus flag. r=harry 2019-07-11 07:48:42 +00:00
build Bug 1562952 - Always build signmar when mar is built. r=nalexander 2019-07-11 06:09:02 +00:00
caps Bug 1289211 - Rename InfallibleTArray to nsTArray in caps/ r=bzbarsky 2019-07-10 03:24:29 +00:00
chrome Backed out 3 changesets (bug 1541557) for failures in SpecialPowersObserverAPI.js. a=backout CLOSED TREE 2019-07-08 14:38:45 +02:00
config Merge autoland to mozilla-central. a=merge 2019-07-09 06:43:17 +03:00
devtools Bug 1564480 - Enhance performance on parseAttribute function. r=gl. 2019-07-11 08:53:53 +00:00
docshell Bug 1563996 - Make privacy.trackingprotection.{pbmode.,}enabled static prefs. r=bzbarsky 2019-07-09 07:59:22 +00:00
dom Bug 928150: Implement canvas getTransform() and setTransform() r=bzbarsky 2019-07-11 06:14:58 +00:00
editor Bug 1563508 - part 5: Make `runRemoveContentTest()` async and fix an editor's bug which found by the test order change r=m_kato 2019-07-09 05:20:01 +00:00
extensions Bug 1289211 - Rename InfallibleTArray to nsTArray in extensions/spellcheck/ r=Ehsan 2019-07-10 03:28:47 +00:00
gfx Bug 928150: Implement canvas getTransform() and setTransform() r=bzbarsky 2019-07-11 06:14:58 +00:00
gradle/wrapper Bug 1509572 - Part 1: Bump Gradle wrapper to 4.10.2; decouple script from Gradle version. r=snorp 2018-11-26 21:42:27 +00:00
hal Bug 1289211 - Rename InfallibleTArray to nsTArray in hal/ r=gsvelto 2019-07-10 03:30:52 +00:00
image Bug 1289211 - Rename InfallibleTArray to nsTArray in image/ r=aosmond 2019-07-10 03:31:04 +00:00
intl Backed out 5 changesets (bug 1421938) for bustages in /builds/worker/workspace/build/src/layout/base/nsQuoteList.cpp CLOSED TREE 2019-07-09 02:52:38 +03:00
ipc Bug 1562763 - Factor process launching into a helper class, and use more promises. r=jld 2019-07-10 22:37:37 +00:00
js Bug 1562550 - (part 5) Avoid unnecessary poisoning between GCs r=jonco 2019-07-11 02:32:43 +00:00
layout Bug 1547391 - Add a crashtest for multicol <details> containing a column-span. r=dbaron 2019-07-11 05:33:09 +00:00
media Bug 1563734 - always sync session ID from remote decoder. r=jya 2019-07-11 07:25:30 +00:00
memory Bug 1562358 - Move fallible.h into MFBT. r=glandium 2019-07-10 01:51:15 +00:00
mfbt Bug 1562358 - Move fallible.h into MFBT. r=glandium 2019-07-10 01:51:15 +00:00
mobile Bug 1563734 - always sync session ID from remote decoder. r=jya 2019-07-11 07:25:30 +00:00
modules Bug 1560597 - Safe Browsing supports downloading social tracking list. r=baku 2019-07-11 08:04:05 +00:00
mozglue Bug 1564106: Reorder interceptor tests so that lower-level APIs are hooked before higher-level APIs; r=handyman 2019-07-10 18:26:40 +00:00
netwerk Bug 1564910 - Update the social-tracking features with the new classification tables, r=dimi 2019-07-11 08:07:26 +00:00
nsprpub Bug 1562330 - Upgrade Firefox 70 to NSPR 4.22 beta1. r=me 2019-07-09 17:40:27 +02:00
other-licenses Bug 1553537 Part 2 - Port the InetBgDL plugin to Visual Studio 2019. r=agashlin 2019-06-25 00:34:13 +00:00
parser Bug 467035 - Avoid leaking browser language via DTD r=Gijs,bzbarsky 2019-07-08 10:47:05 +00:00
python Backed out changeset fa94c9a03e3f (bug 1564314) for linting failures on a CLOSED TREE 2019-07-10 10:12:34 +03:00
remote Bug 1563685 - Rename WebSocketDebuggerTransport class to match its JSM file name. r=remote-protocol-reviewers,jdescottes,ato 2019-07-09 09:36:16 +00:00
security bug 1563056 - download the most recent CRLite filter and all following incremental filters r=jcj 2019-07-11 00:29:44 +00:00
services Merge autoland to mozilla-central. a=merge 2019-07-09 06:43:17 +03:00
servo Bug 1559276 - Part 2: Retire the support for 3-valued syntax for position. r=emilio 2019-07-10 20:25:25 +00:00
startupcache Bug 1554162 - Enable ESLint for startupcache/. r=froydnj 2019-05-25 02:07:26 +00:00
storage Bug 1561435 - Format storage/, a=automatic-formatting 2019-07-05 10:59:24 +02:00
taskcluster Bug 1564450 - Rename nightly-geckoview hook into ship-geckoview and ship GV beta automatically r=Callek 2019-07-11 08:32:17 +00:00
testing Bug 928150: Implement canvas getTransform() and setTransform() r=bzbarsky 2019-07-11 06:14:58 +00:00
third_party Backed out 42 changesets (bug 1530715) for SM build bustages on a CLOSED TREE 2019-07-10 10:56:00 +03:00
toolkit Bug 1560597 - Safe Browsing supports downloading social tracking list. r=baku 2019-07-11 08:04:05 +00:00
tools Bug 1562642 - Part 4 - Add missing MPL2 headers in tools r=ahal 2019-07-10 19:12:07 +00:00
uriloader Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan 2019-07-06 08:18:28 +00:00
view Bug 1557371 - Part 2 - Load all XUL crashtests with chrome privilege. r=dbaron 2019-07-09 19:40:42 +00:00
widget Bug 1552126 - Convert gfx.blocklist.all to a non-Skip pref. r=mattwoodrow 2019-07-10 22:32:19 +00:00
xpcom Bug 1563996 - [Attempt 2] Make consoleservice.logcat a static pref. r=erahm 2019-07-09 20:59:59 +10:00
xpfe/appshell Bug 1557887 - Part 3: Extend nsIDocShell.createAboutBlankContentViewer() to accept a storage principal argument; r=baku 2019-06-12 09:04:24 +00:00
.arcconfig
.clang-format Bug 1547143 - Force the pointer style declaration r=Ehsan 2019-05-01 08:46:08 +00:00
.clang-format-ignore Bug 1563903 - Remove libmar from the clang ignore list r=Ehsan 2019-07-08 15:39:24 +00:00
.cron.yml Bug 1564450 - Rename nightly-geckoview hook into ship-geckoview and ship GV beta automatically r=Callek 2019-07-11 08:32:17 +00:00
.eslintignore Bug 1561435 - Avoid formatting sensitive fixtures for dom/, r=standard8 2019-07-04 19:39:31 +02:00
.eslintrc.js Bug 1561435 - Format devtools/client/, a=automatic-formatting 2019-07-05 11:24:38 +02:00
.flake8 Bug 1542963 - Fix most flake8 issues in python/mozbuild/mozbuild/* r=firefox-build-system-reviewers,chmanchester 2019-05-28 14:22:20 +00:00
.gdbinit Bug 1486903 - Add "ftl" command to dump frame subtree to .gdbinit. r=Ehsan 2018-08-28 20:20:21 +00:00
.gdbinit_python Backed out changeset fa94c9a03e3f (bug 1564314) for linting failures on a CLOSED TREE 2019-07-10 10:12:34 +03:00
.git-blame-ignore-revs Bug 1564862 - Update .git-blame-ignore-revs to ignore reformatting m-c using Prettier (bug 1561435) in blame/annotate, r=sylvestre 2019-07-10 13:47:38 +00:00
.gitattributes Bug 770286: Prevent git LF-to-CRLF autoconversion r=glandium 2019-07-06 02:36:03 +00:00
.gitignore Bug 1555482 - Remove strings-import, bundle:locales and imported strings (locales-src/ subdirectories) r=k88hudson 2019-07-03 23:49:23 +00:00
.hg-annotate-ignore-revs Bug 1563763 - Ignore reformatting m-c using Prettier (bug 1561435) in in blame/annotate, r=standard8, CLOSED TREE, DONTBUILD 2019-07-05 17:53:06 +02:00
.hg-format-source Bug 1556393 - Pre 1 (m-c): Update .hg-format-source to use Prettier when running format-source, r=andi, CLOSED TREE 2019-07-03 20:48:37 +02:00
.hgignore Bug 1556760 Organize the test ini file in folders r=perftest-reviewers,alexandru.irimovici,AlexandruIonescu 2019-06-19 07:44:35 +00:00
.hgtags No bug - Tagging mozilla-central e596664275d5e3e2fdcb7fa8d1447289f99269c3 with FIREFOX_NIGHTLY_69_END a=release DONTBUILD CLOSED TREE 2019-07-08 16:13:40 +00:00
.lldbinit
.mailmap
.prettierignore Bug 1561435 - Format remaining devtools/, a=automatic-formatting, CLOSED TREE 2019-07-05 11:29:32 +02:00
.prettierrc Bug 1551218 - Part 3: Add a top-level .prettierrc and reformat the debugger, r=jlast 2019-05-17 15:51:36 +00:00
.taskcluster.yml Bug 1542233 - Add link to treeherder for all notification emails r=tomprince 2019-07-08 18:47:27 +00:00
.trackerignore Bug 1486468 - Add .trackerignore file to avoid GNOME Tracker indexing mozilla-central files. r=ahal 2018-08-27 16:45:03 +02:00
.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
AUTHORS
CLOBBER Update configs. IGNORE BROKEN CHANGESETS CLOSED TREE NO BUG a=release ba=release 2019-07-08 17:27:36 +00:00
Cargo.lock Backed out 42 changesets (bug 1530715) for SM build bustages on a CLOSED TREE 2019-07-10 10:56:00 +03:00
Cargo.toml Bug 1560836 - Create marionette subcrate in geckodriver. r=ato 2019-07-09 12:10:10 +00:00
GNUmakefile
LEGAL
LICENSE
Makefile.in Bug 1557785 - Process install manifests in 3-tier Windows builds; r=firefox-build-system-reviewers,chmanchester 2019-06-19 22:06:14 +00:00
README.txt Bug 1480997 - Remove "Mozilla FTP server" link in README.txt r=mossop 2018-10-23 10:06:29 +00:00
aclocal.m4 Bug 1557583 - Add a --enable-frame-pointers option. r=chmanchester 2019-06-12 22:30:46 +00:00
build.gradle Bug 1391438 - Support FIDO2 for WebAuthn on Android r=snorp,keeler 2019-05-10 16:40:17 +00:00
client.mk Bug 1498031 - Merge code paths for running configure between Tup and Make based backends. r=firefox-build-system-reviewers,mshal 2018-10-16 22:21:36 +00:00
client.py
configure.in
configure.py Bug 1559975 - Make configure.py lint with 'py2' and 'py3' r=catlee 2019-07-08 17:34:09 +00:00
gradle.properties Bug 1527896 - Increase Gradle heaps to handle large assets. r=nalexander 2019-02-14 18:21:13 +00:00
gradlew
gradlew.bat Bug 1527796 - Part 3. Use gradlew.bat on Windows. r=nalexander 2019-02-26 11:06:12 +09:00
mach
moz.build Bug 1560425 - Remove old performance measurement API r=jorendorff 2019-07-02 14:37:17 +00:00
moz.configure Bug 1560340 - Only add confvars.sh as a dependency to config.status when it exists. r=chmanchester 2019-06-20 18:43:25 +00:00
mozilla-config.h.in Bug 1504022 - Map GetExceptionCode to a nop to avoid an error r=bobowen 2018-11-02 13:28:01 -05:00
old-configure.in Bug 1562952 - Always build signmar when mar is built. r=nalexander 2019-07-11 06:09:02 +00:00
package-lock.json Bug 1494796 - Removing threadClient specifics from DebuggerClient Special case resume; r=jdescottes,jlast 2019-06-14 04:24:17 +00:00
package.json Bug 1494796 - Removing threadClient specifics from DebuggerClient Special case resume; r=jdescottes,jlast 2019-06-14 04:24:17 +00:00
settings.gradle Bug 1543982 - Part 1: Avoid re-configuring from within Gradle. r=emilio 2019-05-09 20:38:48 +00:00
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://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.