Граф коммитов

14780 Коммитов

Автор SHA1 Сообщение Дата
Henri Sivonen 009840a99b Bug 1409951 - Use a stack to end serializer contexts instead of recomputing them. r=smaug
MozReview-Commit-ID: FOd8AUmtYyA
2017-12-01 10:45:25 -05:00
Tooru Fujisawa 37740524e5 Bug 1421582 - Fix dom/base/test/browser_bug902350.js to wait for events in proper order. r=Gijs 2017-12-01 10:05:48 +09:00
Gijs Kruitbosch 7b8023dcab Bug 1420507, r=freddyb,francois
--HG--
extra : rebase_source : f7984ad91b4f8260538fa3cb2cf3e560dfbc2dcc
2017-11-29 17:03:54 +00:00
Gurzau Raul 1c0a590e09 Merge mozilla-central to mozilla-inbound. r=merge a=merge CLOSED TREE 2017-12-01 13:00:44 +02:00
Gurzau Raul 0b613c3887 Merge inbound to mozilla-central r=merge a=merge 2017-12-01 12:56:06 +02:00
Emilio Cobos Álvarez 5604b99826 Bug 1420762: Make StyleSheets notify directly to their StyleSets. r=heycam
This also makes the rule map not process all the stylesheets for the document,
which would be a mess with shadow DOM.

Far from the final, ideal state, but hey, progress.

MozReview-Commit-ID: 7TrifME9VZ
2017-12-01 08:46:39 +01:00
Tim Taubert 2725932278 Bug 1333140 - Remove WEBCRYPTO_METHOD_SECURE histogram r=keeler 2017-11-30 14:06:28 +01:00
Thomas Nguyen 1cbe6d16c5 Bug 1420702 - Propagate referrer policy when creating window from pinned tab r=ckerschb,smaug
MozReview-Commit-ID: 1kMssKbAm1l

--HG--
extra : rebase_source : 446d4a9fffd1d5b19bca41722db32759b4540a29
2017-11-30 21:42:05 +08:00
Edgar Chen 0c779a0480 Bug 1421170 - Move the declarations of CustomElementUpgradeReaction and CustomElementCallbackReaction to CustomElementRegistry.cpp; r=smaug
The CustomElementUpgradeReaction and CustomElementCallbackReaction are only used inside CustomElementRegistry.cpp,
so we don't need to expose them in header file.

MozReview-Commit-ID: 9lYwHeFIODi

--HG--
extra : rebase_source : 099821b680b171b0c354c34ebd91ba5963536dc1
2017-11-28 14:52:32 +08:00
Narcis Beleuzu 2d0c93c273 Merge mozilla-central to inbound. r=merge a=merge on a CLOSED TREE 2017-12-01 00:47:21 +02:00
Brindusan Cristian 6f5b49da3e Backed out 2 changesets (bug 1420762) for merge conflicts r=merge a=merge
Backed out changeset ba350c82d823 (bug 1420762)
Backed out changeset 00287b88254b (bug 1420762)
2017-12-01 00:20:10 +02:00
Emilio Cobos Álvarez f28656c543 Bug 1420762: Make StyleSheets notify directly to their StyleSets. r=heycam
This also makes the rule map not process all the stylesheets for the document,
which would be a mess with shadow DOM.

Far from the final, ideal state, but hey, progress.

MozReview-Commit-ID: 7TrifME9VZ
2017-11-30 15:42:45 +01:00
Andreas Farre 295bd4906a Bug 1421009 - Don't schedule idle callback if window is shutting down. r=bkelly 2017-11-30 05:14:00 -05:00
Cosmin Sabou 5c4663243d Backed out 23 changesets (bug 1419771) for frequently failing service workers related devtools tests, e.g. devtools/client/aboutdebugging/test/browser_service_workers_push.js. r=backout on a CLOSED TREE
Backed out changeset 2242edc902a5 (bug 1419771)
Backed out changeset 9cc3c29a9e36 (bug 1419771)
Backed out changeset c39ee002c825 (bug 1419771)
Backed out changeset caf7428013f2 (bug 1419771)
Backed out changeset c03970363433 (bug 1419771)
Backed out changeset 7f9de012861e (bug 1419771)
Backed out changeset ed146ac42a7f (bug 1419771)
Backed out changeset a8154698f782 (bug 1419771)
Backed out changeset 8a54c1c8d45d (bug 1419771)
Backed out changeset e32cd55b4c96 (bug 1419771)
Backed out changeset b7f342f436ef (bug 1419771)
Backed out changeset 60464b3e468f (bug 1419771)
Backed out changeset 108806f14ad8 (bug 1419771)
Backed out changeset 65998b0740f3 (bug 1419771)
Backed out changeset 0d23880842d8 (bug 1419771)
Backed out changeset 862aeaa2fefd (bug 1419771)
Backed out changeset cbc192478bf5 (bug 1419771)
Backed out changeset c58ef2a91bad (bug 1419771)
Backed out changeset 2b0a4bfd654f (bug 1419771)
Backed out changeset f182eba574f9 (bug 1419771)
Backed out changeset d9999a624097 (bug 1419771)
Backed out changeset 4050a1b8db2b (bug 1419771)
Backed out changeset a1a68e6500d9 (bug 1419771)
2017-11-30 22:35:32 +02:00
Olli Pettay af3373dc1d Bug 1418002 - Remove HTMLContentElement, r=jessica 2017-11-30 10:57:15 +02:00
Olli Pettay a75b955405 Bug 1421607 - Do black marking of bfcache documents during GC, r=mystor
--HG--
extra : rebase_source : 395dddb461c065b780aeead12150c0feff550d5d
2017-11-30 01:24:46 +02:00
Bogdan Tara df97c78dbf Merge mozilla-central to inbound. r=merge a=merge on a CLOSED TREE 2017-11-30 01:10:06 +02:00
Kate McKinley f9f14d6f64 Bug 1410364 - Don't consider opener when calculating IsSecureContext. r=bz, r=dveditz
Per https://github.com/w3c/webappsec-secure-contexts/issues/42, the
section considering the window opener when calculating secure context is
to be dropped. Firefox already uses "isSecureContextIfOpenerIgnored" in
most places as this is the actual behavior we want. This patch aligns
with the upcoming spec changes by ignoring the window opener. We also no
longer have to keep information about whether our opener was secure as
that no longer factors in our calculations.
2017-11-29 10:40:00 -05:00
Edgar Chen 3a109e4f15 Bug 1416999 - Remove the custom elements prototype and document order stored in CustomElementDefinition; r=smaug
They are used for old spec, and we don't need them after removing document.registerElement

MozReview-Commit-ID: EqzB1PJJtrg

--HG--
extra : rebase_source : 5eaa1343bc749d172eb782e063d74099f856f9da
2017-11-29 10:51:54 +08:00
Edgar Chen 9f4324f41e Bug 1416999 - Remove document.registerElement; r=smaug
MozReview-Commit-ID: HiX07Vbljhk

--HG--
rename : dom/base/test/chrome/registerElement_ep.js => dom/base/test/chrome/custom_element_ep.js
rename : dom/base/test/chrome/frame_registerElement_content.html => dom/base/test/chrome/frame_custom_element_content.html
rename : dom/base/test/chrome/test_registerElement_content.xul => dom/base/test/chrome/test_custom_element_content.xul
rename : dom/base/test/chrome/test_registerElement_ep.xul => dom/base/test/chrome/test_custom_element_ep.xul
rename : dom/base/test/test_document_register.html => dom/base/test/test_custom_element.html
rename : dom/tests/mochitest/webcomponents/test_document_register.html => dom/tests/mochitest/webcomponents/test_custom_element_define.html
rename : dom/tests/mochitest/webcomponents/test_document_register_parser.html => dom/tests/mochitest/webcomponents/test_custom_element_define_parser.html
rename : dom/tests/mochitest/webcomponents/test_template_custom_elements.html => dom/tests/mochitest/webcomponents/test_custom_element_template.html
extra : rebase_source : cd2ebf166e8bd9c49910387c9136d7b83b51598d
2017-11-16 12:23:15 +08:00
Dorel Luca 79499f4044 Merge mozilla-central to autoland r=merge on a CLOSED TREE 2017-11-29 12:31:25 +02:00
Masayuki Nakano 1bb0ec153d Bug 1419745 - part 1: Make EditorDOMPointBase not a sub class of RangeBoundaryBase and duplicate methods of RangeBoundaryBase into EditorDOMPointBase r=m_kato
EditorDOMPointBase should store child at offset for editor uses.  E.g., when
editor wants to refer a node as child node of an EditorDOMPoint instance,
even if the node is unexpectedly moved to different container, editor wants
to keep referring the child node rather than its previous sibling.

Therefore this patch makes EditorDOMPointBase not a sub class of
RangeBoundaryBase but copying all methods and members of RangeBoundaryBase
into EditorDOMPointBase for keeping current behavior completely.

MozReview-Commit-ID: LIyPFkCfsZ9

