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 fec9a028f3 Bug 1370850 - Serialise undefined script evaluation return value to null; r=maja_zf
When a call through the content frame proxy is interrupted by the
dialogueObserver, the synchronous promise that is meant to wait for a
response from the frame script is resolved immediately with an undefined
return value.

When an undefined value is assigned to the response body, it gets dropped
during JSON serialisation.  To ensure the "value" field expected from
the Execute Script and Execute Async Script commands is populated,
we need to assign a null value to resp.body.value.

We can treat undefined as null by calling evaluate.toJSON again on the
return value from the proxied frame script call.  This effectively means
we serialise it twice, since it first needs to be serialised to cross
the IPC border, though the second computation only looks at primitives
and no known web element store is required.

It would be nicer if the content frame script itself would be able to
return early with null by installing a user prompt notification event,
but this is not possible because the tabmodal dialogue that appears
blocks script execution.  This means we need to rely on the
dialogueObserver in testing/marionette/proxy.js to take care of the
dialogue for us.

MozReview-Commit-ID: D14TA2TYYXI

--HG--
extra : rebase_source : 5fc17a1f0786e2fc9a2d054ef7c1f8b0e3336906
2017-06-07 12:46:14 +01:00
.cargo Bug 1277338 - Part 1: Turn js/src into the mozjs-sys crate; r=sfink 2016-10-13 16:12:42 -07:00
.vscode Add some task definitions to run mach from VSCode (bug 1323308). r=gps 2017-05-04 18:03:54 +03:00
accessible Bug 1367715: Check for IClientSecurity in a11y QueryInterface implementations; r=surkov 2017-05-31 16:07:30 -06:00
addon-sdk Backed out changeset 6f17a72e69cc (bug 1367424) 2017-06-06 13:02:29 +02:00
browser Backed out changeset 8a1615be322c (bug 1369095) for failing browser-chrome's browser_page_action_menu.js with "page-action-multiView" == "page-action-sendToDeviceView". r=backout 2017-06-08 19:14:40 +02:00
build Bug 1322803 - Allow setting additional rustflags via mozconfig. r=ted 2017-06-06 01:05:10 +01:00
caps Bug 1322235: Part 6 - Replace AddonPolicyService with a stub implementation in ExtensionPolicyService. r=mixedpuppy,zombie 2017-06-03 17:12:14 -07:00
chrome Merge inbound to m-c. a=merge 2017-05-25 16:34:16 -04:00
config Bug 1322803 - Allow setting additional rustflags via mozconfig. r=ted 2017-06-06 01:05:10 +01:00
db Bug 1367892 - Upgrade to SQLite 3.19.2. r=mak 2017-05-25 17:03:46 -04:00
devtools Bug 1371298 - trim values extracted from pref files in devtools addon prefs loader;r=bgrins 2017-06-08 18:16:04 +02:00
docshell Bug 1024557 - Ignore x-frame-options if CSP with frame-ancestors exists. r=smaug 2017-06-07 21:17:49 +02:00
dom Bug 1370438 - The MOZ_DISABLE_CONTENT_SANDBOX environment variable now works on macOS and is used in the xpcshell tests; r=haik 2017-06-07 15:30:09 -04:00
editor Bug 1371170 - Add non-virtual EditorBase::GetSelectionController. r=masayuki 2017-06-08 13:58:09 +09:00
embedding Bug 1356569 - Remove notifyObservers' last parameter when it is falsy, r=jaws. 2017-04-14 21:51:39 +02:00
extensions Bug 1366882 - Fix a resource leak - CID 1402588 r=erahm 2017-05-24 19:39:26 +02:00
gfx Bug 1368496 - Add support for fixed-positioning with APZ. r=jrmuizel 2017-06-08 11:34:01 -04: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 1366356 - Decrease the process priority of content processes that are not running a foreground tab - part 2 - enabled if the platform specific code is ready, r=smaug 2017-06-07 09:59:00 +02:00
image Bug 1368407 - Check for too-large PNG width. r=tn 2017-06-03 14:37:00 -04:00
intl Bug 1366882 - Fix a resource leak - CID 1213977 - r=froydnj 2017-05-22 23:00:10 +02:00
ipc Bug 1367885: Follow-up - remove code that mistakenly landed as part of commit 09894b9ce473; r=backout 2017-06-07 14:39:15 -06:00
js Bug 1370734 - Fix hazards ; r=bustage 2017-06-08 08:25:10 -07:00
layout Bug 1371112 tests. r=emilio 2017-06-08 14:17:52 -04:00
media merge mozilla-inbound to mozilla-central a=merge 2017-06-08 14:43:56 +02:00
memory Bug 1369626 - Remove MALLOC_XMALLOC. r=njn 2017-06-02 15:19:20 +09:00
mfbt Backed out changeset 51c81beac6aa (bug 1158445) for bustage on Android in mfbt/Poison.cpp. r=backout 2017-06-07 18:25:48 +02:00
mobile Merge inbound to central, a=merge CLOSED TREE 2017-06-06 17:15:21 -07:00
modules merge mozilla-inbound to mozilla-central a=merge 2017-06-08 14:43:56 +02:00
mozglue Bug 1370198 Back out the patch for bug 1369419 because the patch couldn't fix bug 1361132 and causes new crash bugs r=jimm 2017-06-05 21:52:16 +09:00
netwerk Backed out 2 changesets (bug 1360581) for failures in test_workerupdatefoundevent.html a=backout CLOSED TREE 2017-06-06 13:04:39 -07:00
nsprpub Bug 1350291, landing final NSPR 4.15 RTM tag, no code change, just version number, r=me 2017-06-06 12:19:16 +02:00
other-licenses Bug 1366763 - Update the installer file icon. r=rstrong 2017-05-30 13:24:38 -07:00
parser Backout changeset 3d64bdd31c15 (bug 1333333) for causing bug 1367067, bug 1367085 and bug 1367330. 2017-05-24 11:35:33 +03:00
probes Bug 1344878 - add BUG_COMPONENT to probes/* files. r=Ms2ger 2017-03-24 09:50:48 -04:00
python Bug 1346025 - Move vendored python modules from /python to /third_party/python, r=ted 2017-05-25 11:48:03 -04:00
rdf Bug 1330235 - Remove NS_STDCALL_FUNCPROTO and replace its usage with decltype. r=froydnj 2017-05-09 23:00:37 +10:00
security Merge inbound to m-c. a=merge 2017-06-07 22:52:40 -04:00
services Bug 1369855 - Update sinon.js to version 2.3.2. r=markh 2017-06-02 15:50:30 -04:00
servo servo: Merge #17233 - Remove file accidentally added in #17219 (from emilio:rej); r=bzbarsky 2017-06-08 09:18:44 -07:00
startupcache Bug 1334318 - remove last uses of PR_smprintf; r=froydnj 2017-04-28 10:13:26 -06:00
storage Bug 1359011 - Make the mozilla/recommended eslint configuration the default for the whole tree. r=mossop 2017-04-25 20:12:21 +01:00
taskcluster Bug 1370734 - Fix hazards ; r=bustage 2017-06-08 08:25:10 -07:00
testing Bug 1370850 - Serialise undefined script evaluation return value to null; r=maja_zf 2017-06-07 12:46:14 +01:00
third_party Bug 1370510 - Update WebDriver Crate dependency; r=jgraham 2017-06-07 21:54:49 +01:00
toolkit Bug 1367847 Support makensis on MinGW Linux for Windows builds r=glandium 2017-06-07 20:56:21 -05:00
tools Bug 1369612 - Remove ProfilerStackFrameDynamicRAII and profiler_call_{enter,exit}. r=mstange. 2017-06-02 15:38:20 +10:00
uriloader Bug 1354920 - Typo fixes around 'algorithm'. r=MattN 2017-06-06 17:50:25 -07:00
view Bug 1354933. Add some asserts for document viewer teardown. r=mats 2017-06-03 01:31:12 -05:00
widget Bug 1367692 - Make IMEHandler not restore default IMC unless legacy IMM-IME is active. r=m_kato 2017-06-07 11:42:27 +09:00
xpcom merge mozilla-inbound to mozilla-central a=merge 2017-06-08 14:43:56 +02:00
xpfe Bug 1363975 - Have loadOneTab() provide the correct triggeringPrincipal. r=gijs,smaug 2017-05-31 20:59:02 +02: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 1363992 - Remove jemalloc 4. r=njn 2017-05-11 13:23:07 +09: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 1368058 - Fix Android and Linux Nightlys - triggered-by was removed in Bug 1351011; r=Callek a=tomcat 2017-05-26 14:43:58 +00:00
.eslintignore Merge m-c to autoland. a=merge 2017-05-30 20:47:52 -04:00
.eslintrc.js Bug 1359011 - Make the mozilla/recommended eslint configuration the default for the whole tree. r=mossop 2017-04-25 20:12:21 +01:00
.flake8 Bug 1288432 - Use new mozlint configuration for flake8 linter, r=bc 2017-06-02 09:46:01 -04:00
.gdbinit Bug 1317802 - don't stop for SIGSYS in .gdbinit; r=jld 2016-11-16 01:13:22 -05:00
.gdbinit_python Bug 1346025 - Move vendored python modules from /python to /third_party/python, r=ted 2017-05-25 11:48:03 -04:00
.gitignore Bug 1346025 - Move vendored python modules from /python to /third_party/python, r=ted 2017-05-25 11:48:03 -04:00
.hgignore Bug 1364410 - Fix quantum-pageload test so it runs locally on windows via mach; r=jmaher 2017-06-05 14:51:06 -04:00
.hgtags No bug - Tagging mozilla-central 6583496f169cd8a13c531ed16e98e8bf313eda8e with FIREFOX_AURORA_54_BASE a=release DONTBUILD CLOSED TREE 2017-03-06 23:43:32 +01:00
.inferconfig Bug 1357629 - Add httpclientandroidlib to .inferconfig ignore list r=nalexander,njpark 2017-04-18 20:05:25 -07:00
.lldbinit Bug 1346025 - Move vendored python modules from /python to /third_party/python, r=ted 2017-05-25 11:48:03 -04:00
.taskcluster.yml Bug 591688 - Notify when decision task fails r=dustin,gps 2017-04-12 21:01:46 -07:00
.ycm_extra_conf.py
AUTHORS Bug 1111333 - Enable double-tap-drag to zoom. r=kats 2017-05-23 19:53:06 +02:00
Android.mk
CLOBBER Bug 1346025 - Move vendored python modules from /python to /third_party/python, r=ted 2017-05-25 11:48:03 -04:00
GNUmakefile
LEGAL
LICENSE
Makefile.in Bug 1307301 - Don't attempt to compress compressed files when packing the symbols archive. r=ted 2017-04-27 22:51:19 -07:00
README.txt Bug 1349108 - Update links in README.txt to HTTPS r=RyanVM 2017-03-21 00:11:02 -04:00
aclocal.m4 Bug 1363992 - Remove jemalloc 4. r=njn 2017-05-11 13:23:07 +09:00
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
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
gradle.properties
gradlew
mach Bug 1316140 - Allow use of multiprocessing from config.status on windows. r=mshal 2016-12-21 16:28:28 -08:00
moz.build Bug 1346025 - Move vendored python modules from /python to /third_party/python, r=ted 2017-05-25 11:48:03 -04:00
moz.configure Bug 1367847 Support makensis on MinGW Linux for Windows builds r=glandium 2017-06-07 20:56:21 -05:00
mozilla-config.h.in
npm-shrinkwrap.json Backed out changeset e0f9c56c15f0 (bug 1362947) for linting failures, e.g. at accessible/tests/mochitest/jsat/doc_content_text.html:15. r=backout 2017-05-11 10:15:55 +02:00
old-configure.in Bug 1367487: Change bundle name (CFBundleName) of content process on OSX/macOS to differentiate it from the Firefox bundle name. r=mstange,ted 2017-06-05 16:08:24 -04:00
package.json Backed out changeset e0f9c56c15f0 (bug 1362947) for linting failures, e.g. at accessible/tests/mochitest/jsat/doc_content_text.html:15. r=backout 2017-05-11 10:15:55 +02:00
settings.gradle Bug 1291363 - Add geckoview and geckoview_example Gradle projects. r=jchen,sebastian 2016-10-05 20:23:38 -07: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.]

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 -
    https://nightly.mozilla.org/