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
Перейти к файлу
Leon Han 34de58af9f Bug 1576104 [wpt PR 18633] - [webnfc] Refactor/Refine impl for "Creating Web NFC message" algorithm, a=testonly
Automatic update from web-platform-tests
[webnfc] Refactor/Refine impl for "Creating Web NFC message" algorithm

This CL implements strictly the "Creating Web NFC message" algorithm
described at http://w3c.github.io/web-nfc/#creating-web-nfc-message.

1.
Changes the Web IDL definition for NDEFRecordData from
"typedef (DOMString or unrestricted double or ArrayBuffer or Dictionary) NDEFRecordData;"
to
"typedef any NDEFRecordData;"

2.
Adds verification of NDEFRecordInit when creating NDEFRecord, i.e. makes
NDEFRecord ctor throw exceptions in case of invalid NDEFRecordInit.
Also, the same thing for NDEFMessage and NFCReadingEvent.

3.
Changes code flow for Step 10.9 of "9.10.1 The push() method" described
at https://w3c.github.io/web-nfc/#the-push-method.
"
Let output be the notation for the NDEF message to be created by UA, as
the result of passing message to create Web NFC message. If this throws
an exception, reject p with that exception and abort these steps.
"
Previously,
  NDEFMessageSource (NDEFMessageInit) -Validity check->
  -Mojo TypeConverter-> Mojom NDEFMessagePtr
Now,
  Remove "Validity check" and "Mojo TypeConverter" mentioned above,
  instead, we reuse the process of creating NDEFMessage from
  NDEFMessageSource (NDEFMessageInit), then the next step converting
  NDEFMessage to Mojom NDEFMessagePtr is quite an easy job.

BUG=520391