--HG--
extra : rebase_source : fd76c4808625f8f8a86f7b4e4c1ac22fbdc11dd5
2017-11-23 00:15:29 +09:00
Tiberius Oros 18ea9ecad9 Merge mozilla-central to mozilla-inbound. r=merge a=merge CLOSED TREE
--HG--
rename : devtools/client/webconsole/new-console-output/test/mochitest/test-bug-618078-network-exceptions.html => devtools/client/webconsole/new-console-output/test/mochitest/test-network-exceptions.html
rename : devtools/client/webconsole/new-console-output/test/mochitest/test_bug1092055_shouldwarn.html => devtools/client/webconsole/new-console-output/test/mochitest/test-subresource-security-error.html
rename : devtools/client/webconsole/new-console-output/test/mochitest/test_bug1092055_shouldwarn.js => devtools/client/webconsole/new-console-output/test/mochitest/test-subresource-security-error.js
rename : devtools/client/webconsole/new-console-output/test/mochitest/test_bug1092055_shouldwarn.js^headers^ => devtools/client/webconsole/new-console-output/test/mochitest/test-subresource-security-error.js^headers^
extra : rebase_source : e126b0ab427161de0acd67cdfb9a1434415412dc
2017-11-29 02:25:59 +02:00
Andreas Farre 3dae0daf36 Bug 1415770 - Simplify handling of IdleRequest list. r=smaug, r=baku 2017-11-28 14:23:46 -05:00
Boris Zbarsky 14eb0311b4 Bug 1417405 - Make sure to hold a strong ref on the stack to arguments passed to IsPotentiallyScrollable. r=smaug
--HG--
extra : rebase_source : abbd4b46d6c813b14aa767b1aab7b20567792a6b
2017-11-17 01:10:01 -05:00
Andrea Marchesini 6f8ea5140c Bug 1419771 - Introduce DOMPreferences, a thread-safe access to preferences for DOM - part 23 - DOMPreferences initialized at startup, r=asuth 2017-11-30 18:16:47 +01:00
Andrea Marchesini 7560ffd56e Bug 1419771 - Introduce DOMPreferences, a thread-safe access to preferences for DOM - part 21 - DevTools enabled, r=asuth 2017-11-30 18:16:47 +01:00
Andrea Marchesini ec279a6bc2 Bug 1419771 - Introduce DOMPreferences, a thread-safe access to preferences for DOM - part 20 - Resist finger-printing enabled, r=asuth 2017-11-30 18:16:47 +01:00
Andrea Marchesini ff3102232c Bug 1419771 - Introduce DOMPreferences, a thread-safe access to preferences for DOM - part 19 - FetchObserver API enabled, r=asuth 2017-11-30 18:16:46 +01:00
Andrea Marchesini 87b88ecf23 Bug 1419771 - Introduce DOMPreferences, a thread-safe access to preferences for DOM - part 18 - Network Information enabled, r=asuth 2017-11-30 18:16:46 +01:00
Andrea Marchesini 278c4a3bc7 Bug 1419771 - Introduce DOMPreferences, a thread-safe access to preferences for DOM - part 17 - Webkit/Blink directory picker enabled, r=asuth 2017-11-30 18:16:46 +01:00
Andrea Marchesini 68264e1209 Bug 1419771 - Introduce DOMPreferences, a thread-safe access to preferences for DOM - part 16 - Offscreen Canvas enabled, r=asuth 2017-11-30 18:16:46 +01:00
Andrea Marchesini 4f8c375ea7 Bug 1419771 - Introduce DOMPreferences, a thread-safe access to preferences for DOM - part 15 - Request Context enabled, r=asuth 2017-11-30 18:16:46 +01:00
Andrea Marchesini 5c6a04a6d2 Bug 1419771 - Introduce DOMPreferences, a thread-safe access to preferences for DOM - part 14 - Streams API enabled, r=asuth 2017-11-30 18:16:46 +01:00
Andrea Marchesini dd319f861b Bug 1419771 - Introduce DOMPreferences, a thread-safe access to preferences for DOM - part 13 - Push enabled, r=asuth 2017-11-30 18:16:45 +01:00
Andrea Marchesini 02c4d1fc9d Bug 1419771 - Introduce DOMPreferences, a thread-safe access to preferences for DOM - part 12 - Promise Rejection Event enabled, r=asuth 2017-11-30 18:16:45 +01:00
Andrea Marchesini cd7b81714c Bug 1419771 - Introduce DOMPreferences, a thread-safe access to preferences for DOM - part 11 - StorageManager enabled, r=asuth 2017-11-30 18:16:45 +01:00
Andrea Marchesini 41df4c1f5b Bug 1419771 - Introduce DOMPreferences, a thread-safe access to preferences for DOM - part 10 - ServiceWorker Client OpenWindow enabled, r=asuth 2017-11-30 18:16:45 +01:00
Andrea Marchesini 6449cfcb08 Bug 1419771 - Introduce DOMPreferences, a thread-safe access to preferences for DOM - part 9 - ServiceWorker testing enabled, r=asuth 2017-11-30 18:16:45 +01:00
Andrea Marchesini 22b345720e Bug 1419771 - Introduce DOMPreferences, a thread-safe access to preferences for DOM - part 8 - ServiceWorkers enabled, r=asuth 2017-11-30 18:16:45 +01:00
Andrea Marchesini 156213d7e8 Bug 1419771 - Introduce DOMPreferences, a thread-safe access to preferences for DOM - part 7 - Notification Request-Interaction enabled, r=asuth 2017-11-30 18:16:45 +01:00
Andrea Marchesini 4f40b313a3 Bug 1419771 - Introduce DOMPreferences, a thread-safe access to preferences for DOM - part 6 - Notification API enabled, r=asuth 2017-11-30 18:16:44 +01:00
Andrea Marchesini c8ae53b657 Bug 1419771 - Introduce DOMPreferences, a thread-safe access to preferences for DOM - part 5 - Performance logging enabled, r=asuth 2017-11-30 18:16:44 +01:00
Andrea Marchesini cb9c14e86e Bug 1419771 - Introduce DOMPreferences, a thread-safe access to preferences for DOM - part 4 - DOM Cache testing enabled, r=asuth 2017-11-30 18:16:44 +01:00
Andrea Marchesini 6868bd1bd3 Bug 1419771 - Introduce DOMPreferences, a thread-safe access to preferences for DOM - part 3 - DOM Caches enabled, r=asuth 2017-11-30 18:16:44 +01:00
Andrea Marchesini df66e497b8 Bug 1419771 - Introduce DOMPreferences, a thread-safe access to preferences for DOM - part 2 - image bitmap, r=asuth 2017-11-30 18:16:44 +01:00
Andrea Marchesini a8cc2c7114 Bug 1419771 - Introduce DOMPreferences, a thread-safe access to preferences for DOM - part 1 - dump enabled, r=asuth 2017-11-30 18:16:44 +01:00
Ben Kelly e9bc23f889 Bug 1420743 P1 Do a better job of clearing docshell's mInitialClientSource at the end of page load. r=baku 2017-11-28 12:10:40 -05:00
Olli Pettay d446dcde61 Bug 1414452, clear dirAutoSetBy properties iteratively, r=peterv 2017-11-28 16:17:17 +02:00
Brindusan Cristian 9f3bd430c2 Merge inbound to mozilla-central a=merge r=merge 2017-11-28 11:50:57 +02:00
Dave Townsend 27380b996e Bug 1404420: Add custom element support to XUL. r=edgar, r=smaug
MozReview-Commit-ID: BietEX2gOoG

--HG--
extra : rebase_source : 6fd9a732a21f2c048d37c3f7139cd18503148767
2017-10-10 15:25:10 -07:00
Nika Layzell 2512d242a6 Bug 1420911 - Ensure mBeforeUnloadListenerCount doesn't drop below 0 when FreeInnerObjects is called, r=qdot
MozReview-Commit-ID: EavGhe0Cfw
2017-11-27 17:35:37 -05:00
John Dai 05cb887de2 Bug 1407669 - Fix custom element creation hides uncatchable exceptions from the constructor. f=echen, r=bz
--HG--
extra : rebase_source : 6d871d6b4c959e0e9fbc34bd8d14d45678badd35
2017-11-21 20:46:00 -05:00
Edgar Chen e8e6e85590 Bug 1419305 - Part 2: Keep processing remaining elements in ElementQueue even if some of elements are already unlinked; r=smaug
MozReview-Commit-ID: BAoBGoYtiJr

--HG--
extra : rebase_source : 5df57004ec6756cbf584180efa95d5bde049b234
2017-11-03 17:57:46 +08:00
Edgar Chen 7cfc82e138 Bug 1419305 - Part 1: Use MicroTask on CustomElements correctly; r=smaug
MozReview-Commit-ID: EPMfr6hr5fS

--HG--
extra : rebase_source : 51784f7d8b74978847901f57f23730fb0f547ce5
2017-11-03 17:38:46 +08:00
arthur.iakab dfc104159a Merge inbound to central r=merge a=merge 2017-11-24 12:00:30 +02:00
Brian Birtles 06e53a1793 Bug 1412765 - Update more tests to reflect changes to Animation.playState's r=hiro
return value; r?hiro

MozReview-Commit-ID: KvZa7EyzAKj

--HG--
extra : rebase_source : b7721bc34f246c36a22eb4f9acc3fba854dcdec8
2017-11-24 10:53:58 +09:00
Brian Birtles bad7dc839d Bug 1412765 - Add dom.animations-api.pending-member.enabled, defaulting to false; r=hiro
MozReview-Commit-ID: 7P34nAI7apB

