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

74296 Коммитов

Автор SHA1 Сообщение Дата
Bobby Holley 3cbcfdf4cd Bug 1457325 - Expose time to DOMContentFlushed on the timeline. r=bholley,r=mstange
MozReview-Commit-ID: E6QPjgfUKdo
2018-04-27 11:15:27 -07:00
Neil Deakin ef5f9b4b23 Bug 1446961, move PopupBoxObject to XULPopupElement, a new subclass of XULElement. Remove popup.xml methods, r=paolo,bz
Test changes for removal of PopupBoxObject and popup.xml methods, some reflow tests now have different stacks now that they are not going through popup.xml binding methods, test_popupanchor.xul changes due to need to wait for popuppositioned event after resizing. The old code would just adjust the arrow directly when sizeTo was called, but the new code does this through an asynchronous popuppositioned event. Changes to some places that check for XULElement class.

--HG--
rename : dom/webidl/PopupBoxObject.webidl => dom/webidl/XULPopupElement.webidl
rename : layout/xul/PopupBoxObject.cpp => dom/xul/XULPopupElement.cpp
rename : layout/xul/PopupBoxObject.h => dom/xul/XULPopupElement.h
2018-04-27 11:04:38 -04:00
Neil Deakin 0e1bcfce45 Bug 1446961, add dictionary second argument directly to PopupBoxObject::OpenPopup as supported in popup.xml#openPopup, r=bz 2018-04-27 11:04:37 -04:00
Neil Deakin aa71e22720 Bug 1446961, remove deprecated showPopup method of PopupBoxObject as well as unused GetPopupSetFrame method, and move some methods' positions to group related methods together better, r=paolo,bz 2018-04-27 11:04:37 -04:00
Neil Deakin e25f02a7f3 Bug 1446961, restructuring to allow nsXULElement to be subclassed. Rename nsXULElement::Create to make it clearer it creates from the prototype element, r=bz 2018-04-27 11:04:37 -04:00
Neil Deakin cf9835ac8b Bug 1446961, remove obsolete calls to showPopup and replace usages of the popup box object with the same methods defined on popups, r=paolo 2018-04-27 11:04:36 -04:00
Chris Pearce 3eabec8954 Bug 1452536 - Test that key events for non-printable keys and interaction with editable elements don't unblock autoplay. r=masayuki
MozReview-Commit-ID: 55TfHTUyJfz

--HG--
extra : rebase_source : 4607e548eb810cc6a124b908a299c9552952370d
2018-04-11 17:07:05 +12:00
Chris Pearce 441564e8a4 Bug 1452536 - Don't gesture activate for events targetting editable elements. r=masayuki
We don't want to gesture activate for key and mouse/pointer events sent to
editable elements, as that would mean user interaction intended as text input
could start media playback, which would not likely be the user's intention.

MozReview-Commit-ID: VemPfpuziz

--HG--
extra : rebase_source : b2267f5ae2c9f0f6626f622bc98e3c5f18faf8bb
2018-04-30 09:44:31 +12:00
Chris Pearce cd9d5f0dbf Bug 1452536 - Don't gesture activate documents on non-printable key events. r=masayuki
We don't want key presses of keys which are likely to be intended to be
interaction with the browser or OS to gesture activate documents and unblock
autoplay videos. So don't gesture activate for key events which are modifier
keys, or which don't have a pseudo char code.

MozReview-Commit-ID: 6uyPmlzbAvg

--HG--
extra : rebase_source : 8be949228b666a2ff54385f14b38b8f89459b1e2
extra : source : 59979388ba67d5fbfa8f3801bb65ac0fd2a49408
2018-04-23 15:53:50 +12:00
Emilio Cobos Álvarez 0faef276ec Bug 1455885: Make the SVG context paint not use a node property, but a member in SVGDocument. r=jwatt
MozReview-Commit-ID: H6SRTsDL5Rh
2018-04-26 17:07:39 +02:00
Emilio Cobos Álvarez a1b2e5070a Bug 1455885: Inline and make document casts fatally assert. r=bz
For consistency with AsElement / AsContent / AsDocumentFragment, etc.

MozReview-Commit-ID: 8GSj8R9hLBe
2018-04-26 17:05:12 +02:00
cubouyaka f150dc951d Bug 1445220 - Removed 'version' variable declaration as it was unused r=gerald
--HG--
extra : amend_source : ab250875490b6bcb93e6d9be69286192cb32031d
2018-04-11 16:05:40 +02:00
Jon Coppeard 6b7ad264ec Bug 1453986 - Remove possiblity of recursive GetService call when tracing r=smaug
--HG--
extra : rebase_source : 8319cf6afdde021eed71c25a8c6a1c21b7f65e18
2018-04-26 15:54:00 +01:00
Emilio Cobos Álvarez 8239c1300e Bug 1386840: Defer loading and don't block rendering for non-matching stylesheets. r=bz,heycam
MozReview-Commit-ID: 24UJZDooGmn
2018-04-26 16:44:03 +02:00
Emilio Cobos Álvarez 31aff796a0 Bug 1456435: Make the loader a bit less outparam-happy. r=heycam
Returning the same type and UpdateStyleSheet.

This hopefully helps seeing how the data flows between the methods, instead of
the messy bits we had before.

MozReview-Commit-ID: C6THNRi8bbg
2018-04-26 16:43:58 +02:00
Emilio Cobos Álvarez 5618bcfb59 Bug 1456435: Less bool outparam in Loader too. r=heycam
MozReview-Commit-ID: D5A2BxwHGjn
2018-04-26 16:43:54 +02:00
Emilio Cobos Álvarez a00f507b72 Bug 1456435: Make UpdateStyleSheet less bool-happy. r=heycam
MozReview-Commit-ID: FlTD390lMhg
2018-04-26 16:43:52 +02:00
Emilio Cobos Álvarez e0fb59363f Bug 1456435: Don't clone a URI for sheet loading. r=heycam
nsIURI is immutable now.

