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
581c512345
Fixed DOMRectList not having a prototype field.
...
TBR=vsm@google.com
Change-Id: I6cbc38bbb2123b914d5b5511774425c403e614ed
Reviewed-on: https://dart-review.googlesource.com/47183
Reviewed-by: Terry Lucas <terry@google.com >
Commit-Queue: Terry Lucas <terry@google.com >
2018-03-20 01:08:47 +00:00
Leaf Petersen
8f199377fa
Remove generic method comment syntax from dart:html.
...
This removes the last uses of the generic method comment syntax from
the SDK. There are no additional explicit casts or reified generics
(other than those implied by reifying generic methods) in this CL.
Bug:
Change-Id: Icae23cac60869243cb3ba441f86d70422f68178f
Reviewed-on: https://dart-review.googlesource.com/26081
Reviewed-by: Stephen Adams <sra@google.com >
Reviewed-by: Jacob Richman <jacobr@google.com >
2017-12-06 21:26:04 +00:00
Stephen Adams
7686dce346
Replace _downcast and _cast with local downcasts (dart:html)
...
Change-Id: I4282b20aac07da125805a2654da072742dbbdd0b
Reviewed-on: https://dart-review.googlesource.com/20300
Commit-Queue: Stephen Adams <sra@google.com >
Reviewed-by: Sigmund Cherem <sigmund@google.com >
2017-11-11 00:09:38 +00:00
Terry Lucas
621b12f324
Removed DARTIUM codegen for IDLS (sdk/lib/dartium)
...
TBR=alanknight@google.com
Review-Url: https://codereview.chromium.org/2978213002 .
2017-07-18 11:02:02 -07:00
Stephen Adams
b0803e1dd7
_ChildrenElementList implements removeRange
...
This is to avoid inheriting an implementation that works incorrectly for the underlying NodeList.
TBR=lrn@google.com
BUG=
Review-Url: https://codereview.chromium.org/2977453002 .
2017-07-07 15:55:19 -07: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
Erik Corry
aa6353b6da
Dart SDK Spelling b, c, and d.
...
R=kmillikin@google.com
BUG=
Review-Url: https://codereview.chromium.org/2850783002 .
2017-05-01 08:28:10 +02:00
Stephen Adams
14c7c3c556
Redo "Refined types for most HtmlElement factory constructors"
...
Fix: ShadowElement is not always present.
Original:
Committed: https://github.com/dart-lang/sdk/commit/b7b12b564a3e1811ccfca3e28fe30dde685f6633
Reverted: https://github.com/dart-lang/sdk/commit/963df1e3e1a3bac0013d191d2b02898bbebefa9d
BUG=
Review-Url: https://codereview.chromium.org/2718713003 .
2017-02-24 14:28:58 -08:00
Stephen Adams
963df1e3e1
Revert "Refined types for most HtmlElement factory constructors"
...
Need to fix ShadowElement
TBR=alanknight@google.com
Review-Url: https://codereview.chromium.org/2710323004 .
2017-02-24 14:15:37 -08:00
Stephen Adams
b7b12b564a
Refined types for most HtmlElement factory constructors
...
The body of new DivElement() is marked as returning a DivElement, instead of inferred to return Element.
The more precise receiver type allows svg polyfills to be excluded, allowsing the HtmlElement methods to be identified as the single target and inlined.
This tends to improve the code generated for idioms like
new DivElement()..classes.add('foo')
var e1 = new DivElement();
e1.children.add(e2);
BUG=
R=alanknight@google.com
Review-Url: https://codereview.chromium.org/2705213003 .
2017-02-24 11:23:06 -08:00
Jacob Richman
36c9514f04
Use Point<num> in dart:html for strong mode
...
Strong mode is (as of recently) inferring a stricter type (e.g., Point<double>) and causing breaking changes.
patch from issue 2211493003 at patchset 1 (http://crrev.com/2211493003#ps1 )
BUG=
Review URL: https://codereview.chromium.org/2211563002 .
2016-08-03 14:09:10 -07:00
Jacob Richman
7fdce7a2f0
Use _downcast and _cast instead of "as" to reduce dart2js output size.
...
BUG=
R=leafp@google.com
Review URL: https://codereview.chromium.org/1914583002 .
2016-04-22 11:09:01 -07:00
Jacob Richman
9ffe1c2450
Make querySelectorAll a generic method so that checked mode behavior is consistent with existing behavior and strong mode behavior is strong for the case of List<InputElement> elems = document.querySelector("input");
...
BUG=
R=leafp@google.com
Review URL: https://codereview.chromium.org/1904903003 .
2016-04-21 09:54:18 -07:00
Jacob Richman
777e1a386e
Revert "Remove the generics from _FrozenElementList: causes checked mode failures"
...
This reverts commit 7824ac771b .
BUG=
Review URL: https://codereview.chromium.org/1909613003 .
2016-04-20 18:50:11 -07:00
Jacob Richman
864b64fd5e
Strong html
...
BUG=
R=alanknight@google.com
Review URL: https://codereview.chromium.org/1894713002 .
2016-04-19 15:08:45 -07:00
Alan Knight
7824ac771b
Remove the generics from _FrozenElementList: causes checked mode failures
...
BUG=
R=jacobr@google.com
Review URL: https://codereview.chromium.org/1891543005 .
2016-04-14 15:14:40 -07:00
Alan Knight
a718c8dac9
Fix a few strong mode errors in dart:html
...
BUG=
R=jacobr@google.com
Committed: https://github.com/dart-lang/sdk/commit/65fe0a5383c7d09efb1dd958a7a30ec5c4d1c847
Review URL: https://codereview.chromium.org/1876363006 .
2016-04-13 15:13:31 -07:00
Alan Knight
3fd7e32b65
Revert "Fix a few strong mode errors in dart:html"
...
This reverts commit 65fe0a5383 .
BUG=
Review URL: https://codereview.chromium.org/1879253004 .
2016-04-13 14:56:42 -07:00
Alan Knight
65fe0a5383
Fix a few strong mode errors in dart:html
...
BUG=
R=jacobr@google.com
Review URL: https://codereview.chromium.org/1876363006 .
2016-04-13 14:41:10 -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
Terry Lucas
d2e1a2ce3c
client* no longer handle manipulated the properties are back to ints
...
TBR=alanknight@google.com ,jacobr@google.com
Committed: https://github.com/dart-lang/sdk/commit/637ed1e3e193b29874d9529f200d532c3847af33
Review URL: https://codereview.chromium.org/1754593004 .
2016-03-01 04:50:40 -08:00
Terry Lucas
a3350d9b06
Generation of sdk/lib files from 45 roll
...
TBR=alanknight@google.com ,jacobr@google.com
Review URL: https://codereview.chromium.org/1720743005 .
2016-02-22 10:59:12 -08:00
Sam Rawlins
931ceef9b2
Fixing dart:html links _not_ found in docs.json
...
BUG= https://github.com/dart-lang/sdk/issues/23601
R=alanknight@google.com
Review URL: https://codereview.chromium.org/1448963002 .
2015-11-16 10:18:23 -08:00
Alan Knight
5b6401e900
Move JS calls out of Dartium code
...
BUG=
Review URL: https://codereview.chromium.org//1369573004 .
2015-09-24 12:36:18 -07:00
Alan Knight
8f35656f9b
Fix node_validator xss tests for IE and Firefox
...
BUG=
Review URL: https://codereview.chromium.org//1365093003 .
2015-09-24 10:43:08 -07:00
Terry L. Lucas
fc8682ceac
Fixed another dart2js code emitting error and enabled tests that now work
...
TBR=alanknight@google.com
Review URL: https://codereview.chromium.org//1346203002 .
2015-09-16 08:19:15 -07:00
Terry L. Lucas
7b322c246c
Dartium JS Enabled take 2
...
TBR=alanknight@google.com
Review URL: https://codereview.chromium.org//1348173002 .
2015-09-16 07:13:53 -07:00
Terry L. Lucas
09c804aa78
Revert "Dartium JS Interop enabled."
...
This reverts commit 403bd1698d .
TBR=alanknight@google.com
Review URL: https://codereview.chromium.org//1345083002 .
2015-09-15 19:44:26 -07:00
Terry L. Lucas
403bd1698d
Dartium JS Interop enabled.
...
TBR=alanknight@google.com
Review URL: https://codereview.chromium.org//1349493003 .
2015-09-15 17:36:47 -07:00
Terry L. Lucas
9b0d2582fc
Revert "Dartium w/ JsInterop enabled"
...
This reverts commit 346af54711 .
TBR=alanknight@google.com
Review URL: https://codereview.chromium.org//1330163010 .
2015-09-09 17:33:24 -07:00
Terry L. Lucas
346af54711
Dartium w/ JsInterop enabled
...
TBR=alanknight@google.com
Review URL: https://codereview.chromium.org//1321613005 .
2015-09-09 17:01:40 -07:00
Terry L. Lucas
012c998f64
Revert "Patched in Dartium JsInterop"
...
This reverts commit 4bb2e617db .
TBR=alanknight@google.com
Review URL: https://codereview.chromium.org//1327083002 .
2015-09-08 13:35:03 -07:00
Terry L. Lucas
4bb2e617db
Patched in Dartium JsInterop
...
TBR=alanknight@google.com
Review URL: https://codereview.chromium.org//1310363006 .
2015-09-08 12:46:41 -07:00
Alan Knight
d5599eb63b
Restore workaround for old Chrome bug that also affects Safari and in some cases Firefox, fix test suppressions
...
BUG=
Review URL: https://codereview.chromium.org//1242063002 .
2015-07-16 13:20:26 -07:00
Alan Knight
4e790fef3d
appendHtml, when sanitizing, should create document fragment in the right context
...
BUG=
R=terry@google.com
Committed: https://github.com/dart-lang/sdk/commit/560f12bb21874824788e1f660ca07b8914c8cc4f
Committed: https://github.com/dart-lang/sdk/commit/930a40daa50a93adfce8786f4d7ef25e06324dda
Review URL: https://codereview.chromium.org//1221043003 .
2015-07-16 10:30:51 -07:00
Terry L. Lucas
1fa61ee114
Fixed a few more things to make Dartium build w/o --gen-interop
...
TBR=vsm@google.com
Review URL: https://codereview.chromium.org//1239653003 .
2015-07-14 07:17:59 -07:00
Alan Knight
610edadff2
Revert "appendHtml, when sanitizing, should create document fragment in the right context"
...
This reverts commit 930a40daa5 .
BUG=
Review URL: https://codereview.chromium.org//1230203005 .
2015-07-13 15:32:17 -07:00
Terry L. Lucas
48af868f47
Fixed compilation error
...
Review URL: https://codereview.chromium.org//1233923003 .
2015-07-13 13:24:08 -07:00
Alan Knight
930a40daa5
appendHtml, when sanitizing, should create document fragment in the right context
...
BUG=
R=terry@google.com
Committed: https://github.com/dart-lang/sdk/commit/560f12bb21874824788e1f660ca07b8914c8cc4f
Review URL: https://codereview.chromium.org//1221043003 .
2015-07-13 12:50:49 -07:00
Terry L. Lucas
4947e570d4
Changed to use JSInterop
...
Review URL: https://codereview.chromium.org//1173403004 .
2015-07-13 12:38:16 -07:00
Alan Knight
1e8a275a20
Revert "appendHtml, when sanitizing, should create document fragment in the right context"
...
This reverts commit 560f12bb21 .
modified: sdk/lib/html/dart2js/html_dart2js.dart
modified: sdk/lib/html/dartium/html_dartium.dart
modified: tests/html/element_add_test.dart
modified: tools/dom/templates/html/impl/impl_Element.darttemplate
BUG=
Review URL: https://codereview.chromium.org//1230553003 .
2015-07-08 12:19:30 -07:00
Alan Knight
560f12bb21
appendHtml, when sanitizing, should create document fragment in the right context
...
BUG=
R=terry@google.com
Review URL: https://codereview.chromium.org//1221043003 .
2015-07-08 10:16:37 -07:00
Alan Knight
1d5b657427
Make it easier and more efficient to use trusted HTML text
...
BUG=
R=sra@google.com
Review URL: https://codereview.chromium.org//1154423009 .
2015-06-22 09:41:01 -07:00
Alan Knight
efb738f633
Sanitization should reject elements that we can't examine (e.g. embed/object on FF)
...
BUG=
R=sra@google.com
Review URL: https://codereview.chromium.org//1146753004
2015-05-21 13:54:50 -07:00
alanknight@google.com
1f20842389
Another try at appendHtml and insertAdjacentHtml should be consistently sanitized
...
BUG=
Review URL: https://codereview.chromium.org//1123173003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@45818 260f80e4-7a28-3924-810f-c04153c831b5
2015-05-15 17:59:23 +00:00
alanknight@google.com
bfa61f62e0
"Reverting 45815"
...
BUG=
Review URL: https://codereview.chromium.org//1127403006
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@45816 260f80e4-7a28-3924-810f-c04153c831b5
2015-05-15 17:04:53 +00:00
alanknight@google.com
1c69173804
Test Dartium with appendHtml sanitizing. Will immediately revert.
...
BUG=
Review URL: https://codereview.chromium.org//1133343005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@45815 260f80e4-7a28-3924-810f-c04153c831b5
2015-05-15 16:30:17 +00:00
alanknight@google.com
90a31f8fea
"Reverting 45807"
...
BUG=
Review URL: https://codereview.chromium.org//1139193002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@45808 260f80e4-7a28-3924-810f-c04153c831b5
2015-05-15 01:29:49 +00:00
alanknight@google.com
2faa58eb4c
Testing for appendHtml and insertAdjacentHtml should be consistently sanitized
...
BUG=
Review URL: https://codereview.chromium.org//1147473002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@45807 260f80e4-7a28-3924-810f-c04153c831b5
2015-05-15 01:10:19 +00:00