--HG--
extra : rebase_source : 94cf46522b995c40b1649a4d8ce44cd868026869
2017-11-21 09:43:40 +09:00
Gurzau Raul 21905d169e Merge mozilla-central to mozilla-inbound. r=merge a=merge CLOSED TREE 2017-11-24 00:38:13 +02:00
Tiberius Oros da0a72a9d7 Merge inbound to mozilla-central r=merge a=merge 2017-11-24 00:28:29 +02:00
Nika Layzell 8886a24cd7 Bug 1419597 - Part 19: Remove accidental version control marker on a CLOSED TREE, a=bustage
MozReview-Commit-ID: LuztkGycks1
2017-11-23 13:44:11 -05:00
Nika Layzell f1ac9bf744 Bug 1419597 - Part 18: Remove IsInnerWindow and IsOuterWindow methods, r=smaug
MozReview-Commit-ID: DAAm6tLubhJ
2017-11-23 13:12:13 -05:00
Nika Layzell 7273ec9699 Bug 1419597 - Part 17: Avoid implementing *OpenerForInitialContentBrowser on the inner, r=smaug
MozReview-Commit-ID: HBRWzlBqnCT
2017-11-23 13:12:11 -05:00
Nika Layzell c96f34d91b Bug 1419597 - Part 16: Clarify crash message in some outer window unsupported methods, r=smaug
MozReview-Commit-ID: 8yLkJE4cGra
2017-11-23 13:12:10 -05:00
Nika Layzell 7675c88400 Bug 1419597 - Part 15: Build nsGlobalWindow{Inner,Outer}.cpp separately, r=smaug
MozReview-Commit-ID: 7a1jiE7FKcs
2017-11-23 13:12:08 -05:00
Nika Layzell a4f4d616b9 Bug 1419597 - Part 14: Clean up some out of date documentation, r=smaug
MozReview-Commit-ID: Jk6BDE3PzF
2017-11-23 13:12:06 -05:00
Nika Layzell 48b95b6db0 Bug 1419597 - Part 13: Move gDragServiceDisabled and gMouseDown to be statics on nsGlobalWindowInner, r=smaug
MozReview-Commit-ID: DjXlbLJclzh
2017-11-23 13:12:05 -05:00
Nika Layzell 9a28c8db2e Bug 1419597 - Part 12: Move storage pref enabled check into a static method on dom::Storage, r=asuth
MozReview-Commit-ID: 7qES6MrIxK9
2017-11-23 13:12:03 -05:00
Nika Layzell c89dc4dbb4 Bug 1419597 - Part 11: Move gRefCnt/gSerialCounter into nsContentUtils, r=smaug
MozReview-Commit-ID: KkG6hQentSH
2017-11-23 13:12:01 -05:00
Nika Layzell 492842f10a Bug 1419597 - Part 10: Move includes into nsGlobalWindow{Inner,Outer}.cpp, r=smaug
MozReview-Commit-ID: A5xJcTnicyb
2017-11-23 13:12:00 -05:00
Nika Layzell c9248cfb52 Bug 1419597 - Part 9: Move the remaining defines out of nsGlobalWindow.h, r=smaug
MozReview-Commit-ID: CQRRyTImnUG
2017-11-23 13:11:58 -05:00
Nika Layzell 454baaeaca Bug 1419597 - Part 8: Completely remove unused DialogValueHolder, r=smaug,bz
MozReview-Commit-ID: 8VaBoUj9nOj
2017-11-23 13:11:56 -05:00
Nika Layzell 2625b0ca22 Bug 1419597 - Part 7: Remove unused data members from nsGlobalWindowOuter, r=smaug
MozReview-Commit-ID: 5fj3pBMmR8E
2017-11-23 13:11:55 -05:00
Nika Layzell c7371d5cc9 Bug 1419597 - Part 6: Remove unused data members from nsGlobalWindowInner, r=smaug
MozReview-Commit-ID: KeZR0knQcbl
2017-11-23 13:11:53 -05:00
Nika Layzell 9ac65ea533 Bug 1419597 - Part 5: Remove mFocusedNode from the outer window, r=enndeakin
MozReview-Commit-ID: 62pgCjfIsvu
2017-11-23 13:11:51 -05:00
Nika Layzell 38b6455183 Bug 1419597 - Part 4: Remove unused fields from nsPIDOMWindowOuter, r=smaug
MozReview-Commit-ID: 4VXKn6dnYKH
2017-11-23 13:11:50 -05:00
Nika Layzell 6bd2d6f16d Bug 1419597 - Part 3: Remove unused fields from nsPIDOMWindowInner, r=smaug
MozReview-Commit-ID: FJQ6GmxE5gq
2017-11-23 13:11:48 -05:00
Nika Layzell 14a3bf4116 Bug 1419597 - Part 2: Remove nsPIDOMWindow, r=smaug
MozReview-Commit-ID: 9TUURbj9s7N
2017-11-23 13:11:46 -05:00
Nika Layzell 39d4d66910 Bug 1419597 - Part 1: Split the methods on nsPIDOMWindow<T>, r=smaug
MozReview-Commit-ID: KXsnYLYtICV
2017-11-23 13:11:44 -05:00
Nika Layzell ee9635d6aa Bug 1419144 - Part 20: Remove nsGlobalWindowOuter::RiskyUnlink, r=mccr8
MozReview-Commit-ID: 3BZIKFc5noK
2017-11-23 13:11:43 -05:00
Nika Layzell 98a780f55d Bug 1419144 - Part 19: Move IsRootOuterWindow to nsPIDOMWindowOuter, r=smaug
MozReview-Commit-ID: Cgh1Cbb60Zk
2017-11-23 13:11:41 -05:00
Nika Layzell b1a42230f1 Bug 1419144 - Part 18: Move AsInner() and AsOuter() off of nsPIDOMWindow<T>, r=smaug
MozReview-Commit-ID: IA29zmacrJ4
2017-11-23 13:11:39 -05:00
Nika Layzell cc1a61fcdc Bug 1419144 - Part 17: Split gDOMLeakPRLog into Inner/Outer variants, r=smaug
MozReview-Commit-ID: HxjJ43UyecW
2017-11-23 13:11:38 -05:00
Nika Layzell 9b40de114c Bug 1419144 - Part 16: Move gDumpFile into nsGlobalWindowInner, r=smaug
MozReview-Commit-ID: 1ATfmoN0oue
2017-11-23 13:11:36 -05:00
Nika Layzell 920ec9caac Bug 1419144 - Part 15: Move PopupControlState into nsContentUtils, r=smaug
MozReview-Commit-ID: Kt2moF5nsDg
2017-11-23 13:11:34 -05:00
Nika Layzell ef26b1acf5 Bug 1419144 - Part 14: Move some debug defines to the places where they are used, r=smaug
MozReview-Commit-ID: 5SuLQZqtzJf
2017-11-23 13:11:33 -05:00
Nika Layzell fd4ef95bd2 Bug 1419144 - Part 13: Move some defines into nsGlobalWindowInner.cpp, r=smaug
MozReview-Commit-ID: C3lK4TORumy
2017-11-23 13:11:31 -05:00
Nika Layzell 7e6e4b79bc Bug 1419144 - Part 12: Move kXULControllersCID into nsGlobalWindowOuter.cpp, r=smaug
MozReview-Commit-ID: 6PNWjgE8vgq
2017-11-23 13:11:30 -05:00
Nika Layzell 99a4ce5d90 Bug 1419144 - Part 11: Remove some unused defines, r=smaug
MozReview-Commit-ID: CQI6eWIHzsT
2017-11-23 13:11:28 -05:00
Nika Layzell f59f095e67 Bug 1419144 - Part 10: Move PushPopupControlState and PopPopupControlState into nsGlobalWindowOuter.cpp, r=smaug
MozReview-Commit-ID: 7AhgZLIvcZ5
2017-11-23 13:11:26 -05:00
Nika Layzell d9b703bb40 Bug 1419144 - Part 9: Move CreateNativeGlobalForInner into nsGlobalWindowOuter.cpp, r=smaug
MozReview-Commit-ID: 9KwK7GyXZN3
2017-11-23 13:11:25 -05:00
Nika Layzell e005db891d Bug 1419144 - Part 8: Move TryGetTabChildGlobalAsEventTarget into nsContentUtils, r=smaug
MozReview-Commit-ID: 8vi1mAzmQUU
2017-11-23 13:11:23 -05:00
Nika Layzell 38a7e13386 Bug 1419144 - Part 7: Move WindowDestroyedEvent into its own file, r=smaug
MozReview-Commit-ID: HZDX84ktgiy
2017-11-23 13:11:21 -05:00
Nika Layzell 4e843da907 Bug 1419144 - Part 6: Move IsInterval into nsGlobalWindowInner.cpp, r=smaug
MozReview-Commit-ID: LRhNfAdljYJ
2017-11-23 13:11:20 -05:00
Nika Layzell 1682377162 Bug 1419144 - Part 5: Move CommandDispatcher and ChildCommandDispatcher into nsGlobalWindowOuter.cpp, r=smaug
MozReview-Commit-ID: L41gwz19vBq
2017-11-23 13:11:18 -05:00
Nika Layzell e8ccb0faa7 Bug 1419144 - Part 4: Remove RemoveIdleCallback from outer window, r=farre
MozReview-Commit-ID: KxJgYeOQPyH
2017-11-23 13:11:17 -05:00
Nika Layzell 486f00a8af Bug 1419144 - Part 3: Move pref caches into nsGlobalWindowInner where they are used, r=smaug
MozReview-Commit-ID: 1yftLoS3eo2
2017-11-23 13:11:15 -05:00
Nika Layzell 93c45cb3ef Bug 1419144 - Part 2: Remove unused gThrottledIdlePeriodLength, r=farre
MozReview-Commit-ID: GGMJC6HuCLa
2017-11-23 13:11:14 -05:00
Nika Layzell 153cad2eb5 Bug 1419144 - Part 1: Move ShouldShowFocusRingIfFocusedByMouse into nsGlobalWindowInner.cpp, r=smaug
MozReview-Commit-ID: 7m5ZJ52bkRs
2017-11-23 13:11:12 -05:00
Edgar Chen f6cde405ab Bug 1419310 - Part 2: Enqueue an attributeChanged reaction when mutating the value of an observed attribute to the same value; r=smaug
MozReview-Commit-ID: GyRL6Xt8HWt

--HG--
extra : rebase_source : 657cdf6dcad0f886f99a2e466a19cfb45c9195dc
2017-11-22 23:48:34 +08:00
Edgar Chen b3ea0a20d4 Bug 1419310 - Part 1: Remove nsContentUtils::GetElementDefinitionIfObservingAttr; r=smaug
MozReview-Commit-ID: 9yMrwDC0kYr

--HG--
extra : rebase_source : 9fb1da4986eb2af50746ae432088d3788b99570c
2017-11-23 00:09:03 +08:00
Cosmin Sabou a5d613086a Merge mozilla-inbound to mozilla-central r=merge a=merge 2017-11-23 11:42:46 +02:00
Emilio Cobos Álvarez 72a1d3ff81 Bug 1419554: Teach the restyle root code about elements outside of the flattened tree. r=heycam
The textarea is inserted under a Shadow host, with no matching insertion point,
so its flattened tree parent node is null.

We're treating this case in the restyle root code as "the parent is the
document", but that's very wrong.

MozReview-Commit-ID: JlzUMRIYaYZ

--HG--
extra : rebase_source : feeaf7a7333097aa87b35358172472790f6c74a7
2017-11-22 14:15:34 +01:00
Kris Maglione 1653b08073 Bug 1415352: Part 4c - Use subject principal as the triggering principal for inline <style> nodes. r=bz
This change captures the subject principal when a scripted caller sets the
textContent or innerHTML property of a <style> node, and uses it as the
triggering principal for the resulting stylesheet.

If the node contents are modified in any way other than through textContent or
innerHTML, the triggering principal is forgotten (which is an intentional
design feature).

MozReview-Commit-ID: GacZFIB5BzS

--HG--
extra : rebase_source : 04926f30b8e2831d18d3fb64b850f670f006eb85
2017-11-07 14:25:45 -08:00
Kris Maglione 77ae77c2c9 Bug 1415352: Part 4b - Capture the subject principal in textContent setters. r=bz
This is necessary in order to capture the correct triggering principal for
inline <style> nodes.

MozReview-Commit-ID: 7g1n3bdHVi4

--HG--
extra : rebase_source : eb84775237e662f20112f54b148ef11005746950
2017-11-07 14:01:21 -08:00
Kris Maglione 0af54ad118 Bug 1415352: Part 4a - Capture subject principal in innerHTML setters. r=bz
This is necessary in order to capture the correct triggering principal for
inline <style> nodes.

MozReview-Commit-ID: 9EaD40vRNkH

--HG--
extra : rebase_source : cdd4a730f24dc57783edcf666ae803379c0d6173
2017-11-07 13:48:58 -08:00
Kris Maglione bd57fba62b Bug 1415352: Part 2 - Exempt inline CSS from extension principals from CSP. r=bz
MozReview-Commit-ID: D0dofgOaLXZ

--HG--
extra : rebase_source : ee649c83191e64f5f0370e61a54b506f4767ac71
2017-11-05 12:19:34 -08:00
Kris Maglione 96722433e6 Bug 1415352: Part 1d - Use correct subject principal in CSS environment when modifying attr declarations. r=bz
MozReview-Commit-ID: AnurVwl65fX

--HG--
extra : rebase_source : 05d3820aab2c86b010728b5d2882a7a2e75e0617
2017-11-05 13:23:49 -08:00
Kris Maglione 9f27533bfc Bug 1415352: Part 1b - Store the subject principal when parsing style attributes. r=bz
This change stores the subject principal in the URLExtraData when parsing
style attributes, which causes it to be used as the triggering principal for
those loads rather than defaulting to the document principal.

MozReview-Commit-ID: 22tmNRRCgaj

--HG--
extra : rebase_source : d025870431a457a417523ff57bd8eac3b41d65d0
2017-11-02 13:36:14 -07:00
Kris Maglione 1c66345e09 Bug 1415352: Part 1a - Pass subject principal through to ParseAttribute. r=bz
This is necessary in order to parse style attributes using the subject
principal of the caller, rather than defaulting to the page principal.

MozReview-Commit-ID: GIshajQ28la