MozReview-Commit-ID: 1eMikl399Fd
2018-04-26 16:43:45 +02:00
Boris Zbarsky 86835e49c5 Bug 1456588 part 6. Change nsXULCommandDispatcher::GetRootFocusedContentAndWindow to return Element. r=enndeakin 2018-04-26 10:37:47 -04:00
Boris Zbarsky a3a6206b20 Bug 1456588 part 5. Store an Element as the focused content in the focus manager. r=enndeakin 2018-04-26 10:37:47 -04:00
Boris Zbarsky 01c62fd5cb Bug 1456588 part 4. Change nsFocusManager guts to make it clearer that the focused thing is always an Element. r=enndeakin
I couldn't find a good way to make this incremental without adding QIs and
AsElement() in various places....
2018-04-26 10:37:47 -04:00
Boris Zbarsky b3b21fd3fa Bug 1456588 part 3. Change nsFocusManager::SetFocusInner to take Element. r=enndeakin 2018-04-26 10:37:47 -04:00
Boris Zbarsky dac6314cb8 Bug 1456588 part 2. Change nsIFocusManager::MoveFocus to take Element. r=enndeakin 2018-04-26 10:37:47 -04:00
Boris Zbarsky 8a0b50bea8 Bug 1456588 part 1. Change nsIFocusManager::SetFocus to take Element. r=enndeakin 2018-04-26 10:37:46 -04:00
Xidorn Quan 43eb5c8140 Bug 1456364 part 4 - Convert CSS_PROPERTY_* flags to a typed enum flags. r=emilio
MozReview-Commit-ID: 4mLPe5cH80N
2018-04-26 16:24:33 +02:00
Xidorn Quan 8af9d264aa Bug 1456364 part 1 - Reduce dependencies to nsCSSProps.h. r=emilio
So that hacking on this header can be less painful...

MozReview-Commit-ID: LmpMnF7q9RG
2018-04-26 16:24:30 +02:00
Andreea Pavel 17a7053b0d Merge mozilla-inbound to mozilla-central. a=merge 2018-04-26 17:03:43 +03:00
Andrea Marchesini 1fb956b640 Bug 1457073 - Fix a leak in WorkerEventTarget::Dispatch() about how already_AddRefed<> params are handled, r=smaug 2018-04-26 11:41:15 +02:00
Andreea Pavel d6f3c89545 Merge mozilla-central to mozilla-inbound. a=merge on a CLOSED TREE 2018-04-26 09:08:26 +03:00
Andreea Pavel a21531022b Merge mozilla-inbound to mozilla-central. a=merge
--HG--
rename : toolkit/components/extensions/test/xpcshell/test_ext_browserSettings.js => toolkit/components/extensions/test/xpcshell/test_ext_proxy_config.js
2018-04-26 09:04:59 +03:00
Boris Zbarsky 8baa26a2af Bug 1457051. The WebIDL isInstance should be a pure brand check, not an instanceof-like check. r=qdot 2018-04-26 01:38:07 -04:00
Boris Zbarsky 6072982c14 Bug 1456887 part 2. Remove ArrayClass support. r=qdot 2018-04-26 01:38:07 -04:00
Boris Zbarsky db41f3a815 Bug 1456887 part 1. Remove the [ArrayClass] annotation from DOMRectList. r=qdot
The NoInterfaceObject bit is me cleaning up after spec editors who change the
spec without updating the tests...
2018-04-26 01:38:06 -04:00
Jeff Walden 04d21ccac0 Bug 1451248. r=jorendorff, r=bz
--HG--
extra : rebase_source : e26439a5954162bdaf332fbd63d623a3810e19e0
2018-04-25 19:40:09 -07:00
Kris Maglione 6bb92f08a7 Bug 1456035: Follow-up: Fix wrapper error in plain mochitest. r=bustage
MozReview-Commit-ID: BsZOhFIuDLv
2018-04-25 17:37:24 -07:00
Kris Maglione be628a4524 Bug 1456677: Make the blocklist service a JSM, with an XPCOM service stub. r=Gijs
Aside from making things easier for JS callers, this also makes it harder to
accidentally trigger an early load of the service, which can be expensive
during startup.

This also makes a slight change to nsPluginHost to initially preserve the
previous blocklist state when a plugin is updated, to avoid the risk of the
possible additioanl asynchrony unblocking a plugin that should stay blocked.

MozReview-Commit-ID: 4EvIGJ1Ke0Z

--HG--
rename : toolkit/mozapps/extensions/nsBlocklistService.js => toolkit/mozapps/extensions/Blocklist.jsm
extra : rebase_source : e7047615ea3a728478695c76a0c521b0281f363b
extra : amend_source : b74115abacacd17ae3e8433a534a5bbb541905b0
2018-04-24 17:46:44 -07:00
Kris Maglione dc8ba3688b Bug 1456035: Part 1 - Add helper to generate native QueryInterface callbacks. r=bz
MozReview-Commit-ID: JpV6zYOdvHu

--HG--
extra : rebase_source : 4aeda7c2c612dd9c7dbb7b6f4fdd33b8b289b702
2018-04-22 20:32:11 -07:00
arthur.iakab b952733074 Merge mozilla-central to inbound on a CLOSED TREE
--HG--
extra : amend_source : 211f8c266bd77e1617feb70153708664d3edf337
2018-04-26 02:08:49 +03:00
Tiberius Oros 78dbe34925 Bug 1452580 - remove RELEASE_OR_BETA defines for PerformanceCounter usage a=beta-fix 2018-04-25 14:43:48 +03:00
Gurzau Raul faeb9b7ddd Merge inbound to mozilla-central. a=merge 2018-04-25 12:36:04 +03:00
Robert Longson 83c5aceb17 Bug 1455940 - Remove constructors from SVGNumber r=mystor 2018-04-25 07:00:36 +01:00
Brian Birtles e0ea50192f Bug 1456688 - Set easing member in result of getComputedTiming(); r=hiro
The test added in this patch fails without the corresponding code changes
(specifically the second gGetComputedTimingTests test fails the comparison of
the 'easing' member).

