Sigmund Cherem
c91b73eaf7
[3.0 alpha] Remove dart:html's deprecated document.registerElement & registerElement2 APIs
...
Change-Id: I07fc124c55d1aeb678f39a4d72d3b4f581025a10
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/273541
Reviewed-by: Srujan Gaddam <srujzs@google.com>
Commit-Queue: Sigmund Cherem <sigmund@google.com>
2022-12-09 16:02:02 +00:00
Srujan Gaddam
409b426cfc
[dart:html] Add SharedArrayBuffer constructor and slice
...
Fixes https://github.com/dart-lang/sdk/issues/35344
Change-Id: I5742adddf1fe01bfe40860a734a4c930091d8472
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/253563
Commit-Queue: Srujan Gaddam <srujzs@google.com>
Reviewed-by: Kevin Moore <kevmoo@google.com>
2022-08-03 01:04:25 +00:00
Sigmund Cherem
b62e612dc8
[dart:html] Deprecate custom element registration APIs.
...
The `registerElement` APIs in `dart:html` are legacy APIs based on a
deprecated Web Components v0.5 specification. These methods don't work
on modern browsers and can only be used with a polyfill.
The latest Web Components specification is supported indirectly via
JSInterop and doesn't have an explicit API in the `dart:html` library.
This change marks these APIs as deprecated. We intend to remove them in
the future (see https://github.com/dart-lang/sdk/issues/49536 )
Fixes https://github.com/dart-lang/sdk/issues/48973
Change-Id: I2e96d36e95c9971b59cde80bc4da49b63d12b17c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/252840
Commit-Queue: Sigmund Cherem <sigmund@google.com>
Reviewed-by: Srujan Gaddam <srujzs@google.com>
2022-07-28 16:07:30 +00:00
Srujan Gaddam
fe93b161e0
[dart:html] Add MathMLElement
...
Fixes b/236721367
Per https://developer.mozilla.org/en-US/docs/Web/API/MathMLElement ,
MathMLElement is in the Element type hierarchy. This adds an empty
class so that type-checking against Element can pass.
Change-Id: Ie0c2e33c2236bedd5627ed8624437d24d9fbac2d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/249945
Commit-Queue: Srujan Gaddam <srujzs@google.com>
Reviewed-by: Sigmund Cherem <sigmund@google.com>
2022-06-27 23:10:12 +00:00
Chris Terefinko
ecbf11b8d8
[dart2js] Add missing connectionState and onConnectionStateChange to RTCPeerConnection.
...
Closes https://github.com/dart-lang/sdk/issues/48735
Change-Id: I04f263afa4dee1b868ad254cb54ad7c398435e03
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/240240
Reviewed-by: Riley Porter <rileyporter@google.com>
Commit-Queue: Srujan Gaddam <srujzs@google.com>
2022-04-06 22:34:07 +00:00
Riley Porter
7783d5c509
[dart:html] Remove deprecated annotation on XPath API
...
Fixes: https://github.com/dart-lang/sdk/issues/40015
Change-Id: Ia4ebbe3e21c47bc46859ed0a8d2fd632d223f242
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/218988
Reviewed-by: Srujan Gaddam <srujzs@google.com>
Commit-Queue: Riley Porter <rileyporter@google.com>
2022-02-23 20:25:23 +00:00
Emmanuel Pellereau
0933086397
Revert "[dart:html] Update Trusted Types APIs"
...
This reverts commit bda31c2c13
.
Reason for revert: Breaks google3 (See b/195948578).
Original change's description:
> [dart:html] Update Trusted Types APIs
>
> Closes b/195948578
>
> Modifies Trusted Types APIs to be compliant with the spec in
> https://w3c.github.io/webappsec-trusted-types/dist/spec/ .
>
> Change-Id: I65d52ace12342ce777ab596a9dd2e9a3f74b2f05
> Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/212270
> Commit-Queue: Srujan Gaddam <srujzs@google.com>
> Reviewed-by: Riley Porter <rileyporter@google.com>
TBR=sra@google.com ,srujzs@google.com,rileyporter@google.com
Change-Id: I6c74fe5bfb1ecb39e01304b882ec306d5cf34442
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/212741
Reviewed-by: Emmanuel Pellereau <emmanuelp@google.com>
Reviewed-by: Michal Terepeta <michalt@google.com>
Commit-Queue: Emmanuel Pellereau <emmanuelp@google.com>
2021-09-08 08:35:45 +00:00
Srujan Gaddam
bda31c2c13
[dart:html] Update Trusted Types APIs
...
Closes b/195948578
Modifies Trusted Types APIs to be compliant with the spec in
https://w3c.github.io/webappsec-trusted-types/dist/spec/ .
Change-Id: I65d52ace12342ce777ab596a9dd2e9a3f74b2f05
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/212270
Commit-Queue: Srujan Gaddam <srujzs@google.com>
Reviewed-by: Riley Porter <rileyporter@google.com>
2021-09-07 18:03:18 +00:00
Srujan Gaddam
7abaa95492
[dart:html] Fix Geoposition bindings and callbacks
...
Closes https://github.com/dart-lang/sdk/issues/45562
Closes https://github.com/dart-lang/sdk/issues/44324
Geoposition should be bound to GeolocationPosition as well since
Position is deprecated since Chrome 79.
Similarly, success callbacks used in the Geolocation API can accept
a Firefox-specific implementation, so the callback should accept a
dynamic instead. Doing this requires adding annotations to the APIs
so liveness of Geolocation types is maintained.
Change-Id: Id38f68d10c9cdcb7d711ef83a70df87b30be405d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/194325
Reviewed-by: Mayank Patke <fishythefish@google.com>
Reviewed-by: Stephen Adams <sra@google.com>
Commit-Queue: Srujan Gaddam <srujzs@google.com>
2021-04-29 21:32:15 +00:00
Terry Lucas
edca6169c1
Fixed a number of dart:html P1 issues.
...
- Fixed HTML API's with callback typedef to correctly convert Dart function to JS function.
- Expose HttpStatus from dart:html
- Expose DomName ondblclick and dblclickEvent for Angular analyzer.
- Fixed removeAll should be Iterable<Object> to match Set's removeAll not Iterable<E>.
- Fixed a number of DataTransferItem, Entry, FileEntry and DiretoryEntry returning NativeJavaScriptObject needed type registered in DDC.
- Added ability to allow local file access from Chrome browser added -local in ddb.
R=vsm@google.com
Fixes #30278
Fixes #35484
Fixes #34318
Fixes #35510
Change-Id: Ide8c04716c54045e837781d489562f27b694b109
Reviewed-on: https://dart-review.googlesource.com/c/89340
Commit-Queue: Terry Lucas <terry@google.com>
Reviewed-by: Vijay Menon <vsm@google.com>
Reviewed-by: Nate Bosch <nbosch@google.com>
2019-01-15 17:21:50 +00:00
Sam Rawlins
f7dab643ff
Remove discontinued webproject.org links. Fixes #21482
...
Bug: https://github.com/dart-lang/sdk/issues/21482
Change-Id: Ie3becfa7eb9f233186629cf97bfcabe51efc8794
Reviewed-on: https://dart-review.googlesource.com/c/82790
Reviewed-by: Terry Lucas <terry@google.com>
Commit-Queue: Samuel Rawlins <srawlins@google.com>
2018-11-06 22:20:51 +00:00
Terry Lucas
fd26d67a0b
Added getLegacyStats until Chrome fully supports new getStats() API.
...
TBR=alanknight@google.com
Change-Id: Iea06485fc54cdbcb30f1cc1bf7a10f97335e242a
Reviewed-on: https://dart-review.googlesource.com/63442
Reviewed-by: Alan Knight <alanknight@google.com>
Reviewed-by: Terry Lucas <terry@google.com>
Commit-Queue: Terry Lucas <terry@google.com>
2018-07-02 21:28:48 +00:00
Terry Lucas
dd8988c9b2
- Moved all WebGL rendering/drawing constants to synthesized class WebGL.
...
- Removed obsolete Dartium/_blink code.
R=kevmoo@google.com
Change-Id: I81a6f0d5bfe33592ff8ae9c85db9266e898c2861
Reviewed-on: https://dart-review.googlesource.com/60380
Commit-Queue: Terry Lucas <terry@google.com>
Reviewed-by: Kevin Moore <kevmoo@google.com>
2018-06-15 17:08:54 +00:00
Terry Lucas
cf87b84f7d
Support Promise to Future for both DDC and dart2js.
...
APIs in the newer Chrome IDLs support more JS style promises. The Dart web libraries now hookup those promises and return a Dart Future.
Additionally, a new type maplike is exposed in the IDL this is exposed too.
Change-Id: I44175877eb95f4d910586d42c0139fb182483f82
Reviewed-on: https://dart-review.googlesource.com/49800
Commit-Queue: Terry Lucas <terry@google.com>
Reviewed-by: Stephen Adams <sra@google.com>
2018-05-23 04:08:14 +00:00
Terry Lucas
bc75856e54
Update getClientRects, removed xtab, removed bogus entry in dom.json,
...
expose ServiceWorker, removed query and queryAll from in dart:html,
added constructor to MessageChannel and removed getCssCanvasContext.
Fixed all tests using query and queryAll.
Fixes https://github.com/dart-lang/sdk/issues/25664
Fixes https://github.com/dart-lang/sdk/issues/26349
Fixes https://github.com/dart-lang/sdk/issues/32323
Fixes https://github.com/dart-lang/sdk/issues/32659
Fixes https://github.com/dart-lang/sdk/issues/32675
R=kevmoo@google.com
Change-Id: I687471e80b8fe9c7040673113f424dbaab7c64d4
Reviewed-on: https://dart-review.googlesource.com/48381
Commit-Queue: Terry Lucas <terry@google.com>
Reviewed-by: Kevin Moore <kevmoo@google.com>
2018-03-27 20:45:33 +00:00
Terry Lucas
ef6273cba0
Dart Web Libraries re-generated based on Chrome 63 WebIDLs.
...
This is a migration of 13 Chrome release about 1.5 years of Chrome releases.
Update PYTHON scripts for cleaner and easier rolling.
Here's a doc on the changes that might affect Dart users:
https://docs.google.com/document/d/1Kj0nk3SueO3JKub8im7z3znu9j5oiI7vf49ejZrMxuE/edit#
Change-Id: I768fbd09b04fe6884af36ac102d5813f67bae426
Reviewed-on: https://dart-review.googlesource.com/24501
Commit-Queue: Terry Lucas <terry@google.com>
Reviewed-by: Terry Lucas <terry@google.com>
2018-03-18 09:41:04 +00:00
Terry Lucas
9f09ef0af3
- Fixed callback signatures with indexed_db open method to expose VersionChangeEvent and
...
Event type parameters instead of dynamic.
- Fixed missing interceptor in dart2js for MutationEvent (even though its deprecated
and should not be used). The MutationEvent is created when a node is deleted. Enabled
Dart MutationEvent class generation.
- Fixed/re-enabled all indexed_db tests to run and pass successfully.
Stephen please take a look - target in VersionChangeEvent is a final field, per your suggestion,
instead of a getter. The MutationEvent is returned in the browser and without the MutationEvent
Dart class the error:
Uncaught TypeError: t1.get$target is not a function
R=vsm@google.com ,gabrielchow@google.com,sra@google.com
Change-Id: Ic36aea8c33b4263a32ff9d047ba3e6b979e03b10
Reviewed-on: https://dart-review.googlesource.com/41569
Reviewed-by: Stephen Adams <sra@google.com>
Reviewed-by: Vijay Menon <vsm@google.com>
Commit-Queue: Terry Lucas <terry@google.com>
2018-02-23 14:29:45 +00:00
Terry Lucas
0af98266ab
Revert "Updated PYTHON code to correctly generate web_sql and re-wrote/re-enabled async web_sql test."
...
This reverts commit 0c8294e4a0
.
Bug:
Change-Id: Idb35c64fd5365f2669e8aff45765fed74e0f0766
Reviewed-on: https://dart-review.googlesource.com/31440
Commit-Queue: Terry Lucas <terry@google.com>
Reviewed-by: Terry Lucas <terry@google.com>
2017-12-23 01:59:38 +00:00
Terry Lucas
0c8294e4a0
Updated PYTHON code to correctly generate web_sql and re-wrote/re-enabled async web_sql test.
...
R=alanknight@google.com ,vsm@google.com
Change-Id: I80e82f5aaa3c9748740031d8da139f79e2c0ab70
Reviewed-on: https://dart-review.googlesource.com/31080
Commit-Queue: Terry Lucas <terry@google.com>
Reviewed-by: Alan Knight <alanknight@google.com>
2017-12-22 22:57:34 +00:00
Terry Lucas
f27144d7b5
Roll 50: Updated for push to origin/master.
...
TBR=jacobr@google.com
Review-Url: https://codereview.chromium.org/2875773003 .
2017-05-10 18:16:51 -07:00
Jacob Richman
f26e522f84
Strip unused functionality from dart:html and fix strong mode errors. Switch from blacklisting pure interfaces to determining pure interfaces from the idl and whitelisting impure interfaces we need for dart2js.
...
BUG=
R=alanknight@google.com
Review URL: https://codereview.chromium.org/1987073002 .
2016-05-18 12:49:09 -07:00
Jacob Richman
c65854d2e4
Optimize dartium dart:html bindings so real world application performance is acceptable. Improves dart:html performance by 2X-30X for microbenchmarks. Real world improvement is typically 2X-3X.
...
BUG=
Review URL: https://codereview.chromium.org/1832713002 .
2016-03-29 18:32:52 -07:00
Alan Knight
051451d7e6
Trying to fix SQLResultSetRowList's subscript operator to do type conversion
...
BUG=
Review URL: https://codereview.chromium.org/1779023002 .
2016-03-09 14:02:30 -08:00
Terry Lucas
c510dc9831
Fixed typedef used globally in IDLs
...
TBR=alanknight@google.com
Review URL: https://codereview.chromium.org/1763063003 .
2016-03-05 07:34:51 -08:00
Jacob Richman
c66635cc9f
Basline of dart2js w/ regen'd sdk/libs
...
BUG=
Review URL: https://codereview.chromium.org/1762063002 .
2016-03-03 13:42:10 -08:00
Terry Lucas
3f0bb621a8
Revert "Changes to tests and status file for the 45 roll w/ regenderated sdk/libs"
...
This reverts commit 8d12df1e77
.
TBR=alanknight@google.com ,jacobr@google.com
Review URL: https://codereview.chromium.org/1763753002 .
2016-03-03 09:41:01 -08:00
Terry Lucas
8d12df1e77
Changes to tests and status file for the 45 roll w/ regenderated sdk/libs
...
TBR=alanknight@google.com ,jacobr@google.com
Review URL: https://codereview.chromium.org/1746623002 .
2016-03-03 05:33:46 -08:00
Terry Lucas
f22c1f6e83
Revert "test of dart2js w/ regen'd sdk/libs"
...
This reverts commit 083280b171
.
TBR=alanknight@google.com
Review URL: https://codereview.chromium.org/1747283005 .
2016-03-02 04:34:19 -08:00
Terry Lucas
083280b171
test of dart2js w/ regen'd sdk/libs
...
TBR=alanknight@google.com
Review URL: https://codereview.chromium.org/1756653003 .
2016-03-02 03:39:14 -08:00
Terry Lucas
81d0e0f94f
Revert "Test sdk/lib regen for dart2js"
...
This reverts commit 733c996535
.
TBR=alanknight@google.com
Review URL: https://codereview.chromium.org/1750283002 .
2016-02-29 23:49:58 -08:00
Terry Lucas
733c996535
Test sdk/lib regen for dart2js
...
TBR=alanknight@google.com
Review URL: https://codereview.chromium.org/1755523002 .
2016-02-29 23:37:21 -08:00
alanknight@google.com
f0136ff1eb
Clean up WheelEvent
...
BUG=
R=terry@google.com
Review URL: https://codereview.chromium.org//1126463005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@45740 260f80e4-7a28-3924-810f-c04153c831b5
2015-05-12 16:34:01 +00:00
alanknight@google.com
5d2f7f8ae8
Fix notification
...
BUG=
R=terry@google.com
Review URL: https://codereview.chromium.org//1002953005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@44471 260f80e4-7a28-3924-810f-c04153c831b5
2015-03-13 17:21:31 +00:00
terry@google.com
e0fff4e457
Changes to support roll 39 IDLs
...
Reviewers=vsm@google.com ,asiva@google.com
Review URL: https://codereview.chromium.org//952133004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@44099 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-27 18:10:08 +00:00
leafp@google.com
78e328a2f2
More dart:html and dart:blink tweaks
...
Methods with no arguments mangled properly (python None and 0 are both false...).
Abstract classes generated from pure interfaces have no method bodies.
Add missing pure interfaces.
Emit dart:blink methods in sorted order.
BUG=
R=vsm@google.com
Review URL: https://codereview.chromium.org//671023003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41288 260f80e4-7a28-3924-810f-c04153c831b5
2014-10-24 17:47:14 +00:00
rmacnak@google.com
de9ba250c5
Reapply "Stop suppressing generation of bindings with Promise. Add some tests for DOM APIs that answer promises."
...
Fix static warning in storage_quota_test.
Fix status of fontface_loaded_test.
R=leafp@google.com
Review URL: https://codereview.chromium.org//658903005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41210 260f80e4-7a28-3924-810f-c04153c831b5
2014-10-20 18:27:03 +00:00
rmacnak@google.com
f310862906
Revert "Stop suppressing generation of bindings with Promise. Add some tests for DOM APIs that answer promises."
...
TBR=vsm@google.com
Review URL: https://codereview.chromium.org//661603003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41138 260f80e4-7a28-3924-810f-c04153c831b5
2014-10-16 02:54:14 +00:00
rmacnak@google.com
5178314123
Stop suppressing generation of bindings with Promise. Add some tests for DOM APIs that answer promises.
...
R=vsm@google.com
Review URL: https://codereview.chromium.org//605853003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41136 260f80e4-7a28-3924-810f-c04153c831b5
2014-10-16 01:17:45 +00:00
vsm@google.com
8a39ccb8df
Fix for web_gl statics
...
This was fixed on trunk / 1.7 separately. Here's the same for bleeding_edge:
BUG=https://code.google.com/p/dart/issues/detail?id=21173
R=leafp@google.com
Review URL: https://codereview.chromium.org//618323004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41045 260f80e4-7a28-3924-810f-c04153c831b5
2014-10-10 16:40:01 +00:00
vsm@google.com
94095d64a2
Merge 38 changes to bleeding edge
...
TBR=terry@google.com ,leafp@google.com
BUG=
Review URL: https://codereview.chromium.org//605083004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@40774 260f80e4-7a28-3924-810f-c04153c831b5
2014-09-29 15:56:25 +00:00
vsm@google.com
1c4bb5f363
Revert "Chrome 38 script changes from integration branch"
...
This reverts commit r40567.
TBR=leafp@google.com
Review URL: https://codereview.chromium.org//589253002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@40570 260f80e4-7a28-3924-810f-c04153c831b5
2014-09-22 21:11:34 +00:00
vsm@google.com
9e25106514
Chrome 38 script changes from integration branch
...
TBR=leafp@google.com
Review URL: https://codereview.chromium.org//593853002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@40567 260f80e4-7a28-3924-810f-c04153c831b5
2014-09-22 20:45:57 +00:00
vsm@google.com
e379d380bc
Migrate to Chrome 37 IDL
...
This enables terry's new scripts with fixes from vsm and leafp (tested in the dartium_integration branch).
R=leafp@google.com
Review URL: https://codereview.chromium.org//569783002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@40219 260f80e4-7a28-3924-810f-c04153c831b5
2014-09-12 21:18:06 +00:00
efortuna@google.com
7cbe70fb2c
Deprecate MouseEvent.elementTo and elementFrom since they have the same
...
functionality as relatedTarget.
BUG=
R=blois@google.com
Review URL: https://codereview.chromium.org//454043004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@39050 260f80e4-7a28-3924-810f-c04153c831b5
2014-08-08 21:07:24 +00:00
efortuna@google.com
b8ab793a1b
Reapply 38999. Third time's the charm! The issue was supportsTransitions was a
...
static method,and with my change I was calling an instance method. I've tested
all of the other html tests (before I was just testing on Dartium).
BUG=
R=leafp@google.com
Review URL: https://codereview.chromium.org//445733003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@39003 260f80e4-7a28-3924-810f-c04153c831b5
2014-08-07 18:36:23 +00:00
efortuna@google.com
c8d48f89a9
t cl dcommi# Enter a description of the change.
...
"Reverting 38998"
TBR
BUG=
Review URL: https://codereview.chromium.org//449033004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@38999 260f80e4-7a28-3924-810f-c04153c831b5
2014-08-07 17:50:26 +00:00
efortuna@google.com
c7dd285314
Reapplication of revision 38996 (dart side edits to make CSS Properties
...
accessible with and without prefixes), with the addition of CSSPropertyNames.in
which will be deleted once https://codereview.chromium.org/444453006/
is committed.
BUG=
Review URL: https://codereview.chromium.org//452493004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@38998 260f80e4-7a28-3924-810f-c04153c831b5
2014-08-07 17:21:06 +00:00
efortuna@google.com
ceea5ab278
"Reverting 38996"
...
TBR because we need CSSPropertyNames.in from DEPS
BUG=
Review URL: https://codereview.chromium.org//451563005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@38997 260f80e4-7a28-3924-810f-c04153c831b5
2014-08-07 17:12:12 +00:00
efortuna@google.com
19c379afd9
This is the dart side edits to make this happen.
...
Fix for https://code.google.com/p/dart/issues/detail?id=19932
BUG=
R=leafp@google.com
Review URL: https://codereview.chromium.org//442523003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@38996 260f80e4-7a28-3924-810f-c04153c831b5
2014-08-07 17:09:40 +00:00
jacobr@google.com
3a10438002
Support Dart debugger API directly
...
BUG=
R=leafp@google.com , rmacnak@google.com
Review URL: https://codereview.chromium.org//258503008
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36965 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-04 01:14:01 +00:00