--HG--
extra : rebase_source : 5dba46f61d70ec647cae16383b62961ac72d2f47
2017-11-01 20:35:52 -07:00
shindli fb855aa7ba Backed out 16 changesets (bug 1402519) for conflicts during merge r=backout on a CLOSED TREE
Backed out changeset 07fcf163241a (bug 1402519)
Backed out changeset c6d2ad45d8e2 (bug 1402519)
Backed out changeset 8a3caca61294 (bug 1402519)
Backed out changeset 01425eae2c48 (bug 1402519)
Backed out changeset cf298d3815de (bug 1402519)
Backed out changeset e1964f4389cd (bug 1402519)
Backed out changeset f405337f3569 (bug 1402519)
Backed out changeset a76356fd3359 (bug 1402519)
Backed out changeset d3bb350d1c34 (bug 1402519)
Backed out changeset 9d3bfd9f932c (bug 1402519)
Backed out changeset e3dd6e5b073f (bug 1402519)
Backed out changeset e801b0c00134 (bug 1402519)
Backed out changeset 8a4139fa5dca (bug 1402519)
Backed out changeset 8d01c14ac1ca (bug 1402519)
Backed out changeset 24e0dcd01898 (bug 1402519)
Backed out changeset f8fdf450613f (bug 1402519)
2017-11-23 00:11:44 +02:00
Gabriele Svelto 0750d2d41a Bug 1402519 - Remove MOZ_CRASHREPORTER directives from dom; r=peterv
MozReview-Commit-ID: 4G2C9y6csvc

--HG--
extra : rebase_source : f0259c59c263b677a3a44751219dcb54378d72bc
2017-10-10 12:43:09 +02:00
Gabriele Svelto 13bba6b3c4 Bug 1402519 - Remove MOZ_CRASHREPORTER directives from dom; r=peterv
MozReview-Commit-ID: 4G2C9y6csvc

--HG--
extra : rebase_source : 989a11eaed6641a17ab27ae10b7fea6277cec534
2017-10-10 12:43:09 +02:00
shindli 6d2a972dfe Backed out 1 changesets (bug 1410364)
Backed out changeset 681fece780ae (bug 1410364) for failing in  /secure-contexts/basic-popup-and-iframe-tests.html r=backout a=backout on a CLOSED TREE
2017-11-22 22:17:02 +02:00
Matthew Noorenberghe f8961d0aed Bug 1020698 - Implement @autocomplete for <textarea>. r=baku
The dom.forms.autocomplete.formautofill check in nsContentUtils::InternalSerializeAutocompleteAttribute
will control if values other than "on" and "off" are supported.

MozReview-Commit-ID: 48X3OzvuOpV

--HG--
rename : dom/html/test/forms/test_input_autocomplete.html => dom/html/test/forms/test_autocomplete.html
extra : rebase_source : b759672d2e9ef3b1e63fd999d149cf753df60539
2017-11-08 21:35:04 -08:00
Kate McKinley 35c01740e5 Bug 1410364 - Don't consider opener when calculating IsSecureContext. r=bz, r=dveditz
Per https://github.com/w3c/webappsec-secure-contexts/issues/42, the
section considering the window opener when calculating secure context is
to be dropped. Firefox already uses "isSecureContextIfOpenerIgnored" in
most places as this is the actual behavior we want. This patch aligns
with the upcoming spec changes by ignoring the window opener. We also no
longer have to keep information about whether our opener was secure as
that no longer factors in our calculations.

--HG--
extra : rebase_source : 3d7fa73976571f357e84e369093aecfc10c5872e
extra : amend_source : ca86714f357b653577f3186b6312bfa00f1f45b9
2017-10-31 17:57:06 +09:00
Masayuki Nakano 0b2f749b62 Bug 1422668 - Back out changes of RangeBoundary.h which were added for EditorDOMPoint r=catalinb
EditorDOMPoint was a subclass of RangeBoundary.  Therefore, for heavy
use of it in editor, we've implemented a lot of complicated feature
into RangeBoundary.  However, EditorDOMPoint stopped inheriting
RangeBoundary.  So, we can get simple RangeBoundary implementation
back now.

This patch makes RangeBoundary.h almost same as 3f7cbec2446b except
keeps implementing GetPreviousSiblingOfChildAtOffset() and
GetNextSiblingOfChildAtOffset() because the former is used by
Selection and both of them are simple.  And also keeps making it
a friend of EditorDOMPoint because EditorDOMPoint still needs to
copy to/from RangeBoundary.

MozReview-Commit-ID: Hr5SA52ScK0

--HG--
extra : rebase_source : a00a46ff931a5c4fcabf910510fa448b513f50c5
2017-12-04 16:28:50 +09:00
Ciure Andrei c7cf019289 Merge mozilla-central to mozilla-inbound. r=merge a=merge CLOSED TREE 2017-11-22 12:20:25 +02:00
Hiroyuki Ikezoe 1646278bfe Bug 1418867 - getUnanimatedComputedStyle throws an exception for non-existent pseudo element. r=birtles
This is a prerequisite change for passing pseudo element to
Servo_StyleSet_GetBaseComputedValuesForElement which will be done in the next
commit.

MozReview-Commit-ID: HEGF2wjBGEP

--HG--
extra : rebase_source : 58d5991f3e4559c4215292ee8c48f79b38acb54a
2017-11-22 09:57:31 +09:00
Thomas Nguyen b798781037 Bug 1408347 - Add referrer policy test for link rel=preload r=ckerschb
MozReview-Commit-ID: 5tLFUm3nUe5

--HG--
extra : rebase_source : 9c72498433c5639e0350229ef3bb7dc59190d04e
2017-11-21 14:57:24 +08:00
Adam Gashlin 7404b3ac92 Bug 1369194 - Remove MozWakeLock. r=baku
--HG--
extra : histedit_source : 16cb49cbf3bf39bc2bddc721c002741cd5a953df
2017-11-20 17:14:41 -08:00
Adam Gashlin 516257bf9d Bug 1369194 - Remove navigator.requestWakeLock(). r=gsvelto, r=baku
--HG--
extra : histedit_source : b0e47d20d2064273759d387c55acf51ae749920c
2017-11-17 15:17:57 -08:00
Coroiu Cristina 9eb4f34b0a Merge mozilla-central to inbound. r=merge a=merge on a CLOSED TREE 2017-11-22 01:50:20 +02:00
Coroiu Cristina d6a2b15dbc Merge inbound to mozilla-central r=merge a=merge 2017-11-22 01:32:34 +02:00
Emilio Cobos Álvarez afbfd8a07d Bug 1419330: Make GetXBLBinding not an unconditional virtual call. r=smaug
MozReview-Commit-ID: IJB4OHsFM5v

--HG--
extra : rebase_source : 1296fe33c94e13e6cc9506df1b8067880c4ad790
2017-11-21 10:27:49 +01:00
Edgar Chen bf0a0f5b38 Bug 1415761 - Catch the exception and rethrow it after invoking custom elements reactions; r=bz
The spec was unclear on how CEReactions interact with thrown exceptions; see https://github.com/whatwg/html/issues/3217.
The spec is now being clarified in https://github.com/whatwg/html/pull/3235.

MozReview-Commit-ID: 521HprTRS7k

--HG--
extra : rebase_source : 107d331203d0d16062fa061569e822d3c6d5f2c9
2017-11-17 17:44:18 +08:00
Jesse Schwartzentruber ff2729cb15 Bug 1348028 - Implement fuzzPriv.enableAccessibility() in FuzzingFunctions r=smaug,surkov
This enables accessibility until the next GC, which is also how fuzzPriv worked.
2017-11-16 16:42:39 -05:00
Tiberius Oros 797c93d81f Merge inbound to mozilla-central r=merge a=merge 2017-11-21 11:55:23 +02:00
Nika Layzell c79cb497d1 Bug 1419090 - Remove StableStateEventTarget, r=smaug
MozReview-Commit-ID: 7dYAkp9bEGQ
2017-11-20 17:55:33 -05:00
Cosmin Sabou fdc83a94aa Merge inbound to mozilla-central r=merge a=merge 2017-11-21 00:01:02 +02:00
Jon Coppeard a06421a289 Bug 1417123 - Remove or replace inclusion of js/GCAPI.h r=mccr8 2017-11-16 12:21:08 +00:00
Brian Birtles c64d600a96 Bug 1418220 - Drop AnimationUtils::IsCoreAPIEnabled(ForCaller) and use nsContentUtils::AnimationsAPICoreEnabled / nsDocument::IsWebAnimationsEnabled instead; r=hiro
The difference between nsDocument::IsWebAnimationsEnabled and
nsContentUtils::AnimationsAPICoreEnabled is that the former checks the caller
type and treats the preference as set for system callers which is particularly
needed for enabling things like the getProperties() API for DevTools etc.

Generally in API-facing call sites we have a JS context / CallerType and so we
want to distinguish between system callers and non-system callers. However, for
a few internal uses--specifically filling-in missing keyframes--we don't care
about the caller type and always follow the pref setting.

That may or not be quite what we want, but this patch doesn't change that except
for one call site: KeyframeUtils::GetKeyframesFromObject. This patch changes
GetKeyframesFromObject from *not* checking the caller type to checking the
caller type. That seems to be the correct behavior here since this is called
from KeyframeEffectReadOnly::SetKeyframes(JSContext*, JS::Handle<JSObject*>,
ErrorResult&) (i.e. a JS API-facing call site) where we *should* enable the full
API when the caller is chrome code.

MozReview-Commit-ID: FQJBk3zytwd

--HG--
extra : rebase_source : 577bca1e551e39fecfab309f64c993eba110337f
2017-11-20 14:18:43 +09:00
Ting-Yu Lin 7326c2887e Bug 1417376 Part 2 - Pass nsPoint parameters by const references instead of references. r=mats
MozReview-Commit-ID: 6TveqwkOvc0

--HG--
extra : rebase_source : d4674181a6198279bedbfc2efe4e0b1715c91d51
2017-11-15 18:26:10 +08:00
Ting-Yu Lin 34d8925cd4 Bug 1417376 Part 1 - Change nsPoint parameter to pass by value for DoAutoScroll(). r=mats
This private method DoAutoScroll() modifies aPoint inside of it, and none of
other callers (StartAutoScrollTimer() and nsAutoScrollTimer::Notify()) read
aPoint afterwards, so we make aPoint pass by value rather than pass by
non-const-reference. This is necessary for later parts.

MozReview-Commit-ID: 9PtxFXIka7X