MozReview-Commit-ID: 9eyXruVrPuN

--HG--
extra : rebase_source : 927f55c0670bf770e03d38eb876202efbb700c1e
2018-04-25 12:25:26 +09:00
Xidorn Quan 7c40b966d3 Bug 1455576 part 1 - Shrink the list of CSS_TYPES in devtools to only those being used. r=tromey
It seems to me that only the remaining three types are actually used by
the devtools, so I remove other types to reduce the scope.

MozReview-Commit-ID: 5mm3nl9qOyQ

--HG--
extra : rebase_source : 3af817ced34fdd08df8d18e25d3834eb19a21652
extra : source : 452a68930d96300a0ac35f1a261f72a2fa04e513
2018-04-26 09:01:02 +10:00
Dorel Luca 77073e5dc1 Merge mozilla-central to autoland 2018-04-26 00:34:31 +03:00
Emilio Cobos Álvarez 5f526b4a81 Bug 1455559: Make FromNode work for references. r=bz,Nika
MozReview-Commit-ID: 1ldU1aKeMzs

--HG--
extra : rebase_source : 70a2537ab56d040f33acd84d4fd0c3d9de392198
2018-04-20 11:10:12 +02:00
Nils Ohlmeier [:drno] dddddb816e Bug 1448230: close PeerConnection to prevent leaking. r=jib
MozReview-Commit-ID: 9iC9mqpo5ef

--HG--
extra : rebase_source : a7b3dbe511cbfcfae695093eefc5021120a3d658
2018-04-19 17:14:52 -07:00
Brindusan Cristian 9265429dcd Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-04-25 00:57:49 +03:00
Brindusan Cristian 59f801793b Merge inbound to mozilla-central. a=merge 2018-04-25 00:50:59 +03:00
Alexandre Poirot a4ac8e5ad2 Bug 1283714 - Wait for test document load in test_child_docshell.html to fix an intermittent. r=bz
MozReview-Commit-ID: 2qfn77LmG3b

--HG--
extra : rebase_source : ff45023308502245c30b7b444e82cde398109e7e
2018-04-23 08:19:52 -07:00
Brian Grinstead a6f357cd3b Bug 1456616 - Remove suppressFocusScroll from nsXULCommandDispatcher;r=bz
This attribute doesn't do anything.

MozReview-Commit-ID: FnshlyyAms5

--HG--
extra : rebase_source : 75e67479a3306a29b8ea45491984d08ceb4d6907
2018-04-24 13:22:12 -07:00
Hiroyuki Ikezoe 2cc7ec0f68 Bug 1455999 - Enable animation tests on WebRender. r=kats
MozReview-Commit-ID: xtQbHwAHXT

--HG--
extra : rebase_source : 435fc55c368e0a059175c927d192c768e863c745
2018-04-24 15:25:52 +09:00
Hiroyuki Ikezoe dd8b403ed7 Bug 1455999 - Skip the visibility hidden test case on WebRender. r=birtles
On WebRender, the animation on the visibility hidden element runs on the
compositor somehow.

MozReview-Commit-ID: 77dVlIeFQ3u

--HG--
extra : rebase_source : 2b93833e9bf5ed17f3e4ee5306bdcfd57e3c87a4
2018-04-24 15:25:41 +09:00
Hiroyuki Ikezoe 374e5b3e07 Bug 1455999 - Drop isStyleByServo() in dom/animation/. r=birtles
We have already dropped the old style sytem.

MozReview-Commit-ID: I4RUlLHLAxr

--HG--
extra : rebase_source : d2f1bacd0c938da760ee37288c5df331de489f40
2018-04-24 08:50:12 +09:00
Tarek Ziadé 90bafd1f42 Bug 1452580 - remove RELEASE_OR_BETA defines for PerformanceCounter usage - r=baku,erahm,farre
PerformanceCounters are currently disabled in two ways:

- a preference that's off by default "dom.performance.enable_scheduler_timing"
- calls made only for nightly using #ifndef RELEASE_OR_BETA

In order to simplify the code, let's remove the #ifndef and rely only on the pref.
That will also allows us to use the feature in every version going forward.

The performance will not be impacted since the current code is already using
the (cached) pref value to determine if the counters are used.

MozReview-Commit-ID: 47t2M1O13aH

