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
Перейти к файлу
Andreas Tolfsen 1fe3c441c1 Bug 1153822: Adjust Marionette responses to match WebDriver protocol
Introduce protocol version levels in the Marionette server.
On establishing a connection to a local end, the remote will return a
`marionetteProtocol` field indicating which level it speaks.

The protocol level can be used by local ends to either fall into
compatibility mode or warn the user that the local end is incompatible
with the remote.

The protocol is currently also more expressive than it needs to be and
this expressiveness has previously resulted in subtle inconsistencies
in the fields returned.

This patch reduces the amount of superfluous fields, reducing the
amount of data sent.  Aligning the protocol closer to the WebDriver
specification's expectations will also reduce the amount of
post-processing required in the httpd.

Previous to this patch, this is a value response:

    {"from":"0","value":null,"status":0,"sessionId":"{6b6d68d2-4ac9-4308-9f07-d2e72519c407}"}

And this for ok responses:

    {"from":"0","ok":true}

And this for errors:

    {"from":"0","status":21,"sessionId":"{6b6d68d2-4ac9-4308-9f07-d2e72519c407}","error":{"message":"Error loading page, timed out (onDOMContentLoaded)","stacktrace":null,"status":21}}

This patch drops the `from` and `sessionId` fields, and the `status`
field from non-error responses.  It also drops the `ok` field in non-value
responses and flattens the error response to a simple dictionary with the
`error` (previously `status`), `message`, and `stacktrace` properties,
which are now all required.

r=jgriffin