--HG--
extra : rebase_source : 3bd47f071b3cecdc439ebc3b56c6a4f7ef56eff8
2017-11-16 10:32:22 +08:00
Olli Pettay cc862266e9 Bug 1416450, ensure IntersectionObservers are deleted when adopting elements, r=mrbkap
--HG--
extra : rebase_source : c8c1300c4d1333c3b37725e1d8b31464cd3b30a7
2017-11-19 16:22:54 +02:00
Jan de Mooij d66dc34955 Bug 1417895 part 1 - Move ParseJavascriptVersion from nsContentUtils to ScriptLoader.cpp. r=bz 2017-11-18 23:16:05 +01:00
Tooru Fujisawa 4ac42f3d2f Bug 1416250 - Remove conditional catch consumers in dom/. r=billm 2017-11-18 22:57:17 +09:00
Noemi Erli d96f41a437 Merge inbound to mozilla-central r=merge a=merge 2017-11-18 00:01:46 +02:00
Jan de Mooij 7f30bf48a7 Bug 1417844 part 2 - Remove JSVersion from CompileOptions, CompartmentBehaviors, scripts. r=evilpie 2017-11-17 12:12:39 +01:00
Ciure Andrei 92d28bd8f2 Merge inbound to mozilla-central r=merge a=merge 2017-11-17 11:59:03 +02:00
John Dai a710f595fa Bug 1406325 - Part 5: Implement try to upgrade. f=echen, r=smaug 2017-11-14 19:25:00 +08:00
John Dai d1400ac8b1 Bug 1406325 - Part 4: Use mType for LookupCustomElementDefinition and also removing parts of v0. f=echen, r=smaug 2017-11-14 19:23:00 +08:00
John Dai 2319f825df Bug 1406325 - Part 3: Refactor custom elements clone a node. f=echen, r=smaug 2017-11-14 20:01:00 +08:00
John Dai cf62df4869 Bug 1406325 - Part 2: Set CustomElementData when cloning a node. f=echen, r=smaug 2017-11-03 02:52:00 +08:00
John Dai 4a4005281a Bug 1406325 - Part 1: Make sure custom element state is custom before sending callback. f=echen, r=smaug 2017-11-03 02:52:00 +08:00
Csoregi Natalia 635fe8c86f Backed out 4 changesets (bug 1417123) for failing Spidermonkey builds js/src/jspubtd.h:100 r=backout
Backed out changeset 5af31f9f6bb5 (bug 1417123)
Backed out changeset f287a77b84c2 (bug 1417123)
Backed out changeset 57be86412a37 (bug 1417123)
Backed out changeset 14a6856d7361 (bug 1417123)
2017-11-16 15:05:54 +02:00
Jon Coppeard 853c90510c Bug 1417123 - Remove or replace inclusion of js/GCAPI.h r=mccr8 2017-11-16 12:21:08 +00:00
Andrea Marchesini 97baa05333 Bug 1398229 - Save-link-as feature should use the loading principal - part 3 - implementation of nsIContentPolicy.TYPE_SAVE_AS_DOWNLOAD, r=ckerschb, r=tanvi 2017-11-16 12:27:01 +01:00
Emilio Cobos Álvarez f98054e952 Backed out changeset 9418c23dfdba (bug 1414999) for asserting in layout/reftests/generated-content/display-types-01.html, even though I can't reproduce it. r=me
MozReview-Commit-ID: A5gYlHivHTa
2017-11-16 05:56:16 +01:00
Emilio Cobos Álvarez 90bcf3fcca Bug 1414999: Synchronously clean style data from the DOM tree when the shell goes away. r=bz
There's nothing preventing the flat tree from changing while the document
doesn't have a shell. In that case, we really really don't want to lose track
of elements with stale style data, since then we'll mess up.

It's ok to _not_ clear the style data when the document goes into the BFCache
though, because the document is thrown away if other document runs script and
touches the cached DOM.

MozReview-Commit-ID: 4W3xDAnnLPL
2017-11-16 04:42:39 +01:00
Brindusan Cristian ba41ed32e0 Backed out changeset d4fa112c3acd (bug 1414999) for mochitest plain headless failures on build/build/src/dom/base/nsDocument.cpp on a CLOSED TREE 2017-11-16 00:47:11 +02:00
arthur.iakab cb136d6136 Backed out changeset ed0cc9f86583::b6b642efbb74 (bug 1396620) for static failure at dom/base/CustomElementRegistry.cpp r=backout on a CLOSED TREE
Backed out changeset b6b642efbb74 (bug 1396620)
Backed out changeset ed0cc9f86583 (bug 1396620)
2017-11-17 01:22:14 +02:00
Andrew McCreight c1683b8743 Bug 1360310 - Make ghost window reporter use tab groups instead of eTLD. r=bz
A ghost window is a window that is:
a) detached
b) we think it should have gone away
c) it has been in that state for a while

Right now, criterion b holds if the detached window does not have the
same eTLD as any window that is not detached. However, this can cause
false positives when a page leaks a cross-origin iframe.

This patch changes criterion b to be that it holds if the window is
not in the same tab group as any non-detached window. This should
match better with the goal of ghost windows, which is to identify when
pages don't go away after their tab is closed.

MozReview-Commit-ID: GG8d0WkXDUt

--HG--
extra : rebase_source : a9464b91bf565e2fe46062b4ce3b591b10e38f25
2017-11-08 09:48:54 -08:00
Jason Orendorff c1e592121a Bug 1388317 - Remove support for E4X `for each` loop. r=evilpie.
--HG--
extra : rebase_source : 7cfd20e02812068bd464e2889c50557bbd35fea5
2017-10-20 17:50:32 -04:00
Emilio Cobos Álvarez 717240ae97 Bug 1414999: Synchronously clean style data from the DOM tree when the shell goes away. r=bz
There's nothing preventing the flat tree from changing while the document
doesn't have a shell. In that case, we really really don't want to lose track
of elements with stale style data, since then we'll mess up.

It's ok to _not_ clear the style data when the document goes into the BFCache
though, because the document is thrown away if other document runs script and
touches the cached DOM.

MozReview-Commit-ID: 4W3xDAnnLPL
2017-11-15 21:59:40 +01:00
Emilio Cobos Álvarez 981470d0c2 Bug 1415013: Clear servo data on flattened tree changes. r=bz
MozReview-Commit-ID: 3TsM8tbzPMV
2017-11-15 19:50:22 +01:00
Sebastian Hengst 6c1d6be6fb Backed out 3 changesets (bug 1398229) for failing own browser-chrome browser/components/contextualidentity/test/browser/browser_saveLink.js. r=backout on a CLOSED TREE
Backed out changeset 5b3b0a38b2d1 (bug 1398229)
Backed out changeset a726fc7506ca (bug 1398229)
Backed out changeset 53dae7764e58 (bug 1398229)
2017-11-15 20:49:09 +02:00
Nika Layzell 640a992085 Bug 1416384 - Part 9: Deduplicate more code when possible, r=smaug
MozReview-Commit-ID: 1mzNDOFUNep

--HG--
extra : rebase_source : 0d8f5fa959aaae39c1fdcc0c025905a7a7bbb931
2017-11-15 11:34:47 -05:00
Nika Layzell 44c8bde2d0 Bug 1416384 - Part 8: Stylistic fixes in nsGlobalWindow{Inner,Outer}.cpp, r=smaug
MozReview-Commit-ID: KDllmZzdn6m

--HG--
extra : rebase_source : 374baf211a289c36d2b42d009dd325432cfafb61
2017-11-15 11:34:41 -05:00
Nika Layzell 4f66908aed Bug 1416384 - Part 7: Move nsPIDOMWindow{Inner,Outer}::TabGroup into their respective cpps, r=smaug
MozReview-Commit-ID: AZMWwKFnvG9

--HG--
extra : rebase_source : 6d4cc4f5af7e244c54972aa1afeeb81f98b0c5cb
2017-11-15 11:34:33 -05:00
Nika Layzell b4d99baba8 Bug 1416384 - Part 6: Eliminate calls to Assert{Inner,Outer} and As{Inner,Outer} in nsGlobalWindow, r=smaug
MozReview-Commit-ID: GIiSlDzjgWb

--HG--
extra : rebase_source : e21578e4056b1f3000ef320d2c380fd9889ca9eb
2017-11-15 11:34:27 -05:00
Nika Layzell 7d62404270 Bug 1416384 - Part 5: Eliminate inner window only methods from nsGlobalWindowOuter, r=smaug
MozReview-Commit-ID: FzaGKmdDtmy

--HG--
extra : rebase_source : 14613fff864493523fd546b75991a63b92fa169a
2017-11-15 11:34:20 -05:00
Nika Layzell f0e713f349 Bug 1416384 - Part 4: Eliminate outer window only methods from nsGlobalWindowInner, r=smaug
MozReview-Commit-ID: CV6rrA0M2ZV

--HG--
extra : rebase_source : 2dbd420d97c99715324633f98345eb13d12e0114
2017-11-15 11:34:13 -05:00
Nika Layzell 842c5cbb02 Bug 1416384 - Part 3: Remove nsPIDOMWindow<nsISupports>, r=smaug
This was needed before as the base to nsGlobalWindow, but now that
nsGlobalWindow doesn't exist, and we only have specific versions, we no longer
need this type.

MozReview-Commit-ID: 6IJmJtnSkMr

--HG--
extra : rebase_source : d21068aa7da89a6d49ead2477b91577809f5856a
2017-11-15 11:34:04 -05:00
Nika Layzell a63b1e0ebd Bug 1416384 - Part 2e: Eliminate duplicate declarations, and get gecko building again, r=smaug
There are many helper methods and structs in nsGlobalWindow.cpp. Many of these
are used by only the inner or only the outer window, while some are used by
both. In the case of the items used by both, I extracted them into
nsGlobalWindow.cpp, which includes nsGlobalWindowInner.cpp and
nsGlobalWindowOuter.cpp as the compilation unit entry point.

In the case of items used by just one or the other, I removed them from the
other file, and deleted the bodies of functions which used them, replacing them,
with a MOZ_CRASH.

This gets gecko building again, so that we can make further incremental
improvements.

MozReview-Commit-ID: 8QnJ1PX6TAO

--HG--
extra : rebase_source : 0eac00ad757f825a22a1af95d0a01d6fa92d824d
2017-11-15 11:33:58 -05:00
Nika Layzell 5c9be297c1 Bug 1416384 - Part 2d: Get nsGlobalWindowOuter.cpp building, r=smaug
MozReview-Commit-ID: 4Yz8hRMZEJC

--HG--
extra : rebase_source : 9edb91316b60db44034e0a24a14c60877e08a064
2017-11-15 11:33:51 -05:00
Nika Layzell dfe521f9b8 Bug 1416384 - Part 2c: Get nsGlobalWindowInner.cpp building, r=smaug
MozReview-Commit-ID: CmKx5jtvtrT

--HG--
extra : rebase_source : b1c5fe7c140a743d55c462b6d2bcbf8a97950d9c
2017-11-15 11:33:39 -05:00
Nika Layzell 995525e901 Bug 1416384 - Part 2b: Get split headers building but not linking, r=smaug
MozReview-Commit-ID: JRvPtQTJqSX

--HG--
extra : rebase_source : d80d2cd93c0ad629b92b7b67af664a2ccbbc3658
2017-11-15 11:33:29 -05:00
nika@thelayzells.com e261bf7e28 Bug 1416384 - Part 2a: Delete nsGlobalWindow.{h,cpp}, r=smaug
--HG--
extra : rebase_source : 00e4286187c8c32de094ce10c9ec709f6e5c56a8
2017-11-15 11:31:37 -05:00
nika@thelayzells.com 7c4791021a Bug 1416384 - Part 1: Copy nsGlobalWindow.{h,cpp} to nsGlobalWindow{Inner,Outer}.{h,cpp}, r=smaug
--HG--
rename : dom/base/nsGlobalWindow.cpp => dom/base/nsGlobalWindowInner.cpp
rename : dom/base/nsGlobalWindow.h => dom/base/nsGlobalWindowInner.h
rename : dom/base/nsGlobalWindow.cpp => dom/base/nsGlobalWindowOuter.cpp
rename : dom/base/nsGlobalWindow.h => dom/base/nsGlobalWindowOuter.h
extra : rebase_source : e29e0abbbc4898b9d50c05c68ada2f1561678cd1
2017-11-15 11:30:13 -05:00
Andrea Marchesini 11eefa61bb Bug 1398229 - Save-link-as feature should use the loading principal - part 3 - implementation of nsIContentPolicy.TYPE_SAVE_AS_DOWNLOAD, r=ckerschb 2017-11-15 18:16:29 +01:00
Nika Layzell 5c65681cb0 Bug 1415645 - Part 5: Fix some more consumers of nsGlobalWindow which I missed, r=smaug
MozReview-Commit-ID: DvMH4cVw5NK
2017-11-15 11:21:57 -05:00
Nika Layzell 53984f3179 Bug 1415645 - Part 4: Modify some shared runnables to not refer directly to nsGlobalWindow, r=smaug
MozReview-Commit-ID: ANdBkuhZ2xx
2017-11-15 11:21:57 -05:00
Nika Layzell ebef6b11ea Bug 1415645 - Part 3: Don't cast to nsGlobalWindow when working with the inner window linked list, r=smaug
After the window split is complete, the inner window linked list won't be
homogenously typed anymore, as there will be an nsGlobalWindowOuter member in
addition to the nsGlobalWindowInner members. This patch changes the code to
perform PRCList* pointer comparisons before casting to nsGlobalWindowInner to
avoid this issue.