--HG--
extra : rebase_source : e129e1829f1dc37c019e50e156474c4876d6d6cb
2018-04-24 22:03:06 +02:00
arthur.iakab 9e9c6ca596 Merge mozilla-central to inbound on a CLOSED TREE
--HG--
extra : amend_source : 45e514d60768068dc6f2b59b05059a0b86e4f692
2018-05-01 01:20:42 +03:00
Olli Pettay 1c1ff6583d Bug 1428393 - Crash near null [@ IsComposedDocParticipant], r=mccr8 2018-04-30 22:21:05 +03:00
Olli Pettay aeb4d395d3 Bug 1455819 - Crash in nsGlobalWindowInner::CallOnChildren<T>, r=nika 2018-04-30 21:02:15 +03:00
David Major 8b303e72a0 Bug 1449308: Clean up instancedata when the nptest plugin shuts down. r=jimm 2018-04-30 12:24:50 -04:00
Ben Kelly ebb0ae9748 Bug 1455695 P5 Remove unused ErrorResult argument from ServiceWorkerRegistration::Inner::Update(). r=baku 2018-04-30 07:55:02 -07:00
Ben Kelly 08c921af9d Bug 1455695 P4 Remove ServiceWorkerRegistration::Inner::GetNotifications(). r=baku 2018-04-30 07:55:01 -07:00
Ben Kelly 5ff559131c Bug 1455695 P3 Remove ServiceWorkerRegistration::Inner::ShowNotification(). r=baku 2018-04-30 07:55:01 -07:00
Ben Kelly 788509ed4f Bug 1455695 P2 Remove ServiceWorkerRegistration::Inner::GetPushManager(). r=baku 2018-04-30 07:55:01 -07:00
Ben Kelly 01ca898a1d Bug 1455695 P1 Make ServiceWorkerRegistration::Inner::Unregister() use MozPromise. r=baku 2018-04-30 07:55:01 -07:00
Boris Zbarsky 4b6ed4c011 Bug 1456261. Add cycle collection bits for WebIDL dictionaries. r=smaug 2018-04-24 11:57:40 -04:00
Boris Zbarsky 1790f0fa04 Bug 1453828. Fix IsContainerNode to not claim true for doctype nodes. r=mccr8
MozReview-Commit-ID: BC1iBI38wfJ
2018-04-24 11:57:21 -04:00
Tom Ritter 3705fef918 Bug 1446346 Do not clamp or jitter the AudioContext's CurrentTime if its interval is larger than our precision. r=jib
MozReview-Commit-ID: Bc1cto3pBKL

--HG--
extra : rebase_source : ace58df9f1669beacc176ab968f45a09ca44be2e
2018-04-17 15:35:51 -05:00
Christoph Kerschbaumer e45c9ffe52 Bug 1456407: Add test for same site cookies using a meta refresh. r=mgoodwin
--HG--
extra : rebase_source : ac0ef378dbd480ecd4fdaca6ef6d4a4c2da374f1
2018-04-24 11:08:00 +02:00
Dragana Damjanovic d9148a8a51 Bug 1441246 - Move preload cod from nsStyleLinkElement to HTMLLinkElement. r=smaug
--HG--
extra : rebase_source : 01cb8b69aa1187abb83b36098d81df1d96c7d79c
2018-04-20 12:47:00 +03:00
Noemi Erli 40fee0b341 Backed out 3 changesets (bug 1456466) for mochitest failures in /builds/worker/workspace/build/src/obj-firefox/dist/include/mozilla/MozPromise.h on a CLOSED TREE
Backed out changeset fd0feb0058fc (bug 1456466)
Backed out changeset e3a50afee79e (bug 1456466)
Backed out changeset 89ce7df05344 (bug 1456466)

--HG--
extra : rebase_source : b3f92fad7452a251948b88e6bf561acda162072b
2018-04-24 17:23:09 +03:00
Andrea Marchesini 3abafd2746 Bug 1454889 - Remove createObjectURL()'s MediaStream overload, r=valentin 2018-04-24 16:19:51 +02:00
Andrea Marchesini 2aa16211a9 Bug 1455811 - ReadableStream.cancel() must cancel the actual download - part 2, r=bkelly 2018-04-24 16:10:38 +02:00
Andrea Marchesini 8617b48e8e Bug 1455811 - ReadableStream.cancel() must cancel the actual download - part 1, r=bkelly 2018-04-24 16:09:58 +02:00
Ben Kelly 4d52267479 Bug 1456466 P3 Fix tests to expect ServiceWorkerRegistration.update() to resolve with a registration. r=baku 2018-04-24 06:32:15 -07:00
Ben Kelly b538daa227 Bug 1456466 P2 Make ServiceWorkerRegistration::Inner::Update() use MozPromise and IPC-safe types. r=baku 2018-04-24 06:32:14 -07:00
Ben Kelly c87c8a28af Bug 1456466 P1 Expose a GetPrincipal() convenience method on service worker descriptor classes. r=baku 2018-04-24 06:32:14 -07:00
Andrea Marchesini 027c6e34d8 Bug 1454656 - Unify URLWorker and URLMainThread, r=smaug 2018-04-24 12:01:46 +02:00
Boris Zbarsky 36ff5f731b Bug 1456169 part 3. Remove the now-unnecessary nsITextControlElement::GetPreviewNode. r=emilio
MozReview-Commit-ID: 3goF5VXvQap
2018-04-24 02:17:18 -04:00
Boris Zbarsky f82660f831 Bug 1456169 part 2. Remove the now-unnecessary nsITextControlElement::GetPlaceholderNode. r=emilio
MozReview-Commit-ID: FcVbeHEwkMz
2018-04-24 02:17:17 -04:00
Boris Zbarsky ca622386bd Bug 1456169 part 1. Remove the now-unnecessary nsITextControlElement::GetRootEditorNode. r=emilio
MozReview-Commit-ID: 6DYEtQMTCRF
2018-04-24 02:17:17 -04:00
Ciure Andrei 1940af33ec Merge mozilla-central to mozilla-inbound. a=merge CLOSED TREE 2018-04-24 04:29:20 +03:00
Ciure Andrei 33e644e1da Merge inbound to mozilla-central. a=merge 2018-04-24 04:14:21 +03:00
Nathan Froyd dbc53de3d9 Bug 1451363 - part 5 - remove ProtocolName virtual function; r=mccr8
ProtocolName() is only used for producing error messages and annotating
crash reports.  But examining actual crash reports that would have used
the result of ProtocolName() indicates that we can always tell what the
erroring protocol is due to the stack backtrace.  So having this virtual
function around just provides duplicate information, and it takes up too
much space in the vtable besides.  Let's get rid of it.
2018-04-23 14:13:36 -04:00
Andrew Sutherland 2a5caa4d86 Bug 1455985 eslint bustage fix. CLOSED TREE a=apavel
--HG--
extra : rebase_source : 59b887de15ac967acc7370ab57baec2211497ba7
2018-04-23 13:05:32 -04:00
Ben Kelly d0d806b51e Bug 1436812 P9 Implement the ServiceWorkerContainer::Register() method using the inner class. r=baku 2018-04-23 09:46:55 -07:00
Ben Kelly e8d1b10096 Bug 1436812 P8 Move storage permission check and other window specific code to ServiceWorkerContainer. r=baku 2018-04-23 09:46:55 -07:00
Ben Kelly 557e712b93 Bug 1436812 P7 Move many checks into ServiceWorkerScopeAndScriptAreValid() utility method. r=baku 2018-04-23 09:46:55 -07:00
Ben Kelly 854148c72a Bug 1436812 P6 Move the NS_CheckContentLoadPolicy() from ServiceWorkerManager to ServiceWorkerContainer. r=baku 2018-04-23 09:46:54 -07:00
Ben Kelly f7eb2e8f22 Bug 1436812 P5 Move the IsFromAuthenticatedOrigin() check from the ServiceWorkerManager to the ServiceWorkerContainer. r=baku 2018-04-23 09:46:54 -07:00
Ben Kelly 3b5dc939c6 Bug 1436812 P4 Add the ServiceWorkerContainer::GetBaseURIFromGlobal() method. r=baku 2018-04-23 09:46:54 -07:00
Ben Kelly bc610fded9 Bug 1436812 P3 Refactor ServiceWorkerContainer::GetGlobalIfValid() to accomodate Register() usage. r=baku 2018-04-23 09:46:54 -07:00
Ben Kelly e92e735f00 Bug 1436812 P2 Don't try to use the document's nsILoadGroup when registering a new service worker script. r=baku 2018-04-23 09:46:54 -07:00
Ben Kelly d660ef1bc9 Bug 1436812 P1 Make ServiceWorker MozPromise types exclusive so they can reject with ErrorResult values. r=baku 2018-04-23 09:46:53 -07:00
Ben Kelly be5f3caad5 Bug 1422710 Block opaque tainted requests that do not follow redirects. r=ckerschb 2018-04-23 09:43:36 -07:00
Robert Longson 34d8c86389 Bug 1455986 - If we cannot parse an enum, set its numeric value to UNKNOWN i.e. 0 r=heycam 2018-04-24 01:42:41 +01:00
Brian Grinstead 7f1f1892fb Bug 1455359 - Remove autoCheck attribute from nsIDOMXULCheckboxElement and nsIDOMXULButtonElement; r=enndeakin+6102
MozReview-Commit-ID: FUxsIf23z7e