Change-Id: I628981e556f89ffdd0f883da0cfa99b20a6f8300
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1767719
Commit-Queue: Leon Han <leon.han@intel.com>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Reviewed-by: Reilly Grant <reillyg@chromium.org>
Reviewed-by: Rijubrata Bhaumik <rijubrata.bhaumik@intel.com>
Cr-Commit-Position: refs/heads/master@{#693539}

--

wpt-commits: 685003d701e3c4154227758c65259c56662aa23d
wpt-pr: 18633
2019-09-09 11:55:03 +01:00
.cargo Bug 1577717: Bump Cranelift to fc88520b88bcaad4e4a92f28a5e17347af20edbd; r=jseward 2019-08-30 15:12:56 +00:00
.vscode Bug 1563848 - Recommend a VSCode plugin for prettier. r=vporof 2019-07-06 07:33:28 +00:00
accessible Bug 1576697 - Use LauncherResult in WinHeaderOnlyUtils.h instead of WindowsErrorResult. r=aklotz 2019-09-07 18:17:45 +00:00
browser Bug 1579515 - Fix Megabar hidden-focus behaviour. r=dao 2019-09-08 04:15:01 +00:00
build Bug 1578825 - add a strict version check for the NDK version; r=nalexander 2019-09-04 19:20:39 +00:00
caps Backed out 9 changesets (bug 1578623) for causing Windows build bustages CLOSED TREE 2019-09-09 03:37:09 +03:00
chrome Bug 1575420 - Replace MOZ_WIDGET_TOOLKIT value of "gtk3" with "gtk". r=froydnj 2019-08-21 12:25:42 +00:00
config Bug 1578254 - Trick Make into running rust targets earlier again. r=nalexander 2019-09-06 22:58:03 +00:00
devtools Bug 1577781 - Add a Browser Console test to expand a longstring coming from content process. r=Honza. 2019-09-06 14:44:54 +00:00
docshell Bug 1577499 - Part 1: Implement transient activation flag; r=smaug 2019-09-07 19:12:20 +00:00
dom Backed out 9 changesets (bug 1578623) for causing Windows build bustages CLOSED TREE 2019-09-09 03:37:09 +03:00
editor Bug 1574852 - part 75: Move `HTMLEditRules::OutdentPartOfBlock()` to `HTMLEditor` r=m_kato 2019-09-08 03:23:16 +00:00
extensions Bug 1571339 - Don't use nsTextFragment::AppendTo to get string in TextNodeContainsDOMWordSeparator. r=masayuki 2019-09-09 03:42:45 +00:00
gfx Bug 1578330 - Call GetBufferSize after BeginFrame because RenderCompositorANGLE mutates it in BeginFrame. r=mattwoodrow 2019-09-09 03:59:15 +00:00
gradle/wrapper Bug 1522795 - Update android gradle plugin to 3.4.2. r=nalexander 2019-07-24 18:48:54 +00:00
hal Bug 1289211 - Rename InfallibleTArray to nsTArray in hal/ r=gsvelto 2019-07-10 03:30:52 +00:00
image Bug 1578164. Use async notifications when requesting decode of an image in most places. r=aosmond 2019-09-03 15:36:23 +00:00
intl Bug 1575420 - Replace MOZ_WIDGET_TOOLKIT value of "gtk3" with "gtk". r=froydnj 2019-08-21 12:25:42 +00:00
ipc Bug 1578398 - Check 'CanSend()' when calling Send__delete__(), r=mccr8 2019-09-05 18:08:58 +00:00
js Backed out 5 changesets (bug 1577007, bug 1576776, bug 1576781, bug 1564167) for crashtest failures 2019-09-09 10:42:57 +03:00
layout Bug 1578147 - Align the Rust and C++ representations of WritingMode. r=emilio,jfkthame 2019-09-09 04:49:55 +00:00
media Bug 1572846 - Update Clearkey to use NSS for decryption instead of OpenAES r=bryce,jld 2019-09-05 19:19:06 +00:00
memory Bug 1547519 - Fix jemalloc redirections for MinGW build r=glandium 2019-09-04 02:40:08 +00:00
mfbt Bug 1547519 - Rename NS_STRINGIFY to MOZ_STRINGIFY, move to mfbt, and unify stragglers r=glandium 2019-09-04 02:40:32 +00:00
mobile Bug 1565119 - Disabled mobile/android/components/extensions/test/mochitest/test_ext_tabs_insertCSS.html on android 4.3 r=gbrown 2019-09-05 14:13:04 +00:00
modules Bug 1579624 - Turn on "layout.css.line-height.normal-as-resolved-value.enabled" in all channels. r=dholbert 2019-09-08 06:56:12 +00:00
mozglue Bug 1576697 - Use LauncherResult in WinHeaderOnlyUtils.h instead of WindowsErrorResult. r=aklotz 2019-09-07 18:17:45 +00:00
netwerk Bug 1572933: Introduce an attribute to raise the cache priority. r=pbro,mayhemer 2019-09-09 00:57:05 +00:00
nsprpub Bug 1562330 - Upgrade Firefox 70 to use NSPR 4.22. 2019-08-19 14:23:11 +00:00
other-licenses Bug 1458385: Package mar and mbsdiff as a toolchain; r=glandium 2019-07-11 16:40:13 +00:00
parser Bug 1575620 - Fix refreshing session restore when using prototype cache. r=smaug 2019-09-06 20:27:09 +00:00
python Bug 1578596 - Require rustc 1.37. r=firefox-build-system-reviewers,mshal 2019-09-04 19:08:28 +00:00
remote bug 1540655: remote: document how to vendor Puppeteer; r=remote-protocol-reviewers,jdescottes 2019-08-16 12:58:34 +00:00
security Bug 1572846 - Update Clearkey to use NSS for decryption instead of OpenAES r=bryce,jld 2019-09-05 19:19:06 +00:00
services Update configs. IGNORE BROKEN CHANGESETS CLOSED TREE NO BUG a=release ba=release 2019-09-02 09:00:31 +00:00
servo Bug 1578147 - Align the Rust and C++ representations of WritingMode. r=emilio,jfkthame 2019-09-09 04:49:55 +00:00
startupcache Bug 1558915 - Use infallible nsIURI::SchemeIs in various places r=Ehsan 2019-08-07 19:49:40 +00:00
storage Bug 1575692 - do not recreate the DB file via the directory service inside DatabaseLocker class off the mainthread, r=mak 2019-08-27 14:31:48 +00:00
taskcluster Bug 1579476 - Switch to new GCP beetmover workers r=mtabara 2019-09-07 00:00:25 +00:00
testing Bug 1576104 [wpt PR 18633] - [webnfc] Refactor/Refine impl for "Creating Web NFC message" algorithm, a=testonly 2019-09-09 11:55:03 +01:00
third_party Bug 1579425 - Part 2: Revendor dependencies. r=froydnj 2019-09-06 17:49:58 +00:00
toolkit Bug 1562060 - Add telemetry to record how often we fail to map UA sheet shared memory at the desired address. r=jwatt,janerik 2019-09-09 06:18:40 +00:00
tools Bug 1565332 - add option to toggle linux desktop tests to run on debian 10 r=ahal 2019-09-07 01:07:23 +00:00
uriloader Backed out changeset 8c25acd6a557 (bug 1237782) for wpt failures at controller-on-disconnect.https.html 2019-09-07 14:32:37 +03:00
view Bug 1308587 Part 2 - Remove -moz prefix for all multi-column properties in testing and css files. r=dholbert 2019-09-05 21:37:32 +00:00
widget Bug 1578147 - Align the Rust and C++ representations of WritingMode. r=emilio,jfkthame 2019-09-09 04:49:55 +00:00
xpcom Backed out changeset a396ec8f44fd (bug 1577439) for failing valgrind-test on a CLOSED TREE. 2019-09-07 19:03:27 +03:00
xpfe/appshell Backed out 6 changesets (bug 1576407) for causing wpt and mochitest failures. CLOSED TREE 2019-08-29 03:00:47 +03:00
.arcconfig
.clang-format
.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 1576729 - disable ship-geckoview on release to stop failure email spam r=aryx p=aki 2019-08-27 09:29:03 +00:00
.eslintignore Backed out 9 changesets (bug 1578623) for causing Windows build bustages CLOSED TREE 2019-09-09 03:37:09 +03:00
.eslintrc.js Bug 1578679 - Remove unnecessary section from .eslintrc.js now that the xml files it references have been removed. r=bgrins 2019-09-04 16:33:11 +00:00
.flake8 Bug 1573566 - Move the real libxul definition in a subdirectory. r=froydnj 2019-08-16 21:44:10 +00:00
.gdbinit
.gdbinit_python Bug 1564314 - Move gdbpp back to python/. r=nalexander 2019-07-11 02:39:31 +00:00
.git-blame-ignore-revs Bug 1572125 - Update .hg-annotate-ignore-revs and .git-blame-ignore-revs to ignore devtools/client/responsive reformatting using Prettier (Bug 1569574) in blame/annotate. r=vporof 2019-08-12 17:27:22 +00:00
.gitattributes Bug 770286: Prevent git LF-to-CRLF autoconversion r=glandium 2019-07-06 02:36:03 +00:00
.gitignore Bug 1559479 - mach lint complains about newtab node_modules r=dmose 2019-07-12 15:24:07 +00:00
.hg-annotate-ignore-revs Bug 1572125 - Update .hg-annotate-ignore-revs and .git-blame-ignore-revs to ignore devtools/client/responsive reformatting using Prettier (Bug 1569574) in blame/annotate. r=vporof 2019-08-12 17:27:22 +00:00
.hg-format-source
.hgignore Bug 1575089 - Add a new Talos test that measures warm startup time with a number of real-world WebExtensions installed. r=rwood 2019-08-31 06:58:00 +00:00
.hgtags No bug - Tagging mozilla-central b338d55d5007ce5a7d4cdce3aaa8e9f63c5555f7 with FIREFOX_NIGHTLY_70_END a=release DONTBUILD CLOSED TREE 2019-09-02 08:59:36 +00:00
.lldbinit
.mailmap
.prettierignore Bug 1572332 - Move non-debugger devtools prefs into all.js and firefox.js. r=jdescottes 2019-08-26 01:44:59 +00:00
.prettierrc Bug 1578564 - Workaround a prettier warning so that we can run it on html/xhtml files. r=vporof 2019-09-04 06:59:03 +00:00
.taskcluster.yml Bug 1459355: Don't pass parameters as part of actions; r=dustin 2019-08-09 17:02:15 +00:00
.trackerignore
.yamllint
.ycm_extra_conf.py
AUTHORS
CLOBBER Update configs. IGNORE BROKEN CHANGESETS CLOSED TREE NO BUG a=release ba=release 2019-09-02 09:00:31 +00:00
Cargo.lock Bug 1579425 - Part 1: Update goblin and object. r=froydnj 2019-09-06 17:49:51 +00:00
Cargo.toml Bug 1577717: Bump Cranelift to fc88520b88bcaad4e4a92f28a5e17347af20edbd; r=jseward 2019-08-30 15:12:56 +00:00
GNUmakefile
LEGAL
LICENSE
Makefile.in Bug 1550146 - Part 2: Make mach "build" run "stage-package && android assemble-app" for mobile/android. r=glandium 2019-08-21 03:07:16 +00:00
README.txt
aclocal.m4
build.gradle Bug 1572859 - Package more aggressively when building GeckoView (and Fennec) within Gradle. r=agi 2019-08-14 20:38:42 +00:00
client.mk
client.py
configure.in
configure.py Bug 844509 - Always encode config.status as utf-8. r=nalexander 2019-08-21 21:26:32 +00:00
gradle.properties Bug 1577814 - Increase Gradle heap size. r=nalexander 2019-08-30 17:13:46 +00:00
gradlew
gradlew.bat
mach Bug 1577501 - [mach] Make sure ./mach help <command> uses the correct Python, r=glandium 2019-09-03 00:39:22 +00:00
moz.build Bug 1575760 - Generate .cargo/config as part of the build rather than as a configure subst file. r=firefox-build-system-reviewers,chmanchester 2019-08-22 21:27:24 +00:00
moz.configure
mozilla-config.h.in
old-configure.in Bug 1579545 - remove unused `NO_PW_GECOS` defines; r=nalexander 2019-09-06 21:35:23 +00:00
package-lock.json Bug 1540982 - Upgrade to ESLint 6.2.2 and switch to ECMA version 11 (BigInt support, Dynamic imports). r=mossop 2019-08-27 14:51:29 +00:00
package.json Bug 1540982 - Upgrade to ESLint 6.2.2 and switch to ECMA version 11 (BigInt support, Dynamic imports). r=mossop 2019-08-27 14:51:29 +00:00
settings.gradle
substitute-local-geckoview.gradle Bug 1533465 - Add Gradle script for substituting local GeckoView into downstream consumers. r=sebastian 2019-08-15 21:18:24 +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.