MozReview-Commit-ID: 56q5XodtGe7
2017-11-15 11:21:56 -05:00
Nika Layzell 9496a4e732 Bug 1415645 - Part 2: Make CleanupCachedXBLHandlers a instance method, r=smaug
This will make the split easier, as this method is used by both
nsGlobalWindowInner and nsGlobalWindowOuter.

MozReview-Commit-ID: FsjK4y6x7NE
2017-11-15 11:21:56 -05:00
Nika Layzell dd3f8f79f8 Bug 1415645 - Part 1: Make nsGlobalWindow.cpp use the specific {Inner,Outer} variants in more places internally, r=smaug
MozReview-Commit-ID: LsgjJTbuH3L
2017-11-15 11:21:56 -05:00
Jonathan Watt 62787012f8 Bug 1417365 - Unified build issues in dom/base. r=baku 2017-10-26 10:40:12 +01:00
Noemi Erli f24a75f9b7 Merge mozilla-central to mozilla-inbound. r=merge a=merge CLOSED TREE 2017-11-15 12:15:40 +02:00
Andrea Marchesini 73712f7d05 Bug 1405290 - Improve logging of workers when shutting down - part 3 - WorkerHolder with names, r=asuth 2017-11-15 07:58:38 +01:00
btara 986d32eb92 Merge mozilla-central to autoland r=merge a=merge on a CLOSED TREE 2017-11-14 22:40:50 +02:00
Jon Coppeard 757573b0fe Bug 1417077 - Make JSTracer provide the current GC number and use this in nsXULPrototypeDocument::TraceProtos() r=sfink r=mccr8 2017-11-14 17:10:30 +00:00
Coroiu Cristina 6a04305b5d Merge mozilla-central to inbound. r=merge a=merge on a CLOSED TREE 2017-11-14 12:31:45 +02:00
Boris Zbarsky 5d7760ed1c Bug 1414935. Hide window.print entirely when it's disabled by pref. r=mystor
MozReview-Commit-ID: ArDw85eQYeh
2017-11-13 10:38:50 -05:00
Csoregi Natalia 8f1a81caad Merge inbound to mozilla-central r=merge a=merge 2017-11-14 00:57:47 +02:00
Emilio Cobos Álvarez f52846b518 Bug 1408308: Integrate Servo SourceSizeList in ResponsiveImageSelector. r=Manishearth
MozReview-Commit-ID: DMVfE56DyYm
2017-11-13 13:39:30 +01:00
Ting-Yu Lin dfca359d6e Bug 1416699 - Add a space between #include and comment. r=jeremychen
Skip files under intl/icu/ because they're imported from third party.

DONTBUILD because this is a whitespace-only change.

MozReview-Commit-ID: GSd6oeFSTO7

--HG--
extra : rebase_source : 38c20bf6099c18b2fcb4c324d470b279addf8891
2017-11-13 17:54:18 +08:00
Sebastian Hengst 49423f5e99 Backed out changeset b9aa0fc4f179 (bug 1414935) for failing mochitest test_bug739038.html. r=backout on a CLOSED TREE 2017-11-13 20:11:00 +02:00
Boris Zbarsky 87c6b14c1a Bug 1415677 part 6. Remove nsIDOMHTMLCollection. r=qdot
MozReview-Commit-ID: E8P9o0bv63L
2017-11-13 10:41:33 -05:00
Boris Zbarsky 5be514f68b Bug 1415677 part 3. Remove nsIDOMHTMLCollection::GetLength. r=qdot
MozReview-Commit-ID: H9rdYf47WV
2017-11-13 10:39:06 -05:00
Boris Zbarsky ee1bca0ce2 Bug 1415677 part 2. Remove nsIDOMHTMLCollection::Item. r=qdot
MozReview-Commit-ID: AQUjBQhXLHE
2017-11-13 10:39:02 -05:00
Boris Zbarsky 76943406f3 Bug 1415677 part 1. Remove nsIDOMHTMLCollection::NamedItem. r=qdot
MozReview-Commit-ID: EppP6KSYSn6
2017-11-13 10:38:59 -05:00
Boris Zbarsky f20476fcb6 Bug 1414935. Hide window.print entirely when it's disabled by pref. r=mystor
MozReview-Commit-ID: ArDw85eQYeh
2017-11-13 10:38:50 -05:00
Chris Peterson edb82b8131 Bug 1416164 - Replace NS_POSTCONDITION with MOZ_ASSERT. r=froydnj
MozReview-Commit-ID: 9K3Ksf36uxr

--HG--
extra : rebase_source : c5574794ae0e0ce5e756bdbcc2601896d6916002
2017-11-04 22:48:48 -07:00
Chris Peterson feb58d9d37 Bug 1416164 - Replace NS_NOTYETIMPLEMENTED with MOZ_ASSERT_UNREACHABLE. r=froydnj
MozReview-Commit-ID: B5TZB3v52wY

--HG--
extra : rebase_source : 56bef4eead24901191f190e31d2841710097cdcf
2017-10-25 00:37:02 -07:00
Chris Peterson 0e8425b401 Bug 1416164 - Replace NS_ABORT with MOZ_ASSERT_UNREACHABLE. r=froydnj
MozReview-Commit-ID: DRdYlOYqZpN

--HG--
extra : rebase_source : b20fb24abf0f2ce648c12a827532c0dbeefb6c63
2017-10-24 23:52:56 -07:00
Edgar Chen 8fd61b0fa1 Bug 1396620 - Part 2: Fix compartment mismatch crash when doing old prototype swizzling for custom element; r=smaug
MozReview-Commit-ID: GMxikyKJ54A

--HG--
extra : rebase_source : c5eda986dc36b14a9ddc3e8aeb1fcec92458c919
2017-10-16 10:14:56 +08:00
Edgar Chen 6d7d215d0e Bug 1396620 - Part 2: Fix compartment mismatch crash when doing old prototype swizzling for custom element; r=smaug
MozReview-Commit-ID: GMxikyKJ54A

--HG--
extra : rebase_source : 594ab2727e085e4b1e81d2ed5915b230b7c96365
2017-10-16 10:14:56 +08:00
Emilio Cobos Álvarez 02c0028d6e Bug 1418560: Properly return null from GetFlattenedTreeParent if the node is XBL fallback content and the binding is active. r=heycam
Otherwise we may inappropriately style it or what not. This asserts with the
patches of bug 1414999 plus the cleanup of bug 1418456, since we no longer do
StyleNewChildren (which walks over the flattened tree children).

Too bad that GetXBLBinding is a virtual call in Gecko, probably can do just
MAY_BE_IN_BINDING_MGR...

MozReview-Commit-ID: CNU0YdKeaR0
2017-11-20 17:32:07 +01:00
Gijs Kruitbosch 59ffe6e6ca Bug 1408044 - fix miscellaneous tests that depended on about: existing, r=dao
MozReview-Commit-ID: EKsaFbRoBc4

--HG--
extra : rebase_source : 3c22ed909437a7fa98e2126b4eb8b9c669f98173
2017-11-15 17:19:33 +00:00
Noemi Erli e90c67896c Backed out 3 changesets (bug 1406253)for build bustage in dom/base/nsCopySupport.cpp r=backout on a CLOSED TREE
Backed out changeset 284f3cc2880c (bug 1406253)
Backed out changeset aecb3d509a39 (bug 1406253)
Backed out changeset 9ce01198e8a1 (bug 1406253)
2017-11-20 13:34:29 +02:00
Samael Wang 9a66d9924f Bug 1406253 - Part 2: Implement nsIImageLoadingContent.currentRequestFinalURI. r=bz
ImageLoadingContent.currentURI returns the "URI" of currentRequest, which is
the URI used to start that request.  Some consumers need to know the final URI
of that request instead.

If the image request gets redirected on loading (e.g. an add-on intercepts the
request), currentRequestFinalURI will be the redirected URI, while currentURI
would be the original URI before redirect.

MozReview-Commit-ID: 9lX063uAIp1

--HG--
extra : rebase_source : 6e9752b4df52e3874815557fe727c3fe94af2902
2017-11-14 18:20:03 +08:00
Edgar Chen fd6b408209 Bug 1396620 - Part 1: Remove created callback for custom elements; r=jdai,smaug
MozReview-Commit-ID: IDovq3OZwgy

--HG--
extra : rebase_source : 34b67e07a7e15af815c6921a41272ee0fddfb93d
2017-10-13 23:36:54 +08:00
Edgar Chen 698fdbc62e Bug 1396620 - Part 1: Remove created callback for custom elements; r=jdai,smaug
MozReview-Commit-ID: IDovq3OZwgy

--HG--
extra : rebase_source : bae891833d4f8139fed2ed31af85173694c7eb11
2017-10-13 23:36:54 +08:00
Timothy Guan-tin Chien 50b6ef9242 Bug 1327097, Part I, Revert bug 1338961, r=smaug
This reverts commit 2b7c469d42bbb4a61471207eede26a8d27f084a3.

MozReview-Commit-ID: H07u9I5w80N

--HG--
extra : rebase_source : 3413d583fc39c881cdc8ebabcec37325d770a36c
2017-11-07 11:30:06 +08:00
Ciure Andrei a8907fc95a Backed out 5 changesets (bug 1408044) for failing Android test: TestAboutPagesPreparer.java:24: cannot find symbol. r=backout on a CLOSED TREE
Backed out changeset 5c5152ad910d (bug 1408044)
Backed out changeset c9a062838c12 (bug 1408044)
Backed out changeset 9ceaa645f2a9 (bug 1408044)
Backed out changeset 10fc0a581606 (bug 1408044)
Backed out changeset 513140019014 (bug 1408044)
2017-11-17 12:19:30 +02:00
Ciure Andrei fdbe147ffb Merge mozilla-central to autoland. r=merge a=merge CLOSED TREE 2017-11-17 12:09:31 +02:00
Gijs Kruitbosch 03f7acbb5c Bug 1408044 - fix miscellaneous tests that depended on about: existing, r=dao
MozReview-Commit-ID: EKsaFbRoBc4