--HG--
extra : rebase_source : 29cd8b2e90e4161fb288a6b6206c27de1d225f5e
2018-04-21 07:03:23 -07:00
Andrew McCreight 269f53f8b6 Bug 1451985 - Tell the cycle collector about ScriptLoadRequest::mElement. r=baku
Not doing this can cause a leak because there is a cycle between the
load request and the script element.

MozReview-Commit-ID: E7GbH5iDBP6

--HG--
extra : rebase_source : b9c16b5a40bf465f28f792cbf727909d1f976c31
2018-04-19 16:33:12 -07:00
Timothy Guan-tin Chien 519e0c2f41 Bug 1451576 - Allow dir=auto to work in native anonymous content r=Ehsan
The rules set in place in bug 839886 and bug 1377826 prevents any native
anonymous content to participate in auto-direction, both on having dir=auto
to work on it and have it to affect the direction of non-anonymous dir=auto
parent.

This patch relax the rules a little bit by allowing the anonymous element with
dir=auto to particiate in auto-direction. For simplicity, it would allow the
text node in to affact auto-direction only if the text node is the direct
children of the dir=auto parent.

This patch is needed for HTML-based in-content widget to display RTL
labels correctly. It shouldn't change any UI on its own; the purpose of
the fix here is to display RTL-text filenames correctly when bug 1446830
is fixed.

The change is needed in ResetDirectionSetByTextNode() because
when CC clean-up the document, the function is called from
nsTextNode::UnbindFromTree(). At that point, IsInAnonymousSubtree()
will cause an assertion error on when calling SubtreeRoot(),
since subtree hierarchy is already broken by earlier UnbindFormTree()
calls to our parent nodes.

Substitute that check with HasTextNodeDirectionalityMap() in and only
in ResetDirectionSetByTextNode() should be ok -- given the function
doesn't really do anything if HasTextNodeDirectionalityMap() is false.
There is no need to call EnsureMapIsClearFor() when the condition is false
either; EnsureMapIsClearFor() itself is a no-op if the condition is false.

MozReview-Commit-ID: GqF5ypDZcbH

--HG--
extra : rebase_source : e6bfd3d5792be73a8bbb768c7d5b122170b2f02a
extra : source : 6aeb0958693ccc51346713faad823debd9cceeae
2018-04-17 00:17:56 +08:00
Robert Longson b0d2ba05a0 Bug 1455763 - Remove SVGViewElement.viewTarget r=heycam r=mystor 2018-04-25 22:44:31 +01:00
Kris Maglione 04176fe891 Bug 1456324: Part 2 - Mark infallible nsIPluginTag getters as infallible. r=Gijs
MozReview-Commit-ID: B7fkZVeDfJZ

--HG--
extra : rebase_source : 5ad69df704574acc589e1094fcfee0ad25286a77
extra : histedit_source : d8b2ecea2586a43c7839a43053f29bf872d02d2e
2018-04-24 15:04:11 -07:00
Kris Maglione efab220d5f Bug 1456324: Part 1 - Update tests to use nsIFakePluginTag rather than JS mocks. r=Gijs
This will allow us to make nsIPluginTag a builtin class.