--HG--
extra : commitid : FbEkv70rxl9
extra : rebase_source : 3116110a0d197289cc95eba8748be0a33566c5a5
2015-05-21 11:26:58 +01:00
accessible Bug 1201146 - Introduce "Section" traversal rule. r=yzen 2015-09-04 10:04:19 -07:00
addon-sdk Bug 1202019 - Remove old Jetpack test command. r=Mossop 2015-09-04 23:16:08 -05:00
b2g Bumping manifests a=b2g-bump 2015-09-06 20:50:02 -07:00
browser Bug 1179568 - remove toolkit/system/dbus. r=roc 2015-09-07 01:19:00 +02:00
build Bug 1170388 - Removed an outdated workaround for old clang versions in the static analysis plugin. r=mystor 2015-09-04 12:37:33 -04:00
caps Bug 1198334 (part 1) - Replace the opt-in FAIL_ON_WARNINGS with the opt-out ALLOW_COMPILER_WARNINGS. r=glandium. 2015-08-27 20:44:53 -07:00
chrome Bug 1194153 - Chrome Registry's convertChromeURL shouldn't crash when given a null url, r=bsmedberg. 2015-09-04 11:39:08 +02:00
config Bug 1170072 - Part 2. Use ICU instead of GetCharProps1 and its supporting data if ICU is turned on. r=jfkthame 2015-09-07 11:56:13 +09:00
db/sqlite3 Bug 1198334 (part 1) - Replace the opt-in FAIL_ON_WARNINGS with the opt-out ALLOW_COMPILER_WARNINGS. r=glandium. 2015-08-27 20:44:53 -07:00
docshell Bug 1200118 - Create a barebones TimelineMarker abstract class, r=tromey 2015-09-04 14:13:11 +02:00
dom Bug 895274 part.114 Rename NS_SVG_ZOOM to eSVGZoom r=smaug 2015-09-07 23:55:52 +09:00
editor Backed out 4 changesets (bug 571294, bug 1196479) for W(2) failure on Linux 64 opt. r=backout on a CLOSED TREE 2015-09-04 20:29:48 +02:00
embedding Bug 1198334 (part 1) - Replace the opt-in FAIL_ON_WARNINGS with the opt-out ALLOW_COMPILER_WARNINGS. r=glandium. 2015-08-27 20:44:53 -07:00
extensions Backed out 4 changesets (bug 571294, bug 1196479) for W(2) failure on Linux 64 opt. r=backout on a CLOSED TREE 2015-09-04 20:29:48 +02:00
gfx Bug 1196463 - Update harfbuzz to release 1.0.3 from upstream. r=jdaggett 2015-09-07 08:22:05 +01:00
hal Bug 1198334 (part 1) - Replace the opt-in FAIL_ON_WARNINGS with the opt-out ALLOW_COMPILER_WARNINGS. r=glandium. 2015-08-27 20:44:53 -07:00
image Bug 1151694 - Part 2 - imgTools should be inside mozilla::image namespace. r=bbirtles 2015-09-03 23:00:00 +02:00
intl Bug 1170072 - Part 2. Use ICU instead of GetCharProps1 and its supporting data if ICU is turned on. r=jfkthame 2015-09-07 11:56:13 +09:00
ipc Bug 1201329 - Use AlignedStorage2 instead of char[] for IPDL union members. r=billm 2015-09-03 21:56:59 -07:00
js Bug 1199535 - IonMonkey: MIPS: Implement AtomicOperations shared. r=lth 2015-08-31 19:44:28 +08:00
layout Bug 1057680 - Reftest for use of font-stretch values in the font shorthand. r=jdaggett 2015-09-07 09:10:00 +01:00
media Bug 1187067 - Added gtests using the bug's test file, running simple checks and many parsing runs to catch parser crashes. r=rillian 2015-09-04 07:07:00 +02:00
memory Bug 1201792 - s/MOZ_JEMALLOC3/MOZ_JEMALLOC4/. r=njn 2015-09-04 15:15:47 +09:00
mfbt Bug 1193600 - Add Clamp and IsPowerOfTwo to MFBT. - r=waldo 2015-09-04 13:33:10 -07:00
mobile Backed out 10 changesets (bug 1123237) for hazard build failures and Windows test failures 2015-09-05 13:49:39 -07:00
modules Remove a pref that forces directwrite on when D2D is blocked. (bug 1193641, r=milan) 2015-09-04 17:47:49 -07:00
mozglue Bug 1198334 (part 1) - Replace the opt-in FAIL_ON_WARNINGS with the opt-out ALLOW_COMPILER_WARNINGS. r=glandium. 2015-08-27 20:44:53 -07:00
netwerk Bug 1201174 - For FTP - in case of divertToParent, it myst be possible to delay delivering of OnDataAv./OnStopR. r=jduell 2015-09-04 03:55:00 +02:00
nsprpub Bug 1191269, set NSPR version to final tag, no code change, DONTBUILD 2015-08-19 18:05:33 +02:00
other-licenses Bug 1198334 (part 1) - Replace the opt-in FAIL_ON_WARNINGS with the opt-out ALLOW_COMPILER_WARNINGS. r=glandium. 2015-08-27 20:44:53 -07:00
parser Bug 895274 part.109 Rename NS_SVG_LOAD to eSVGLoad r=smaug 2015-09-07 23:55:51 +09:00
probes
python Bug 1174037 - Support installing Mercurial from pip; r=glandium 2015-09-04 10:37:29 -07:00
rdf Bug 1198334 (part 1) - Replace the opt-in FAIL_ON_WARNINGS with the opt-out ALLOW_COMPILER_WARNINGS. r=glandium. 2015-08-27 20:44:53 -07:00
security No bug, Automated HPKP preload list update from host bld-linux64-spot-1098 - a=hpkp-update 2015-09-05 03:41:54 -07:00
services Bug 1196008 - have test_errorhandler.js use a real server to speed it up. r=rnewman 2015-09-04 08:53:37 +10:00
startupcache Bug 1198334 (part 1) - Replace the opt-in FAIL_ON_WARNINGS with the opt-out ALLOW_COMPILER_WARNINGS. r=glandium. 2015-08-27 20:44:53 -07:00
storage Backed out changeset 351d5f864f9e for not compiling. 2015-09-04 09:52:24 -07:00
testing Bug 1153822: Adjust Marionette responses to match WebDriver protocol 2015-05-21 11:26:58 +01:00
toolkit Bug 1179568 - remove toolkit/system/dbus. r=roc 2015-09-07 01:19:00 +02:00
tools Backed out 10 changesets (bug 1123237) for hazard build failures and Windows test failures 2015-09-05 13:49:39 -07:00
uriloader Bug 1198334 (part 1) - Replace the opt-in FAIL_ON_WARNINGS with the opt-out ALLOW_COMPILER_WARNINGS. r=glandium. 2015-08-27 20:44:53 -07:00
view Merge inbound to m-c. a=merge 2015-08-31 15:21:02 -04:00
webapprt Bug 1199826 - identify bug components for webapprt directories; r=marco 2015-08-30 15:44:28 -07:00
widget Bug 895274 part.114 Rename NS_SVG_ZOOM to eSVGZoom r=smaug 2015-09-07 23:55:52 +09:00
xpcom Bug 1195767 - part 5 - use signaling instead of broadcast when work items are placed in nsEventQueue; r=gerald 2015-09-03 16:38:18 -04:00
xpfe Bug 1196163 part 1 - Use nsSizeMode instead of int32_t for nsIWidget::{SizeMode,SetSizeMode}. r=roc 2015-08-29 11:12:41 +10:00
xulrunner Bug 1198334 (part 1) - Replace the opt-in FAIL_ON_WARNINGS with the opt-out ALLOW_COMPILER_WARNINGS. r=glandium. 2015-08-27 20:44:53 -07:00
.clang-format Bug 961541 - Make Clang-Format ignore all comments. r=mystor 2015-06-26 12:38:44 -07:00
.clang-format-ignore
.gdbinit Backed out changeset 047d21f101de (bug 846018) 2014-11-13 17:11:25 -05:00
.gitignore Bug 1198247 - Update .gitignore for moved locations of psutil build files. r=gps NPOTB DONTBUILD 2015-08-27 11:24:18 +01:00
.hgignore Bug 1153822: Adjust Marionette responses to match WebDriver protocol 2015-05-21 11:26:58 +01:00
.hgtags No bug - Tagging mozilla-central 7a19194812eb with FIREFOX_AURORA_42_BASE a=release DONTBUILD CLOSED TREE 2015-08-10 12:17:38 -07:00
.lldbinit
.ycm_extra_conf.py Bug 1162714 - Don't let YCM generate machc. r=ehsan 2015-05-07 13:48:00 +02:00
AUTHORS Bug 992096 - Implement Sub Resource Integrity [1/2]. r=baku,r=ckerschb 2015-08-12 20:19:11 -07:00
Android.mk
CLOBBER Bug 1193379 - Touch clobber for file relocation. r=joliu 2015-08-21 16:49:51 +08:00
GNUmakefile Bug 794723 - Add a default makefile which wraps mach. r=gps 2015-02-06 10:26:00 -08:00
LEGAL
LICENSE
Makefile.in bug 1168535 - print error response body in upload_symbols.py. r=gps 2015-05-27 13:50:04 -04:00
README.txt No bug, Update README.txt for ftp changes, r=bustage-check CLOSED TREE 2015-08-30 21:53:27 +12:00
aclocal.m4 Bug 1192277 - remove check for LLVM PR 8927; r=glandium 2015-08-07 19:35:43 -04:00
client.mk Fixup for bug 1188766 for valgrind bustage on a CLOSED TREE. r=me 2015-08-11 07:45:36 +09:00
client.py
configure.in Bug 1117259 - Disable the no-unused-local-typedef warning if clang supports it; r=gps 2015-09-04 21:28:19 -04:00
mach Bug 1058923 - Package mach in tests.zip; create bootstrap script for test package, r=gps 2015-05-01 12:20:55 -04:00
moz.build Bug 1134110 - other-license/android is unnecessary if Android minimum version is 11 or later. f=esawin, r=sworkman 2015-05-14 15:38:18 +09:00
mozilla-config.h.in Bug 1167474 - Remove ELFHACK_BUILD hack. r=mshal 2015-05-26 16:17:55 +09:00

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:

    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/