--HG--
extra : rebase_source : 36497c95be10e307805a304e811a5b7a6bebebce
2017-11-15 17:19:33 +00:00
Samael Wang 9d2c8ac38e Bug 1406253 - Part 2: Implement nsIImageLoadingContent.currentRequestFinalURI. r=bz
ImageLoadingContent.currentURI returns the "URI" of currentRequest, which is
the URI used to start that request.  Some consumers need to know the final URI
of that request instead.

If the image request gets redirected on loading (e.g. an add-on intercepts the
request), currentRequestFinalURI will be the redirected URI, while currentURI
would be the original URI before redirect.

MozReview-Commit-ID: 9lX063uAIp1

--HG--
extra : rebase_source : 91451128abc5c3f29c11d3cabfc98cde6c440ea6
2017-11-14 18:20:03 +08:00
Samael Wang 326d642792 Bug 1406253 - Part 1: Rename imgIRequest.currentURI to finalURI to prevent confusion. r=bz
The "current URL" in the spec:
https://html.spec.whatwg.org/multipage/embedded-content.html#dom-img-currentsrc
maps to imgIRequest.URI, not currentURI.

Rename imgIRequest.currentURI to finalURI to prevent such confusion.

MozReview-Commit-ID: CjBh2V4z8K9

--HG--
extra : rebase_source : 01277d16ef12845e12cc846f9dd4a21ceeca283b
2017-11-13 16:31:24 +08:00
Hiroyuki Ikezoe b95b10c42e Bug 1419221 - Introduce a new argument for getUnanimatedComputedStyle to be able to flush pending styles. r=birtles
Even with this patch, in Gecko getUnanimatedComputedStyle flushes pendings
styles somehow.  Also in Stylo the function flushes pending styles if the
target element hasn't yet styled or Servo style data has cleared for some
reasons (e.g. the element is in display:none subtree).

MozReview-Commit-ID: HCizzM0JnFz

--HG--
extra : rebase_source : 81f130f35794d6ddcf6b7e7f70566d521ea63d31
2017-11-21 18:03:17 +09:00
Hiroyuki Ikezoe 255ae7a75c Bug 1419221 - Generate target pseudo element before calling getUnanimatedComputedStyle for the pseudo element. r=birtles
Before this patch, 'content: ""' was applied to the ::before element after
calling getUnanimatedComputedStyle() with '::before' argument so the function
was called for inexistent pseudo element.
Gecko generates ::before and ::after element even if the content property for
the element is none (bug 1387931), so Gecko is not affected by this patch at
all.  Whereas Stylo has returned the parent style as the pseudo style for the
inexistent pseudo, it will be fixed by bug 1418867 and a test case will be
added in that bug since SimpleTest does not have todo for doesThrow().

MozReview-Commit-ID: 7uJcCrtu9ke

--HG--
extra : rebase_source : 96f3d1428323e8a7d96b0dee3e7256360251e555
2017-11-21 13:51:53 +09:00
Hiroyuki Ikezoe 41c3c98b63 Bug 1419221 - Create element for the target of getUnanimatedComputedStyle(). r=birtles
Before this patch, we had been only testing the null element case.

MozReview-Commit-ID: DYB8DtGBIwC

--HG--
extra : rebase_source : c0b8774f795c64b6d525820e6737ed3beed2dda0
2017-11-21 13:51:53 +09:00
Alastor Wu 3a54b06eb3 Bug 1415444 - part2 : add log. r=smaug
MozReview-Commit-ID: KFB3HiPuWeo

--HG--
extra : rebase_source : 80661ec9a176238fc965bacd08b43cbb09a121a4
2017-11-14 14:48:23 +08:00
Alastor Wu 00c469c134 Bug 1415444 - part1 : add flag to record whether the document has been activated by specific user gestures. r=smaug
This flag would be used to help us decide whether website could be allowed the autoplay.
The media related implementation would be implemented in bug1382574.

MozReview-Commit-ID: GGIauBufs5A

--HG--
extra : rebase_source : c407ceed311fc3fb0140e5da44fd69e457a5098f
2017-11-14 14:48:18 +08:00
Ben Kelly 9af975dbfd Bug 1419536 P4 Allow ClientSource objects to be frozen while in bfcache. r=baku 2017-11-21 15:13:05 -05:00
Ben Kelly 3935375a57 Bug 1419536 P3 Handle creating and activating the ClientSource in nsDocShell and nsGlobalWindow. r=baku r=freesamael 2017-11-21 15:13:05 -05:00
Margareta Eliza Balazs 85280dc48c Backed out 1 changesets (bug 1408308) for bustage in [toolkit/library/target] r=backout on a CLOSED TREE
Backed out changeset b59ffea83e0a (bug 1408308)
2017-11-13 07:23:52 +02:00
Emilio Cobos Álvarez 58aae7a733 Bug 1408308: Integrate Servo SourceSizeList in ResponsiveImageSelector. r=Manishearth
This needs to dumb down the parsing in order to match what we do in Gecko and
pass more tests.

The remaining tests are just because of calc() in media queries and "or" media
expressions.

MozReview-Commit-ID: CXGdYVbojBL
2017-11-13 05:18:36 +01:00
Emilio Cobos Álvarez f9b153f761 Bug 1416564: Remove mozmm CSS unit. r=heycam
MozReview-Commit-ID: AU4CUq09tw4
2017-11-14 16:14:17 +01:00
Brad Werth f6f94ad8e2 Bug 1414920 Part 2: Add test of getElementsWithGrid. r=dholbert
MozReview-Commit-ID: GwBlW6Qw3NZ

--HG--
extra : rebase_source : 2de3a02f48fd994dfb8e1ad9beb9d895682b9c7d
2017-10-31 13:53:40 -07:00
Brad Werth c9815751c2 Bug 1414920 Part 1: Add chrome-only API getElementsWithGrid(), for devtools. r=dholbert,smaug
MozReview-Commit-ID: L44Q95wEqDA

--HG--
extra : rebase_source : d3892120516b30b1ee090ed7b9f5a108313d0532
2017-10-31 12:05:02 -07:00
Brindusan Cristian 9bd6ed7630 Merge mozilla-central to autoland. r=merge a=merge on a CLOSED TREE
--HG--
extra : amend_source : 4c68fb1a967a7c1b64e9779851573eb29a412908
2017-11-21 00:24:13 +02:00
Emilio Cobos Álvarez ebfcd1dbd3 Bug 1414999: Synchronously clean style data from the DOM tree when the shell goes away. r=bz
There's nothing preventing the flat tree from changing while the document
doesn't have a shell. In that case, we really really don't want to lose track
of elements with stale style data, since then we'll mess up.

It's ok to _not_ clear the style data when the document goes into the BFCache
though, because the document is thrown away if other document runs script and
touches the cached DOM.

MozReview-Commit-ID: 4W3xDAnnLPL
2017-11-20 22:11:23 +01:00
Andreas Pehrson 167e43c316 Bug 1208378 - Implement MediaStreamTrack's muted state and events. r=jib,smaug
MozReview-Commit-ID: 1Sp9utMnWXI

--HG--
extra : rebase_source : f2d1036ab37ed9882c0bb9aa1d7b7d68eb7799e4
2017-11-06 19:03:52 +01:00
Boris Zbarsky 723521145b Bug 1418558 part 1. Add MOZ_CAN_RUN_SCRIPT annotations to most Element methods that call GetPrimaryFrame. r=mystor
MozReview-Commit-ID: LWI1p75EyxB
2017-12-05 11:18:16 -05:00
Ryan VanderMeulen b16410f51c Merge inbound to m-c. a=merge 2017-11-10 16:13:15 -05:00
Andrea Marchesini 3794888bc4 Bug 1416151 - Moving websocket code and tests in dom/websocket, r=qdot
--HG--
rename : dom/base/WebSocket.cpp => dom/websocket/WebSocket.cpp
rename : dom/base/WebSocket.h => dom/websocket/WebSocket.h
rename : dom/base/test/file_bug1384658.html => dom/websocket/tests/file_bug1384658.html
rename : dom/base/test/file_websocket_basic_wsh.py => dom/websocket/tests/file_websocket_basic_wsh.py
rename : dom/base/test/file_websocket_bigBlob_wsh.py => dom/websocket/tests/file_websocket_bigBlob_wsh.py
rename : dom/base/test/file_websocket_hello_wsh.py => dom/websocket/tests/file_websocket_hello_wsh.py
rename : dom/base/test/file_websocket_http_resource.txt => dom/websocket/tests/file_websocket_http_resource.txt
rename : dom/base/test/file_websocket_permessage_deflate_disabled_wsh.py => dom/websocket/tests/file_websocket_permessage_deflate_disabled_wsh.py
rename : dom/base/test/file_websocket_permessage_deflate_params_wsh.py => dom/websocket/tests/file_websocket_permessage_deflate_params_wsh.py
rename : dom/base/test/file_websocket_permessage_deflate_rejected_wsh.py => dom/websocket/tests/file_websocket_permessage_deflate_rejected_wsh.py
rename : dom/base/test/file_websocket_permessage_deflate_wsh.py => dom/websocket/tests/file_websocket_permessage_deflate_wsh.py
rename : dom/base/test/file_websocket_wsh.py => dom/websocket/tests/file_websocket_wsh.py
rename : dom/base/test/frame_bug1384658.html => dom/websocket/tests/frame_bug1384658.html
rename : dom/base/test/iframe_webSocket_sandbox.html => dom/websocket/tests/iframe_webSocket_sandbox.html
rename : dom/base/test/test_bug1081686.html => dom/websocket/tests/test_bug1081686.html
rename : dom/base/test/test_bug1384658.html => dom/websocket/tests/test_bug1384658.html
rename : dom/base/test/test_webSocket_sandbox.html => dom/websocket/tests/test_webSocket_sandbox.html
rename : dom/workers/test/test_webSocket_sharedWorker.html => dom/websocket/tests/test_webSocket_sharedWorker.html
rename : dom/base/test/test_websocket1.html => dom/websocket/tests/test_websocket1.html
rename : dom/base/test/test_websocket2.html => dom/websocket/tests/test_websocket2.html
rename : dom/base/test/test_websocket3.html => dom/websocket/tests/test_websocket3.html
rename : dom/base/test/test_websocket4.html => dom/websocket/tests/test_websocket4.html
rename : dom/base/test/test_websocket5.html => dom/websocket/tests/test_websocket5.html
rename : dom/base/test/test_websocket_basic.html => dom/websocket/tests/test_websocket_basic.html
rename : dom/base/test/test_websocket_bigBlob.html => dom/websocket/tests/test_websocket_bigBlob.html
rename : dom/base/test/test_websocket_frame.html => dom/websocket/tests/test_websocket_frame.html
rename : dom/base/test/test_websocket_hello.html => dom/websocket/tests/test_websocket_hello.html
rename : dom/base/test/test_websocket_permessage_deflate.html => dom/websocket/tests/test_websocket_permessage_deflate.html
rename : dom/workers/test/test_websocket1.html => dom/websocket/tests/test_worker_websocket1.html
rename : dom/workers/test/test_websocket2.html => dom/websocket/tests/test_worker_websocket2.html
rename : dom/workers/test/test_websocket3.html => dom/websocket/tests/test_worker_websocket3.html
rename : dom/workers/test/test_websocket4.html => dom/websocket/tests/test_worker_websocket4.html
rename : dom/workers/test/test_websocket5.html => dom/websocket/tests/test_worker_websocket5.html
rename : dom/workers/test/test_websocket_basic.html => dom/websocket/tests/test_worker_websocket_basic.html
rename : dom/workers/test/test_websocket_https.html => dom/websocket/tests/test_worker_websocket_https.html
rename : dom/workers/test/test_websocket_loadgroup.html => dom/websocket/tests/test_worker_websocket_loadgroup.html
rename : dom/workers/test/webSocket_sharedWorker.js => dom/websocket/tests/webSocket_sharedWorker.js
rename : dom/workers/test/websocket_basic_worker.js => dom/websocket/tests/websocket_basic_worker.js
rename : dom/base/test/websocket_helpers.js => dom/websocket/tests/websocket_helpers.js
rename : dom/workers/test/websocket_https_worker.js => dom/websocket/tests/websocket_https_worker.js
rename : dom/base/test/websocket_hybi/file_binary-frames_wsh.py => dom/websocket/tests/websocket_hybi/file_binary-frames_wsh.py
rename : dom/base/test/websocket_hybi/file_check-binary-messages_wsh.py => dom/websocket/tests/websocket_hybi/file_check-binary-messages_wsh.py
rename : dom/base/test/websocket_hybi/mochitest.ini => dom/websocket/tests/websocket_hybi/mochitest.ini
rename : dom/base/test/websocket_hybi/test_receive-arraybuffer.html => dom/websocket/tests/websocket_hybi/test_receive-arraybuffer.html
rename : dom/base/test/websocket_hybi/test_receive-blob.html => dom/websocket/tests/websocket_hybi/test_receive-blob.html
rename : dom/base/test/websocket_hybi/test_send-arraybuffer.html => dom/websocket/tests/websocket_hybi/test_send-arraybuffer.html
rename : dom/base/test/websocket_hybi/test_send-blob.html => dom/websocket/tests/websocket_hybi/test_send-blob.html
rename : dom/workers/test/websocket_loadgroup_worker.js => dom/websocket/tests/websocket_loadgroup_worker.js
rename : dom/base/test/websocket_tests.js => dom/websocket/tests/websocket_tests.js
rename : dom/workers/test/websocket_worker1.js => dom/websocket/tests/websocket_worker1.js
rename : dom/workers/test/websocket_worker2.js => dom/websocket/tests/websocket_worker2.js
rename : dom/workers/test/websocket_worker3.js => dom/websocket/tests/websocket_worker3.js
rename : dom/workers/test/websocket_worker4.js => dom/websocket/tests/websocket_worker4.js
rename : dom/workers/test/websocket_worker5.js => dom/websocket/tests/websocket_worker5.js
rename : dom/workers/test/websocket_https.html => dom/websocket/tests/websocket_worker_https.html
rename : dom/base/test/window_bug1384658.html => dom/websocket/tests/window_bug1384658.html
2017-11-10 12:00:33 +01:00
Jan de Mooij 296194e65f Bug 1414340 part 1 - Remove non-standard array/generator comprehensions from browser code. r=mossop 2017-11-10 11:52:22 +01:00
Margareta Eliza Balazs 7e070192d7 Merge inbound to mozilla-central r=merge a=merge 2017-11-10 11:55:43 +02:00
Neil Deakin 695749c30c Bug 380637, move reserved key checking into ContentUtils so that it can be shared with menu accesskey checks , r=felipe 2017-11-09 18:42:39 -05:00
Andrea Marchesini a4ddff0ca6 Bug 1347515 - Get rid of dom/json, r=qdot 2017-11-10 00:27:36 +01:00
Kris Maglione 21c2757678 Bug 1403348: Part 3 - Support plain XPC Exceptions in ExtractErrorValues. r=baku
MozReview-Commit-ID: LrnE82vHjK