This patch also factors out some common logic from AOM plugin tests.

MozReview-Commit-ID: FbXlSE8sjyK

--HG--
extra : rebase_source : 6403a62bcd6d5a1481c0b4d74c41339f659280ca
2018-04-25 12:31:25 -07:00
David Major f13872a0d3 Bug 1456936 - Fix test_analyser skip conditions. r=padenot
--HG--
extra : rebase_source : 0f27a116a2fa78ba6a27e8dd73acf0045b0a04cb
2018-04-25 14:13:01 -04:00
Emilio Cobos Álvarez 37eed71b1c Bug 1425866: Just null-check the CSS Loader for now. r=heycam
After discussing with Olli there isn't any kind of severe problem out of this.
Shadow subtrees will be disconnected just like the rest, and they shouldn't
assume that the document hasn't been disconnected first.

MozReview-Commit-ID: CX4fXOqEIFj

--HG--
extra : rebase_source : cd30cb8b8199fb73120c0bcade68986454090005
2018-04-27 01:46:50 +02:00
Brian Grinstead ab2a1a0d82 Bug 1456703 - Remove nsIDOMXULTextBoxElement r=enndeakin+6102
MozReview-Commit-ID: 6ZRzVq1bJjz

--HG--
extra : rebase_source : adb6e5cabbc38ed6774e905328b7f6f6095d01eb
2018-04-26 15:17:00 -07:00
Brian Grinstead 45b575d85f Bug 1456703 - Stop using nsIDOMXULTextBoxElement to detect XUL textboxes r=enndeakin+6102
This is used in JS via instanceof checks, and in C++ only to get the `inputField`
attribute (the actual HTML input or textarea). We can swap out instanceof by checking
the tag name, and we can directly query for the input field from C++.


MozReview-Commit-ID: 7xpHQMYzYhD

--HG--
extra : rebase_source : a5b62928665725133eb52e4df2fb6659a6109ffd
2018-04-26 15:15:10 -07:00
Emilio Cobos Álvarez 4cfead6d7f Bug 1457102: Avoid grabbing a reference to the pres context. r=heycam
Nothing from within CompatibilityModeChanged can kill it.

MozReview-Commit-ID: 386GiYBC6kF

--HG--
extra : rebase_source : ac93fb98dce07b04381cd5429cb1bc693c1fd07a
2018-04-26 16:10:10 +02:00
Emilio Cobos Álvarez c0e0be0ea9 Bug 1457102: Avoid all the work if the compat mode hasn't actually changed. r=heycam
In this case the stylist is marked dirty because a compat mode change. The
change just doesn't exist (NavQuirks -> NavQuirks).

So avoid the work in the first place.

MozReview-Commit-ID: lchKJECNkO

--HG--
extra : rebase_source : 421bd4147da5dfa83f8f82d05228175c70cf5615
2018-04-26 16:07:30 +02:00
Jean-Luc Bonnafoux bd34ea8894 Bug 1244870 - initialization of err variable r=jya
MozReview-Commit-ID: 6Zh7tqNdHeu

--HG--
extra : rebase_source : e89b46bbf17d9190c1f18b38c7ed22390fe05457
2018-04-24 20:42:02 +02:00
shindli c72db9830d Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-04-27 00:44:51 +03:00
Timothy Guan-tin Chien 4d2bb3715b Bug 1450017 - Part VIII, Exclude chrome UA style images from use counters r=heycam
Given that resizer.svg will be loaded in non-chrome documents, we will
need to exclude it from the use counter.

MozReview-Commit-ID: 4ZzidKJUfBW

--HG--
extra : rebase_source : 9ce9d6e6a312695cfd19243499051bf26d91f79b
2018-04-25 13:34:44 -07:00
Kartikaya Gupta fc66c485b6 Bug 1456882 - Enable some passing mochitests on linux64-qr. r=jrmuizel
MozReview-Commit-ID: 5VIHjwx6A2j

--HG--
extra : rebase_source : d986028cff52ba52a58887225e272bf04ad88de3
2018-04-25 11:29:07 -04:00
Narcis Beleuzu d6e889b127 Backed out 4 changesets (bug 1456115) for Asan Mochitest filures "AddressSanitizer: stack-overflow /celt/bands.c:1437:4 in quant_all_bands". CLOSED TREE
Backed out changeset 3379d4fc07f6 (bug 1456115)
Backed out changeset 9c77f5b53b56 (bug 1456115)
Backed out changeset e48268ffa4d8 (bug 1456115)
Backed out changeset bffecfd92808 (bug 1456115)
2018-04-24 21:47:07 +03:00
Jonathan Kingston 0d79353b7d Bug 1439425 - Ignore empty CSP directives. r=ckerschb
MozReview-Commit-ID: 67Ach2vCs8A

--HG--
rename : dom/security/test/csp/file_self_none_as_hostname_confusion.html => dom/security/test/csp/file_empty_directive.html
rename : dom/security/test/csp/file_self_none_as_hostname_confusion.html^headers^ => dom/security/test/csp/file_empty_directive.html^headers^
rename : dom/security/test/csp/test_self_none_as_hostname_confusion.html => dom/security/test/csp/test_empty_directive.html
extra : rebase_source : 1270d3d1aa8d53389e8708d29d2e363e52c02029
2018-03-06 18:48:26 -08:00
Gijs Kruitbosch c4a85a5a4d Bug 1456171 - make getPluginBlocklistState API asynchronous, r=kmag
MozReview-Commit-ID: KcDWtkdkNKs

