-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove URL constraint for record id #446
Conversation
</p> | ||
<p> | ||
The example allows reading and pushing to both peers and tags, | ||
whichever one is tapped first. | ||
</p> | ||
<pre class="example"> | ||
const reader = new NDEFReader(); | ||
await reader.scan({ id: "https://mygame.com/mypath/mygame" }); | ||
await reader.scan({ id: "my-game-progress" }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is not excluded someone could use a URL as id, though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've edited example description at 7c2d2c1
</p> | ||
<p> | ||
The example allows reading and pushing to both peers and tags, | ||
whichever one is tapped first. | ||
</p> | ||
<pre class="example"> | ||
const reader = new NDEFReader(); | ||
await reader.scan({ id: "https://mygame.com/mypath/mygame" }); | ||
await reader.scan({ id: "my-game-progress" }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
according to NDEF spec ids are supposed to be urls
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
semanticly it is an url (can be relative so you can say the examples are) but we should at least note that in a note or something
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right, I forgot about that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've edited example description at 7c2d2c1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where we introduce the id field, are we making clear that it is a url?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated example looks good
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where we introduce the id field, are we making clear that it is a url?
I've updated id
introduction at a78d5fb
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we include relative URLs, what they are relative to, and how does the implementation add the base URL when the record is written?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The implementation does not add any base URL but just writes the relative URL as is.
@@ -3327,111 +3249,6 @@ <h3><dfn>Writing or pushing content</dfn></h3> | |||
"`*/*json`", on the other hand, matches both. | |||
</div> | |||
</section> | |||
<section> <h3>URL patterns</h3> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm. A lot of work is gone... :)
Not sure it couldn't be useful at some point, but for now yes, it's to be removed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not so certain. For people using URLs being able to use * is quite handy
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about waiting for web developers feedback in origin trials?
We can easily add it if people need it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds good. But how will people know there would be a possibility to use URL patterns and what are they? A note perhaps?
@@ -3640,8 +3451,7 @@ <h3><dfn>Writing or pushing content</dfn></h3> | |||
<ol> | |||
<li> | |||
If |reader|.<a>[[\Id]]</a> is [= dictionary member/present =] | |||
and doesn't <a href="#dfn-match-record-identifier-with-url-pattern">match</a> | |||
any |record:NDEFRecord|'s id where |record| | |||
and it is not equal to any |record|'s id where |record| |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fair enough, an id should be compared for equality, not for partial match. Good.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
The plan is: 1. Introduces NDEFRecord{Init}#id and supports reading. Already done by crrev.com/c/1861574. 2. Supports writing. This CL is focused on impl in Blink, with the following CLs focused on impl in Device Service. crrev.com/c/1910906 crrev.com/c/1911385 crrev.com/c/1915940 crrev.com/c/1916261 3. Introduces NFCScanOptions#id and filters records by it when scanning. 4. Removes NDEFMessage{Init}#url and old impl of the author record. The spec changes: w3c/web-nfc#338 w3c/web-nfc#340 w3c/web-nfc#446 BUG=520391 Change-Id: Ie6f5b2978f78676c3aa607d09e7ffd5bbb5005d8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
</p> | ||
<p> | ||
The example allows reading and pushing to both peers and tags, | ||
whichever one is tapped first. | ||
</p> | ||
<pre class="example"> | ||
const reader = new NDEFReader(); | ||
await reader.scan({ id: "https://mygame.com/mypath/mygame" }); | ||
await reader.scan({ id: "my-game-progress" }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The implementation does not add any base URL but just writes the relative URL as is.
…hor record url The plan is: 1. Introduces NDEFRecord{Init}#id and supports reading. Already done by crrev.com/c/1861574. 2. Supports writing. crrev.com/c/1928891 is focused on impl in Blink, with the following CLs focused on impl in Device Service. crrev.com/c/1910906 crrev.com/c/1911385 crrev.com/c/1915940 crrev.com/c/1916261 3. Introduces NFCScanOptions#id and filters records by it when scanning. This CL make this step done. 4. Removes NDEFMessage{Init}#url and old impl of the author record. The spec changes: w3c/web-nfc#338 w3c/web-nfc#340 w3c/web-nfc#446 BUG=520391 Change-Id: I8d7165bc2833501ce96187ada9f8c3b5053b3bad
…hor record url The plan is: 1. Introduces NDEFRecord{Init}#id and supports reading. Already done by crrev.com/c/1861574. 2. Supports writing. crrev.com/c/1928891 is focused on impl in Blink, with the following CLs focused on impl in Device Service. crrev.com/c/1910906 crrev.com/c/1911385 crrev.com/c/1915940 crrev.com/c/1916261 3. Introduces NFCScanOptions#id and filters records by it when scanning. This CL make this step done. 4. Removes NDEFMessage{Init}#url and old impl of the author record. The spec changes: w3c/web-nfc#338 w3c/web-nfc#340 w3c/web-nfc#446 BUG=520391 Change-Id: I8d7165bc2833501ce96187ada9f8c3b5053b3bad
The plan is: 1. Introduces NDEFRecord{Init}#id and supports reading. Already done by crrev.com/c/1861574. 2. Supports writing. crrev.com/c/1928891 is focused on impl in Blink, with the following CLs focused on impl in Device Service. crrev.com/c/1910906 crrev.com/c/1911385 crrev.com/c/1915940 crrev.com/c/1916261 3. Introduces NFCScanOptions#id and filters records by it when scanning. Done by crrev.com/c/1936187. 4. Removes NDEFMessage{Init}#url and old impl of the author record. This CL. The spec changes: w3c/web-nfc#338 w3c/web-nfc#340 w3c/web-nfc#446 BUG=520391 Change-Id: Id1c29d980426a5559fd6e30aa0fc95b268d8e96c
The plan is: 1. Introduces NDEFRecord{Init}#id and supports reading. Already done by crrev.com/c/1861574. 2. Supports writing. This CL is focused on impl in Blink, with the following CLs focused on impl in Device Service. crrev.com/c/1910906 crrev.com/c/1911385 crrev.com/c/1915940 crrev.com/c/1916261 3. Introduces NFCScanOptions#id and filters records by it when scanning. 4. Removes NDEFMessage{Init}#url and old impl of the author record. The spec changes: w3c/web-nfc#338 w3c/web-nfc#340 w3c/web-nfc#446 BUG=520391 Change-Id: Ie6f5b2978f78676c3aa607d09e7ffd5bbb5005d8 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1928891 Reviewed-by: François Beaufort <beaufort.francois@gmail.com> Reviewed-by: Rijubrata Bhaumik <rijubrata.bhaumik@intel.com> Commit-Queue: Leon Han <leon.han@intel.com> Cr-Commit-Position: refs/heads/master@{#720792}
The plan is: 1. Introduces NDEFRecord{Init}#id and supports reading. Already done by crrev.com/c/1861574. 2. Supports writing. This CL is focused on impl in Blink, with the following CLs focused on impl in Device Service. crrev.com/c/1910906 crrev.com/c/1911385 crrev.com/c/1915940 crrev.com/c/1916261 3. Introduces NFCScanOptions#id and filters records by it when scanning. 4. Removes NDEFMessage{Init}#url and old impl of the author record. The spec changes: w3c/web-nfc#338 w3c/web-nfc#340 w3c/web-nfc#446 BUG=520391 Change-Id: Ie6f5b2978f78676c3aa607d09e7ffd5bbb5005d8 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1928891 Reviewed-by: François Beaufort <beaufort.francois@gmail.com> Reviewed-by: Rijubrata Bhaumik <rijubrata.bhaumik@intel.com> Commit-Queue: Leon Han <leon.han@intel.com> Cr-Commit-Position: refs/heads/master@{#720792}
The plan is: 1. Introduces NDEFRecord{Init}#id and supports reading. Already done by crrev.com/c/1861574. 2. Supports writing. This CL is focused on impl in Blink, with the following CLs focused on impl in Device Service. crrev.com/c/1910906 crrev.com/c/1911385 crrev.com/c/1915940 crrev.com/c/1916261 3. Introduces NFCScanOptions#id and filters records by it when scanning. 4. Removes NDEFMessage{Init}#url and old impl of the author record. The spec changes: w3c/web-nfc#338 w3c/web-nfc#340 w3c/web-nfc#446 BUG=520391 Change-Id: Ie6f5b2978f78676c3aa607d09e7ffd5bbb5005d8 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1928891 Reviewed-by: François Beaufort <beaufort.francois@gmail.com> Reviewed-by: Rijubrata Bhaumik <rijubrata.bhaumik@intel.com> Commit-Queue: Leon Han <leon.han@intel.com> Cr-Commit-Position: refs/heads/master@{#720792}
…hor record url The plan is: 1. Introduces NDEFRecord{Init}#id and supports reading. Already done by crrev.com/c/1861574. 2. Supports writing. crrev.com/c/1928891 is focused on impl in Blink, with the following CLs focused on impl in Device Service. crrev.com/c/1910906 crrev.com/c/1911385 crrev.com/c/1915940 crrev.com/c/1916261 3. Introduces NFCScanOptions#id and filters records by it when scanning. This CL make this step done. 4. Removes NDEFMessage{Init}#url and old impl of the author record. The spec changes: w3c/web-nfc#338 w3c/web-nfc#340 w3c/web-nfc#446 BUG=520391 Change-Id: I8d7165bc2833501ce96187ada9f8c3b5053b3bad
The plan is: 1. Introduces NDEFRecord{Init}#id and supports reading. Already done by crrev.com/c/1861574. 2. Supports writing. crrev.com/c/1928891 is focused on impl in Blink, with the following CLs focused on impl in Device Service. crrev.com/c/1910906 crrev.com/c/1911385 crrev.com/c/1915940 crrev.com/c/1916261 3. Introduces NFCScanOptions#id and filters records by it when scanning. Done by crrev.com/c/1936187. 4. Removes NDEFMessage{Init}#url and old impl of the author record. This CL. The spec changes: w3c/web-nfc#338 w3c/web-nfc#340 w3c/web-nfc#446 BUG=520391 Change-Id: Id1c29d980426a5559fd6e30aa0fc95b268d8e96c
…hor record url The plan is: 1. Introduces NDEFRecord{Init}#id and supports reading. Already done by crrev.com/c/1861574. 2. Supports writing. crrev.com/c/1928891 is focused on impl in Blink, with the following CLs focused on impl in Device Service. crrev.com/c/1910906 crrev.com/c/1911385 crrev.com/c/1915940 crrev.com/c/1916261 3. Introduces NFCScanOptions#id and filters records by it when scanning. This CL make this step done. 4. Removes NDEFMessage{Init}#url and old impl of the author record. The spec changes: w3c/web-nfc#338 w3c/web-nfc#340 w3c/web-nfc#446 BUG=520391 Change-Id: I8d7165bc2833501ce96187ada9f8c3b5053b3bad
The plan is: 1. Introduces NDEFRecord{Init}#id and supports reading. Already done by crrev.com/c/1861574. 2. Supports writing. crrev.com/c/1928891 is focused on impl in Blink, with the following CLs focused on impl in Device Service. crrev.com/c/1910906 crrev.com/c/1911385 crrev.com/c/1915940 crrev.com/c/1916261 3. Introduces NFCScanOptions#id and filters records by it when scanning. Done by crrev.com/c/1936187. 4. Removes NDEFMessage{Init}#url and old impl of the author record. This CL. The spec changes: w3c/web-nfc#338 w3c/web-nfc#340 w3c/web-nfc#446 BUG=520391 Change-Id: Id1c29d980426a5559fd6e30aa0fc95b268d8e96c
…hor record url The plan is: 1. Introduces NDEFRecord{Init}#id and supports reading. Already done by crrev.com/c/1861574. 2. Supports writing. crrev.com/c/1928891 is focused on impl in Blink, with the following CLs focused on impl in Device Service. crrev.com/c/1910906 crrev.com/c/1911385 crrev.com/c/1915940 crrev.com/c/1916261 3. Introduces NFCScanOptions#id and filters records by it when scanning. This CL. 4. Removes NDEFMessage{Init}#url and old impl of the author record. The spec changes: w3c/web-nfc#338 w3c/web-nfc#340 w3c/web-nfc#446 BUG=520391 Change-Id: I8d7165bc2833501ce96187ada9f8c3b5053b3bad
…hor record url The plan is: 1. Introduces NDEFRecord{Init}#id and supports reading. Already done by crrev.com/c/1861574. 2. Supports writing. crrev.com/c/1928891 is focused on impl in Blink, with the following CLs focused on impl in Device Service. crrev.com/c/1910906 crrev.com/c/1911385 crrev.com/c/1915940 crrev.com/c/1916261 3. Introduces NFCScanOptions#id and filters records by it when scanning. This CL. 4. Removes NDEFMessage{Init}#url and old impl of the author record. The spec changes: w3c/web-nfc#338 w3c/web-nfc#340 w3c/web-nfc#446 BUG=520391 Change-Id: I8d7165bc2833501ce96187ada9f8c3b5053b3bad
…hor record url The plan is: 1. Introduces NDEFRecord{Init}#id and supports reading. Already done by crrev.com/c/1861574. 2. Supports writing. crrev.com/c/1928891 is focused on impl in Blink, with the following CLs focused on impl in Device Service. crrev.com/c/1910906 crrev.com/c/1911385 crrev.com/c/1915940 crrev.com/c/1916261 3. Introduces NFCScanOptions#id and filters records by it when scanning. This CL. 4. Removes NDEFMessage{Init}#url and old impl of the author record. The spec changes: w3c/web-nfc#338 w3c/web-nfc#340 w3c/web-nfc#446 BUG=520391 Change-Id: I8d7165bc2833501ce96187ada9f8c3b5053b3bad
…hor record url The plan is: 1. Introduces NDEFRecord{Init}#id and supports reading. Already done by crrev.com/c/1861574. 2. Supports writing. crrev.com/c/1928891 is focused on impl in Blink, with the following CLs focused on impl in Device Service. crrev.com/c/1910906 crrev.com/c/1911385 crrev.com/c/1915940 crrev.com/c/1916261 3. Introduces NFCScanOptions#id and filters records by it when scanning. This CL. 4. Removes NDEFMessage{Init}#url and old impl of the author record. The spec changes: w3c/web-nfc#338 w3c/web-nfc#340 w3c/web-nfc#446 BUG=520391 Change-Id: I8d7165bc2833501ce96187ada9f8c3b5053b3bad
…hor record url The plan is: 1. Introduces NDEFRecord{Init}#id and supports reading. Already done by crrev.com/c/1861574. 2. Supports writing. crrev.com/c/1928891 is focused on impl in Blink, with the following CLs focused on impl in Device Service. crrev.com/c/1910906 crrev.com/c/1911385 crrev.com/c/1915940 crrev.com/c/1916261 3. Introduces NFCScanOptions#id and filters records by it when scanning. This CL. 4. Removes NDEFMessage{Init}#url and old impl of the author record. The spec changes: w3c/web-nfc#338 w3c/web-nfc#340 w3c/web-nfc#446 BUG=520391 Change-Id: I8d7165bc2833501ce96187ada9f8c3b5053b3bad Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1936187 Reviewed-by: Rijubrata Bhaumik <rijubrata.bhaumik@intel.com> Reviewed-by: Daniel Cheng <dcheng@chromium.org> Commit-Queue: Leon Han <leon.han@intel.com> Cr-Commit-Position: refs/heads/master@{#722901}
…hor record url The plan is: 1. Introduces NDEFRecord{Init}#id and supports reading. Already done by crrev.com/c/1861574. 2. Supports writing. crrev.com/c/1928891 is focused on impl in Blink, with the following CLs focused on impl in Device Service. crrev.com/c/1910906 crrev.com/c/1911385 crrev.com/c/1915940 crrev.com/c/1916261 3. Introduces NFCScanOptions#id and filters records by it when scanning. This CL. 4. Removes NDEFMessage{Init}#url and old impl of the author record. The spec changes: w3c/web-nfc#338 w3c/web-nfc#340 w3c/web-nfc#446 BUG=520391 Change-Id: I8d7165bc2833501ce96187ada9f8c3b5053b3bad Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1936187 Reviewed-by: Rijubrata Bhaumik <rijubrata.bhaumik@intel.com> Reviewed-by: Daniel Cheng <dcheng@chromium.org> Commit-Queue: Leon Han <leon.han@intel.com> Cr-Commit-Position: refs/heads/master@{#722901}
…support writing record id, a=testonly Automatic update from web-platform-tests [webnfc] Introduce NDEFRecordInit#id to support writing record id The plan is: 1. Introduces NDEFRecord{Init}#id and supports reading. Already done by crrev.com/c/1861574. 2. Supports writing. This CL is focused on impl in Blink, with the following CLs focused on impl in Device Service. crrev.com/c/1910906 crrev.com/c/1911385 crrev.com/c/1915940 crrev.com/c/1916261 3. Introduces NFCScanOptions#id and filters records by it when scanning. 4. Removes NDEFMessage{Init}#url and old impl of the author record. The spec changes: w3c/web-nfc#338 w3c/web-nfc#340 w3c/web-nfc#446 BUG=520391 Change-Id: Ie6f5b2978f78676c3aa607d09e7ffd5bbb5005d8 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1928891 Reviewed-by: François Beaufort <beaufort.francois@gmail.com> Reviewed-by: Rijubrata Bhaumik <rijubrata.bhaumik@intel.com> Commit-Queue: Leon Han <leon.han@intel.com> Cr-Commit-Position: refs/heads/master@{#720792} -- wpt-commits: d9ee4f3e4ef4792b085687584981611e0b74f003 wpt-pr: 20391
…support writing record id, a=testonly Automatic update from web-platform-tests [webnfc] Introduce NDEFRecordInit#id to support writing record id The plan is: 1. Introduces NDEFRecord{Init}#id and supports reading. Already done by crrev.com/c/1861574. 2. Supports writing. This CL is focused on impl in Blink, with the following CLs focused on impl in Device Service. crrev.com/c/1910906 crrev.com/c/1911385 crrev.com/c/1915940 crrev.com/c/1916261 3. Introduces NFCScanOptions#id and filters records by it when scanning. 4. Removes NDEFMessage{Init}#url and old impl of the author record. The spec changes: w3c/web-nfc#338 w3c/web-nfc#340 w3c/web-nfc#446 BUG=520391 Change-Id: Ie6f5b2978f78676c3aa607d09e7ffd5bbb5005d8 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1928891 Reviewed-by: François Beaufort <beaufort.francois@gmail.com> Reviewed-by: Rijubrata Bhaumik <rijubrata.bhaumik@intel.com> Commit-Queue: Leon Han <leon.han@intel.com> Cr-Commit-Position: refs/heads/master@{#720792} -- wpt-commits: d9ee4f3e4ef4792b085687584981611e0b74f003 wpt-pr: 20391
…support writing record id, a=testonly Automatic update from web-platform-tests [webnfc] Introduce NDEFRecordInit#id to support writing record id The plan is: 1. Introduces NDEFRecord{Init}#id and supports reading. Already done by crrev.com/c/1861574. 2. Supports writing. This CL is focused on impl in Blink, with the following CLs focused on impl in Device Service. crrev.com/c/1910906 crrev.com/c/1911385 crrev.com/c/1915940 crrev.com/c/1916261 3. Introduces NFCScanOptions#id and filters records by it when scanning. 4. Removes NDEFMessage{Init}#url and old impl of the author record. The spec changes: w3c/web-nfc#338 w3c/web-nfc#340 w3c/web-nfc#446 BUG=520391 Change-Id: Ie6f5b2978f78676c3aa607d09e7ffd5bbb5005d8 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1928891 Reviewed-by: François Beaufort <beaufort.francoisgmail.com> Reviewed-by: Rijubrata Bhaumik <rijubrata.bhaumikintel.com> Commit-Queue: Leon Han <leon.hanintel.com> Cr-Commit-Position: refs/heads/master{#720792} -- wpt-commits: d9ee4f3e4ef4792b085687584981611e0b74f003 wpt-pr: 20391 UltraBlame original commit: 014ed6bd538dec3df1db611a662cffbda8966741
…support writing record id, a=testonly Automatic update from web-platform-tests [webnfc] Introduce NDEFRecordInit#id to support writing record id The plan is: 1. Introduces NDEFRecord{Init}#id and supports reading. Already done by crrev.com/c/1861574. 2. Supports writing. This CL is focused on impl in Blink, with the following CLs focused on impl in Device Service. crrev.com/c/1910906 crrev.com/c/1911385 crrev.com/c/1915940 crrev.com/c/1916261 3. Introduces NFCScanOptions#id and filters records by it when scanning. 4. Removes NDEFMessage{Init}#url and old impl of the author record. The spec changes: w3c/web-nfc#338 w3c/web-nfc#340 w3c/web-nfc#446 BUG=520391 Change-Id: Ie6f5b2978f78676c3aa607d09e7ffd5bbb5005d8 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1928891 Reviewed-by: François Beaufort <beaufort.francoisgmail.com> Reviewed-by: Rijubrata Bhaumik <rijubrata.bhaumikintel.com> Commit-Queue: Leon Han <leon.hanintel.com> Cr-Commit-Position: refs/heads/master{#720792} -- wpt-commits: d9ee4f3e4ef4792b085687584981611e0b74f003 wpt-pr: 20391 UltraBlame original commit: 014ed6bd538dec3df1db611a662cffbda8966741
…support writing record id, a=testonly Automatic update from web-platform-tests [webnfc] Introduce NDEFRecordInit#id to support writing record id The plan is: 1. Introduces NDEFRecord{Init}#id and supports reading. Already done by crrev.com/c/1861574. 2. Supports writing. This CL is focused on impl in Blink, with the following CLs focused on impl in Device Service. crrev.com/c/1910906 crrev.com/c/1911385 crrev.com/c/1915940 crrev.com/c/1916261 3. Introduces NFCScanOptions#id and filters records by it when scanning. 4. Removes NDEFMessage{Init}#url and old impl of the author record. The spec changes: w3c/web-nfc#338 w3c/web-nfc#340 w3c/web-nfc#446 BUG=520391 Change-Id: Ie6f5b2978f78676c3aa607d09e7ffd5bbb5005d8 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1928891 Reviewed-by: François Beaufort <beaufort.francoisgmail.com> Reviewed-by: Rijubrata Bhaumik <rijubrata.bhaumikintel.com> Commit-Queue: Leon Han <leon.hanintel.com> Cr-Commit-Position: refs/heads/master{#720792} -- wpt-commits: d9ee4f3e4ef4792b085687584981611e0b74f003 wpt-pr: 20391 UltraBlame original commit: 014ed6bd538dec3df1db611a662cffbda8966741
The plan is: 1. Introduces NDEFRecord{Init}#id and supports reading. Already done by crrev.com/c/1861574. 2. Supports writing. crrev.com/c/1928891 is focused on impl in Blink, with the following CLs focused on impl in Device Service. crrev.com/c/1910906 crrev.com/c/1911385 crrev.com/c/1915940 crrev.com/c/1916261 3. Introduces NFCScanOptions#id and filters records by it when scanning. Done by crrev.com/c/1936187. 4. Removes NDEFMessage{Init}#url and old impl of the author record. This CL. The spec changes: w3c/web-nfc#338 w3c/web-nfc#340 w3c/web-nfc#446 BUG=520391 Change-Id: Id1c29d980426a5559fd6e30aa0fc95b268d8e96c
The plan is: 1. Introduces NDEFRecord{Init}#id and supports reading. Already done by crrev.com/c/1861574. 2. Supports writing. crrev.com/c/1928891 is focused on impl in Blink, with the following CLs focused on impl in Device Service. crrev.com/c/1910906 crrev.com/c/1911385 crrev.com/c/1915940 crrev.com/c/1916261 3. Introduces NFCScanOptions#id and filters records by it when scanning. Done by crrev.com/c/1936187. 4. Removes NDEFMessage{Init}#url and old impl of the author record. This CL. The spec changes: w3c/web-nfc#338 w3c/web-nfc#340 w3c/web-nfc#446 BUG=520391 Change-Id: Id1c29d980426a5559fd6e30aa0fc95b268d8e96c Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1938835 Commit-Queue: Leon Han <leon.han@intel.com> Reviewed-by: Rijubrata Bhaumik <rijubrata.bhaumik@intel.com> Reviewed-by: Daniel Cheng <dcheng@chromium.org> Reviewed-by: François Beaufort <beaufort.francois@gmail.com> Cr-Commit-Position: refs/heads/master@{#723252}
The plan is: 1. Introduces NDEFRecord{Init}#id and supports reading. Already done by crrev.com/c/1861574. 2. Supports writing. crrev.com/c/1928891 is focused on impl in Blink, with the following CLs focused on impl in Device Service. crrev.com/c/1910906 crrev.com/c/1911385 crrev.com/c/1915940 crrev.com/c/1916261 3. Introduces NFCScanOptions#id and filters records by it when scanning. Done by crrev.com/c/1936187. 4. Removes NDEFMessage{Init}#url and old impl of the author record. This CL. The spec changes: w3c/web-nfc#338 w3c/web-nfc#340 w3c/web-nfc#446 BUG=520391 Change-Id: Id1c29d980426a5559fd6e30aa0fc95b268d8e96c Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1938835 Commit-Queue: Leon Han <leon.han@intel.com> Reviewed-by: Rijubrata Bhaumik <rijubrata.bhaumik@intel.com> Reviewed-by: Daniel Cheng <dcheng@chromium.org> Reviewed-by: François Beaufort <beaufort.francois@gmail.com> Cr-Commit-Position: refs/heads/master@{#723252}
…ecord ids rather than the author record url, a=testonly Automatic update from web-platform-tests [webnfc] Make NFCScanOptions#id filter record ids rather than the author record url The plan is: 1. Introduces NDEFRecord{Init}#id and supports reading. Already done by crrev.com/c/1861574. 2. Supports writing. crrev.com/c/1928891 is focused on impl in Blink, with the following CLs focused on impl in Device Service. crrev.com/c/1910906 crrev.com/c/1911385 crrev.com/c/1915940 crrev.com/c/1916261 3. Introduces NFCScanOptions#id and filters records by it when scanning. This CL. 4. Removes NDEFMessage{Init}#url and old impl of the author record. The spec changes: w3c/web-nfc#338 w3c/web-nfc#340 w3c/web-nfc#446 BUG=520391 Change-Id: I8d7165bc2833501ce96187ada9f8c3b5053b3bad Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1936187 Reviewed-by: Rijubrata Bhaumik <rijubrata.bhaumik@intel.com> Reviewed-by: Daniel Cheng <dcheng@chromium.org> Commit-Queue: Leon Han <leon.han@intel.com> Cr-Commit-Position: refs/heads/master@{#722901} -- wpt-commits: e9e13796b23cc62b0e7f7163077665a32fba6c1f wpt-pr: 20449
…d old impl of the author record., a=testonly Automatic update from web-platform-tests [webnfc] Remove NDEFMessage{Init}#url and old impl of the author record. The plan is: 1. Introduces NDEFRecord{Init}#id and supports reading. Already done by crrev.com/c/1861574. 2. Supports writing. crrev.com/c/1928891 is focused on impl in Blink, with the following CLs focused on impl in Device Service. crrev.com/c/1910906 crrev.com/c/1911385 crrev.com/c/1915940 crrev.com/c/1916261 3. Introduces NFCScanOptions#id and filters records by it when scanning. Done by crrev.com/c/1936187. 4. Removes NDEFMessage{Init}#url and old impl of the author record. This CL. The spec changes: w3c/web-nfc#338 w3c/web-nfc#340 w3c/web-nfc#446 BUG=520391 Change-Id: Id1c29d980426a5559fd6e30aa0fc95b268d8e96c Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1938835 Commit-Queue: Leon Han <leon.han@intel.com> Reviewed-by: Rijubrata Bhaumik <rijubrata.bhaumik@intel.com> Reviewed-by: Daniel Cheng <dcheng@chromium.org> Reviewed-by: François Beaufort <beaufort.francois@gmail.com> Cr-Commit-Position: refs/heads/master@{#723252} -- wpt-commits: fa41b43ac93bc2fdc2427a4378dc3754d483cdda wpt-pr: 20472
…ecord ids rather than the author record url, a=testonly Automatic update from web-platform-tests [webnfc] Make NFCScanOptions#id filter record ids rather than the author record url The plan is: 1. Introduces NDEFRecord{Init}#id and supports reading. Already done by crrev.com/c/1861574. 2. Supports writing. crrev.com/c/1928891 is focused on impl in Blink, with the following CLs focused on impl in Device Service. crrev.com/c/1910906 crrev.com/c/1911385 crrev.com/c/1915940 crrev.com/c/1916261 3. Introduces NFCScanOptions#id and filters records by it when scanning. This CL. 4. Removes NDEFMessage{Init}#url and old impl of the author record. The spec changes: w3c/web-nfc#338 w3c/web-nfc#340 w3c/web-nfc#446 BUG=520391 Change-Id: I8d7165bc2833501ce96187ada9f8c3b5053b3bad Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1936187 Reviewed-by: Rijubrata Bhaumik <rijubrata.bhaumikintel.com> Reviewed-by: Daniel Cheng <dchengchromium.org> Commit-Queue: Leon Han <leon.hanintel.com> Cr-Commit-Position: refs/heads/master{#722901} -- wpt-commits: e9e13796b23cc62b0e7f7163077665a32fba6c1f wpt-pr: 20449 UltraBlame original commit: b55ce5cbebc73634b77bc956264bf4bed3c6c053
…d old impl of the author record., a=testonly Automatic update from web-platform-tests [webnfc] Remove NDEFMessage{Init}#url and old impl of the author record. The plan is: 1. Introduces NDEFRecord{Init}#id and supports reading. Already done by crrev.com/c/1861574. 2. Supports writing. crrev.com/c/1928891 is focused on impl in Blink, with the following CLs focused on impl in Device Service. crrev.com/c/1910906 crrev.com/c/1911385 crrev.com/c/1915940 crrev.com/c/1916261 3. Introduces NFCScanOptions#id and filters records by it when scanning. Done by crrev.com/c/1936187. 4. Removes NDEFMessage{Init}#url and old impl of the author record. This CL. The spec changes: w3c/web-nfc#338 w3c/web-nfc#340 w3c/web-nfc#446 BUG=520391 Change-Id: Id1c29d980426a5559fd6e30aa0fc95b268d8e96c Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1938835 Commit-Queue: Leon Han <leon.hanintel.com> Reviewed-by: Rijubrata Bhaumik <rijubrata.bhaumikintel.com> Reviewed-by: Daniel Cheng <dchengchromium.org> Reviewed-by: François Beaufort <beaufort.francoisgmail.com> Cr-Commit-Position: refs/heads/master{#723252} -- wpt-commits: fa41b43ac93bc2fdc2427a4378dc3754d483cdda wpt-pr: 20472 UltraBlame original commit: aaf1990089423f230eff5bfb4fb2bad3b9f60ba8
…ecord ids rather than the author record url, a=testonly Automatic update from web-platform-tests [webnfc] Make NFCScanOptions#id filter record ids rather than the author record url The plan is: 1. Introduces NDEFRecord{Init}#id and supports reading. Already done by crrev.com/c/1861574. 2. Supports writing. crrev.com/c/1928891 is focused on impl in Blink, with the following CLs focused on impl in Device Service. crrev.com/c/1910906 crrev.com/c/1911385 crrev.com/c/1915940 crrev.com/c/1916261 3. Introduces NFCScanOptions#id and filters records by it when scanning. This CL. 4. Removes NDEFMessage{Init}#url and old impl of the author record. The spec changes: w3c/web-nfc#338 w3c/web-nfc#340 w3c/web-nfc#446 BUG=520391 Change-Id: I8d7165bc2833501ce96187ada9f8c3b5053b3bad Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1936187 Reviewed-by: Rijubrata Bhaumik <rijubrata.bhaumikintel.com> Reviewed-by: Daniel Cheng <dchengchromium.org> Commit-Queue: Leon Han <leon.hanintel.com> Cr-Commit-Position: refs/heads/master{#722901} -- wpt-commits: e9e13796b23cc62b0e7f7163077665a32fba6c1f wpt-pr: 20449 UltraBlame original commit: b55ce5cbebc73634b77bc956264bf4bed3c6c053
…d old impl of the author record., a=testonly Automatic update from web-platform-tests [webnfc] Remove NDEFMessage{Init}#url and old impl of the author record. The plan is: 1. Introduces NDEFRecord{Init}#id and supports reading. Already done by crrev.com/c/1861574. 2. Supports writing. crrev.com/c/1928891 is focused on impl in Blink, with the following CLs focused on impl in Device Service. crrev.com/c/1910906 crrev.com/c/1911385 crrev.com/c/1915940 crrev.com/c/1916261 3. Introduces NFCScanOptions#id and filters records by it when scanning. Done by crrev.com/c/1936187. 4. Removes NDEFMessage{Init}#url and old impl of the author record. This CL. The spec changes: w3c/web-nfc#338 w3c/web-nfc#340 w3c/web-nfc#446 BUG=520391 Change-Id: Id1c29d980426a5559fd6e30aa0fc95b268d8e96c Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1938835 Commit-Queue: Leon Han <leon.hanintel.com> Reviewed-by: Rijubrata Bhaumik <rijubrata.bhaumikintel.com> Reviewed-by: Daniel Cheng <dchengchromium.org> Reviewed-by: François Beaufort <beaufort.francoisgmail.com> Cr-Commit-Position: refs/heads/master{#723252} -- wpt-commits: fa41b43ac93bc2fdc2427a4378dc3754d483cdda wpt-pr: 20472 UltraBlame original commit: aaf1990089423f230eff5bfb4fb2bad3b9f60ba8
…ecord ids rather than the author record url, a=testonly Automatic update from web-platform-tests [webnfc] Make NFCScanOptions#id filter record ids rather than the author record url The plan is: 1. Introduces NDEFRecord{Init}#id and supports reading. Already done by crrev.com/c/1861574. 2. Supports writing. crrev.com/c/1928891 is focused on impl in Blink, with the following CLs focused on impl in Device Service. crrev.com/c/1910906 crrev.com/c/1911385 crrev.com/c/1915940 crrev.com/c/1916261 3. Introduces NFCScanOptions#id and filters records by it when scanning. This CL. 4. Removes NDEFMessage{Init}#url and old impl of the author record. The spec changes: w3c/web-nfc#338 w3c/web-nfc#340 w3c/web-nfc#446 BUG=520391 Change-Id: I8d7165bc2833501ce96187ada9f8c3b5053b3bad Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1936187 Reviewed-by: Rijubrata Bhaumik <rijubrata.bhaumikintel.com> Reviewed-by: Daniel Cheng <dchengchromium.org> Commit-Queue: Leon Han <leon.hanintel.com> Cr-Commit-Position: refs/heads/master{#722901} -- wpt-commits: e9e13796b23cc62b0e7f7163077665a32fba6c1f wpt-pr: 20449 UltraBlame original commit: b55ce5cbebc73634b77bc956264bf4bed3c6c053
…d old impl of the author record., a=testonly Automatic update from web-platform-tests [webnfc] Remove NDEFMessage{Init}#url and old impl of the author record. The plan is: 1. Introduces NDEFRecord{Init}#id and supports reading. Already done by crrev.com/c/1861574. 2. Supports writing. crrev.com/c/1928891 is focused on impl in Blink, with the following CLs focused on impl in Device Service. crrev.com/c/1910906 crrev.com/c/1911385 crrev.com/c/1915940 crrev.com/c/1916261 3. Introduces NFCScanOptions#id and filters records by it when scanning. Done by crrev.com/c/1936187. 4. Removes NDEFMessage{Init}#url and old impl of the author record. This CL. The spec changes: w3c/web-nfc#338 w3c/web-nfc#340 w3c/web-nfc#446 BUG=520391 Change-Id: Id1c29d980426a5559fd6e30aa0fc95b268d8e96c Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1938835 Commit-Queue: Leon Han <leon.hanintel.com> Reviewed-by: Rijubrata Bhaumik <rijubrata.bhaumikintel.com> Reviewed-by: Daniel Cheng <dchengchromium.org> Reviewed-by: François Beaufort <beaufort.francoisgmail.com> Cr-Commit-Position: refs/heads/master{#723252} -- wpt-commits: fa41b43ac93bc2fdc2427a4378dc3754d483cdda wpt-pr: 20472 UltraBlame original commit: aaf1990089423f230eff5bfb4fb2bad3b9f60ba8
…ecord ids rather than the author record url, a=testonly Automatic update from web-platform-tests [webnfc] Make NFCScanOptions#id filter record ids rather than the author record url The plan is: 1. Introduces NDEFRecord{Init}#id and supports reading. Already done by crrev.com/c/1861574. 2. Supports writing. crrev.com/c/1928891 is focused on impl in Blink, with the following CLs focused on impl in Device Service. crrev.com/c/1910906 crrev.com/c/1911385 crrev.com/c/1915940 crrev.com/c/1916261 3. Introduces NFCScanOptions#id and filters records by it when scanning. This CL. 4. Removes NDEFMessage{Init}#url and old impl of the author record. The spec changes: w3c/web-nfc#338 w3c/web-nfc#340 w3c/web-nfc#446 BUG=520391 Change-Id: I8d7165bc2833501ce96187ada9f8c3b5053b3bad Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1936187 Reviewed-by: Rijubrata Bhaumik <rijubrata.bhaumik@intel.com> Reviewed-by: Daniel Cheng <dcheng@chromium.org> Commit-Queue: Leon Han <leon.han@intel.com> Cr-Commit-Position: refs/heads/master@{#722901} -- wpt-commits: e9e13796b23cc62b0e7f7163077665a32fba6c1f wpt-pr: 20449
…d old impl of the author record., a=testonly Automatic update from web-platform-tests [webnfc] Remove NDEFMessage{Init}#url and old impl of the author record. The plan is: 1. Introduces NDEFRecord{Init}#id and supports reading. Already done by crrev.com/c/1861574. 2. Supports writing. crrev.com/c/1928891 is focused on impl in Blink, with the following CLs focused on impl in Device Service. crrev.com/c/1910906 crrev.com/c/1911385 crrev.com/c/1915940 crrev.com/c/1916261 3. Introduces NFCScanOptions#id and filters records by it when scanning. Done by crrev.com/c/1936187. 4. Removes NDEFMessage{Init}#url and old impl of the author record. This CL. The spec changes: w3c/web-nfc#338 w3c/web-nfc#340 w3c/web-nfc#446 BUG=520391 Change-Id: Id1c29d980426a5559fd6e30aa0fc95b268d8e96c Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1938835 Commit-Queue: Leon Han <leon.han@intel.com> Reviewed-by: Rijubrata Bhaumik <rijubrata.bhaumik@intel.com> Reviewed-by: Daniel Cheng <dcheng@chromium.org> Reviewed-by: François Beaufort <beaufort.francois@gmail.com> Cr-Commit-Position: refs/heads/master@{#723252} -- wpt-commits: fa41b43ac93bc2fdc2427a4378dc3754d483cdda wpt-pr: 20472
As discussed in #444 (comment), this PR removes binding record ids with the hostname of the current web page.
FIX #445
Preview | Diff