--HG--
extra : rebase_source : 4c8500c4e3a2eb0758b7fe678eda7255340b518c
2017-11-09 12:32:15 -08:00
Andreea Pavel 36cb58a247 Merge mozilla-central to autoland r=merge a=merge on a CLOSED TREE 2017-11-09 22:15:19 +02:00
Masayuki Nakano 68294ac1d3 Bug 1415445 - part 4: EditorBase::CreateNode() should take EditorRawDOMPoint as insertion point instead of a set of container, child and offset of the child in the container r=m_kato
EditorBase::CreateNode() should take EditorRawDOMPoint as insertion point of
the new element instead of a set of container, child and offset of the child
in the container.

This patch initializes EditorRawDOMPoint with original 3 arguments as far as
possible.  If the relation of them are broken, MOZ_ASSERT in RawRangeBoundary
constructor detects existing bugs.

MozReview-Commit-ID: 2N55S6pRv7k

--HG--
extra : rebase_source : 2b14a7715815ca0007635b8f791ca9edbe5b65f1
2017-11-08 20:23:10 +09:00
Yoshi Huang 89fce65edf Bug 1411473 - Skip image loading from adoption if OwnerDoc is not allowed to. r=bz
In the test file 1411473.html, there are 3 calls to
nsImageLoadingContent::LoadImage

1. Triggered by setting src attribute, and this sets the mCurrentRequest.

2. Triggered by setting crossOrigin attribute, this forcibly reloads the image,
and this sets the mPendingRequest.

3. Triggered by loading the image which is adopted into a new created data
document by
'document.implementation.createDocument('', '', null).adoptNode(img)'

However in the 3rd call, when it calls nsImageLoadingContent::LoadImage, It
will bail out in the aDocument->IsLoadedAsData() part
http://searchfox.org/mozilla-central/rev/5a60492a53667fc61a62af1847d005a210b7a4f6/dom/base/nsImageLoadingContent.cpp#942

And when it calls SetBlockedRequest, at this time we have a non-null
mCurrentRequest and a non-null mPendingRequest, so this triggers the
assertion of mPendingRequest should be null when we got blocked, which
is added in bug 1267075.

Since data document is not the active document,
per https://html.spec.whatwg.org/multipage/images.html#updating-the-image-data,
Step 1, we should skip the image loading in HTMLImageElement.
2017-11-09 19:01:41 +08:00
Andrea Marchesini fbd0acbfa7 Bug 1415081 - part 6 - Fix the use of NS_ReadInputStreamToString in ImageEncoder, r=smaug 2017-11-09 11:18:09 +01:00
Andrea Marchesini 1e1cedc895 Bug 1415081 - part 5 - Fix the use of NS_ReadInputStreamToString in nsFrameMessageManager, r=smaug 2017-11-09 11:18:09 +01:00
Andrea Marchesini 78c37e1f3f Bug 1415081 - part 2 - mochitest for NS_ReadInputStreamToString in WebSocket, r=smaug 2017-11-09 11:18:08 +01:00
Sebastian Hengst 1b0413a887 merge mozilla-inbound to mozilla-central. r=merge a=merge 2017-11-09 11:53:05 +02:00
Masayuki Nakano 806668b21a Bug 1415062 - part 2: Editor should use Selection::Collapse(const RawRangeBoundary&) as far as possible r=m_kato
In some places, editor computes index from child node for collapsing selection
at the child node.  However, it's expensive.  Therefore, editor should use
Selection::Collapse(const RawRangeBoundary&) as far as possible.

MozReview-Commit-ID: LF2MwASuXzZ

--HG--
extra : rebase_source : b7afc35c0d9d88845391b6f18de57cbff1935ae4
2017-11-07 19:50:25 +09:00
Masayuki Nakano 898bbb3137 Bug 1415062 - part 1: Selection should have Collapse(const RawRangeBoundary&) and Collapse(const RawRangeBoundary&, ErrorResult&) for avoiding computing offset of child node in container r=smaug
Selection should have Collapse() methods which take RawRangeBoundary instead of
a set of container and offset in it.  Then, if caller know only child node but
doesn't know offset in the container, neither callers, Selections nor nsRange
needs to compute offset.  This makes them avoid calling expensive method,
nsINode::IndexOf().

MozReview-Commit-ID: 79IRajLe1FE

--HG--
extra : rebase_source : a8ce52ff1654974461d5ecfed98b73d9cca34133
2017-11-07 15:29:15 +09:00
Mats Palmgren 1c2b8c222e Bug 1414666 part 1 - Add nsIFrame::PresShell() for convenient access to the shell. r=emilio
MozReview-Commit-ID: 8FPTPKWyVtY
2017-11-09 03:00:48 +01:00
btian bd65dcd351 Bug 1411878 - Support Element.shadowRoot and Element.assignedSlot / TextNode.assignedSlot on closed shadow root r=mrbkap
MozReview-Commit-ID: DSiGN7h5ErY

--HG--
extra : rebase_source : 025d3100cff11849d503fd86a312cb405b6cb32f
2017-11-02 16:53:44 +08:00
Sebastian Hengst a353221537 merge mozilla-inbound to mozilla-central. r=merge a=merge 2017-11-09 00:00:16 +02:00
Boris Zbarsky 272cbb590b Bug 1415176. Move getElementsByName from HTMLDocument to Document. r=mccr8
MozReview-Commit-ID: CRfrXC2x97S
2017-11-08 11:13:33 -05:00
Brad Werth 2a43297875 Bug 1412173 Part 1: Implement the Document ignore-opens-during-unload counter required by spec. r=bz
MozReview-Commit-ID: IWfT5c0H3t

--HG--
extra : rebase_source : 9a61f095a8c31ee3ac0f89b413d0cc62eec24292
2017-11-02 11:47:21 -07:00
Emilio Cobos Álvarez 93ceaeb662 Bug 1415353: Don't allow creating shadow roots for elements with XBL bindings. r=smaug
It breaks all sorts of invariants.

MozReview-Commit-ID: IGUDp91q0sF

--HG--
extra : rebase_source : 6f7da01118b00cdab54e652505b8b31c66f71910
2017-11-08 14:09:33 +01:00
Boris Zbarsky 97828fce1d Bug 1415389. Make ChromeUtils a WebIDL namespace. Remove ThreadSafeChromeUtils. r=kmag
MozReview-Commit-ID: 9ysAeaBMNVt
2017-11-08 00:25:33 -05:00
Margareta Eliza Balazs 4164a3a53d Merge inbound to mozilla-central r=merge a=merge 2017-11-07 23:57:03 +02:00
Masayuki Nakano 365f79c262 Bug 1414713 - EditorUtils::IsDescendantOf() should take EditorDOMPoint and EditorRawDOMPoint as out param r=catalinb,m_kato
EditorUtils::IsDescendantOf() current takes a pointer to offset or a pointer to
child content if the caller needs to know the child of the most ancestor node.

However, some callers should get a child as EditorDOMPoint or EditorRawDOMPoint.
Then, they can be used for some editor methods which need to take child node
for performance optimization.

This patch makes EditorUtils::IsDescendantOf() as only two overloads.  One takes
pointer to EditorRawDOMPoint as optional out argument.  The other takes pointer
to EditorDOMPoint as an out param.

Additionally, this creates new constructor of AutoTrackDOMPoint for making it
can treat EditorDOMPoint directly.

MozReview-Commit-ID: IsAGTUvKI19

--HG--
extra : rebase_source : 97469a21b974c6a1dd515ab472bbc4a88c1899c8
2017-11-06 17:01:33 +09:00