--HG--
extra : rebase_source : 3c96317565b0efecc796ba4429324aa6c2945a69
2018-04-23 17:11:34 +01:00
Margareta Eliza Balazs fa0ffa186e Merge mozilla-central to autoland. a=merge CLOSED TREE
--HG--
rename : toolkit/mozapps/extensions/internal/XPIProviderUtils.js => toolkit/mozapps/extensions/internal/XPIDatabase.jsm
2018-04-24 14:51:28 +03:00
Valentin Gosu f96bb4a629 Bug 1423495 - Part6: Use threadsafe refcounting for nsServerTiming r=baku,nwgh
* Also keeps the timing array as nsTArray<nsCOMPtr<nsIServerTiming>> instead of the scriptable nsIArray (which doesn't like being released on another thread)

MozReview-Commit-ID: 37uPZJ38saQ

--HG--
extra : rebase_source : 099ec74c3032ef6033d187a028466777200c6015
2018-04-24 13:04:12 +02:00
Jonathan Kew c57f185cd9 Bug 1454598 - part 3 - Use WeightRange more extensively in place of FontWeight throughout user-font handling and font-entry creation, and handle Stretch and SlantStyle similarly. r=jwatt 2018-04-25 07:18:23 +01:00
Jonathan Kew 9872150acc Bug 1454598 - part 2 - Allow variation fonts to record a weight range in gfxFontEntry, and update font-matching to handle ranges. r=jwatt 2018-04-25 07:18:23 +01:00
Jan Varga 75905dc334 Bug 1454309 - Explicitly close storage connection before dispatching to connection pool; r=asuth 2018-04-25 14:52:33 +02:00
Gurzau Raul d4fd165bfc Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-04-25 12:38:44 +03:00
Jonathan Kew 7e27ba83c3 Backed out 4 changesets from bug 1454598 (26e036b1c703, bc910e36a7d7, bac001216577, 5af215d265b6) due to macOS 10.12 font issues. 2018-04-25 10:18:07 +01:00
Emilio Cobos Álvarez f8233b4454 Bug 1456471: Remove nsCSSParser.h. r=xidorn
MozReview-Commit-ID: 4qa7llzCXeR
2018-04-25 10:38:37 +02:00
vinoth e0f4fbbe1d Bug 1442551 - Console log added for NS_ERROR_DOM_BAD_URI. r=ckerschb
Reviewers: ckerschb

Reviewed By: ckerschb

Subscribers: flod, Pike

Bug #: 1442551

Differential Revision: https://phabricator.services.mozilla.com/D766

--HG--
extra : rebase_source : 2948376a84b35aba1c215edb38734ad99fcb1982
extra : amend_source : 73c90e63e5ff97b31c108e2618fe738bbf1460a3
2018-04-25 09:38:59 +03:00
Eric Rahm ec9d567f14 Bug 1451908 - Check for infinite value in txFormatNumberFunctionCall. r=peterv a=abillings 2018-04-17 11:22:04 -07:00
Jonathan Kew 8489323f79 Bug 1454598 - part 3 - Use WeightRange more extensively in place of FontWeight throughout user-font handling and font-entry creation, and handle Stretch and SlantStyle similarly. r=jwatt 2018-04-25 07:18:23 +01:00
Jonathan Kew 6ca182d055 Bug 1454598 - part 2 - Allow variation fonts to record a weight range in gfxFontEntry, and update font-matching to handle ranges. r=jwatt 2018-04-25 07:18:23 +01:00
Tyson Smith 0d486d7cd3 Bug 1458016: Crashtest. r=emilio
MozReview-Commit-ID: LQeydd27UjF
2018-05-02 04:21:22 +02:00
Tyson Smith 8e22327e93 Bug 1422883: Crashtest. r=emilio
MozReview-Commit-ID: HaE9RYyMrmZ
2018-05-02 04:19:12 +02:00
Emilio Cobos Álvarez c556ec7ad0 Bug 1457920: Remove ServoStyleSheet usage. r=xidorn
MozReview-Commit-ID: LIBkovuQ6MB
2018-05-02 04:13:26 +02:00
Emilio Cobos Álvarez bf64474d79 Bug 1457920: Remove StyleSheet::AsServo. r=xidorn
MozReview-Commit-ID: IkkJvUFHykk
2018-05-02 04:13:21 +02:00
Hiroyuki Ikezoe b3cda193ed Bug 1450881 - Hold a reference of the target element when we get style for the element. r=birtles 2018-05-02 06:17:41 +09:00
Cristina Coroiu 09f2e3f364 Bug 1353608 - Disabled test_frameNavigation.html on Win7 and Win10. r=jmaher
--HG--
extra : histedit_source : e020d87a947376884dae2e796ed1b7b7f50f31da
2018-04-29 00:04:00 +03:00
Andreea Pavel 83decb5324 Merge mozilla-central to mozilla-inbound. a=merge on a CLOSED TREE 2018-05-01 13:18:00 +03:00
Andrea Marchesini f6fc0b418a Bug 1456556 - FetchConsumer scope-exit RAII must grab 'self' by value, r=erahm 2018-05-01 08:47:13 +02:00
Adrian Wielgosik b3c501adc4 Bug 1447389 - Remove nsIDOMNodeList. r=bz
MozReview-Commit-ID: 11szZP6dS6V

--HG--
extra : rebase_source : 9acfb352750e53d3b36684fa945a18e817c9b82e
2018-04-25 23:01:30 +02:00
Paul Adenot f412eb58ae Bug 1456115 - Re-serialize inbound NotifyPull. r=jya
We made NotifyPull parallel to try to lower the load, and we initially measured
an improvement. However, we did the measurements with a profiler that did an
aggregation of the results. Our results had an high variance, so the mean load
was in fact not meaningful.

More careful measurement performed without doing any aggregation show that,
under load, relying on the fact that the scheduler schedules the tasks on time
is too risky, and that the code is fast enough to not have to parallelize.

MozReview-Commit-ID: CMhSn8Sc0OO

--HG--
extra : rebase_source : cfb41f861089bce9e10446bee81c13f8565ba90e
2018-04-12 14:23:03 +02:00
Brian Grinstead c79ba311f8 Bug 1456682 - Remove nsIDOMXULTreeElement;r=bz
MozReview-Commit-ID: 2QstcmlXh9S

--HG--
extra : rebase_source : 7f767686c65426a1079c0b10092d32dee91a4e3b
2018-04-25 06:58:56 -07:00
Paul Adenot 0640ca7fdb Bug 1456115 - Re-serialize inbound NotifyPull. r=jya
We made NotifyPull parallel to try to lower the load, and we initially measured
an improvement. However, we did the measurements with a profiler that did an
aggregation of the results. Our results had an high variance, so the mean load
was in fact not meaningful.

More careful measurement performed without doing any aggregation show that,
under load, relying on the fact that the scheduler schedules the tasks on time
is too risky, and that the code is fast enough to not have to parallelize.

MozReview-Commit-ID: CMhSn8Sc0OO

--HG--
extra : rebase_source : cfb41f861089bce9e10446bee81c13f8565ba90e
2018-04-12 14:23:03 +02:00
Andrea Marchesini 1514257ca5 Bug 1434308 - "IndexedDB uses SameProcessSameThread structured clone scope" [r=sphink]
--HG--
extra : rebase_source : d2bd97701c6dceabb072fd76833be4b84ac2fce3
extra : source : 2692e7aaefbdb8d40612704abbe1422c60ce5b0d
2018-01-30 11:32:00 -08:00
Steve Fink c9ee11f480 Backed out changeset 2692e7aaefbd (bug 1434308)
--HG--
extra : rebase_source : 70b6fad7a734e6faac09e7518f4fffa587fa1abb
2018-04-24 16:01:52 -07:00
David Parks dc1f619d39 Bug 1450708 - Ref-count the plugin FunctionBroker mutex. r=bobowen
Instead of contending with the idiosyncracies of the platform implementations of condition variables, which have been leading to strange crashes, we hold this mutex as a ref-counted object and avoid complex object lifetime reasoning.
2018-04-23 13:48:06 -07:00
Andrea Marchesini dc9b0059f8 Bug 1434308 - "IndexedDB uses SameProcessSameThread structured clone scope" [r=sphink]
--HG--
extra : rebase_source : 0be2588dd992fc07e67f90319d59345341e41f51
2018-01-30 11:32:00 -08:00
Brindusan Cristian 5e1a611a89 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-04-25 00:59:04 +03:00
Eric Rahm f17fbddf9a Bug 1451908 - Check for infinite value in txFormatNumberFunctionCall. r=peterv
--HG--
extra : rebase_source : d62467b2d010506e4cec724ac89476b56ad5d536
2018-04-17 11:22:04 -07:00
Adrian Wielgosik fa39adeeaa Bug 1418078 - Remove nsIDOMHTMLInputElement. r=bz
MozReview-Commit-ID: Gun4oxg1NJZ

--HG--
extra : rebase_source : 80f519728a9bb6acaad4f36bd89e8f473c8dcbe5
2018-04-18 22:35:32 +02:00
Adrian Wielgosik 8c66c095f4 Bug 1418078 - Convert JS users of nsIDOMHTMLInputElement. r=bz
MozReview-Commit-ID: 55aIiNHS0xs

--HG--
extra : rebase_source : cacb9fc29daa5d620d4a0cd6ab3f09cde765036f
2018-04-18 22:29:50 +02:00
Bryce Van Dyk 855803da5c Bug 1453127 - Do not use iterators in MediaStreamTrack when removing listeners. r=pehrsons
--HG--
extra : rebase_source : 41c5d93b54c6dc062daa05a2644d4a194400dd1e
extra : amend_source : c53c4f75e4b813104122d22da29f97919f9d62d3
2018-04-18 15:30:57 -04:00
Dão Gottwald adc758e47b Bug 1455596 - Remove support for <panel backdrag="true"/>. r=enn,ehsan 2018-04-24 22:07:20 +02:00
Kershaw Chang ext:(%2C%20Valentin%20Gosu%20%3Cvalentin.gosu%40gmail.com%3E) 042ac19155 Bug 1423495 - Part4: Create doc entry form http channel if server timing headers are found for a document load r=baku
Currently, the document entry is created at the first time when some JS code tries to access it. But for the case when server timing headers exist for a document loading channel, we need to create the document entry and save the server timing data in the document entry.
If we don’t do this, the server timing data would be lost since the http channel will be deleted.

MozReview-Commit-ID: B5ksAZvZACq

--HG--
extra : rebase_source : 27bc6284ec417b2ff430a59cd9eeddc56b7a77ac
2018-01-12 03:13:00 +01:00
Kershaw Chang ext:(%2C%20Valentin%20Gosu%20%3Cvalentin.gosu%40gmail.com%3E) 0aa410f629 Bug 1423495 - Part3: Add PerformanceServerTiming to test_interface.js, r=baku
MozReview-Commit-ID: 663c9sudEIR

--HG--
extra : rebase_source : 9c7a81db01758e4f6e35236a5e7ce40557c9f2a1
2018-01-10 04:02:00 +01:00
Kershaw Chang ext:(%2C%20Valentin%20Gosu%20%3Cvalentin.gosu%40gmail.com%3E) 91dde27e0c Bug 1423495 - Part2: Test case, r=baku
Test steps:
1. Create a XHR to get serverTiming.sjs.
2. Add Server-Timing headers in serverTiming.sjs.
3. Check if the value from PerformanceResourceTiming is correct.

MozReview-Commit-ID: KOQhoFQv4fy

--HG--
extra : rebase_source : a0f5bde872ca9e066764d90ab80d7848988f37a8
2018-01-10 04:02:00 +01:00