Kyle Machulis
3ff8407067
Bug 1453517 - Consolidate popup permission checks to nsContentUtils; r=bz
...
Permissions checks for popups were happening in nsIPopupWindowManager,
but that really only required a pref and perm check. The XPCOM
machinery around this isn't really needed, and the check was only
called from two places in content, so this fits in nsContentUtils.
MozReview-Commit-ID: 9x60x1BKWcr
2018-04-11 16:18:20 -07:00
Noemi Erli
d0293f2122
Merge inbound to mozilla-central. a=merge
2018-04-14 12:49:03 +03:00
Andrea Marchesini
c8844653b0
Bug 1448328 - Implement getOrigin for blobURL without nsIURIWithPrincipal, r=smaug
2018-04-14 01:08:41 +02:00
Andrew McCreight
7a07e0c48b
Bug 1449670, part 1 - Convert IsNodeOfType(nsINode::eTEXT) to IsText(). r=bz
...
This method is not a virtual call, and also looks nicer.
This patch was mostly generated by a Python script, but I manually
cleaned up the code in a few places where statements didn't need to be
split across multiple lines any more.
MozReview-Commit-ID: 8JExxqSRc59
2018-04-12 15:41:00 -07:00
Alex Gaynor
652daa928c
Bug 1453016 - user safer enum serialization for gfx::SurfaceFormat in IPC; r=kats
...
MozReview-Commit-ID: Fhyg8e5lyW6
2018-04-10 11:53:44 -04:00
Karl Tomlinson
6bb08c1ad7
bug 1328964 add CycleCollectedJSContext::IsSystemCaller() to make ThreadsafeIsSystemCaller() safe for worklets r=baku
...
MozReview-Commit-ID: Cg4OBbm5CwA
2018-04-06 18:53:25 +12:00
Karl Tomlinson
1cd498ec42
bug 1328964 use nsContentUtils::GetCurrentJSContext() on all threads r=smaug
...
nsContentUtils::GetCurrentJSContextForThread() originally needed to use
workers::GetCurrentThreadJSContext() in
https://hg.mozilla.org/mozilla-central/rev/366a45b41539#l2.18
because CycleCollectedJS*()->Context() did not exist until
https://hg.mozilla.org/mozilla-central/rev/1a0cd542e1e9#l7.12
nsContentUtils::GetCurrentJSContext() is thread-safe since these changes:
https://hg.mozilla.org/mozilla-central/rev/e636c7186286#l3.12
https://hg.mozilla.org/mozilla-central/rev/c8029c072776#l2.12
MozReview-Commit-ID: 2f1eGS9uBBO
2018-04-09 12:11:18 +12:00
Andrea Marchesini
5fe176661f
Bug 1328964 - part 2 - WorkletThread r=baku
...
Initial version r=smaug.
Rebased to c616a6fd5e4b by Jan-Ivar Bruaroey <jib@mozilla.com > r=karlt.
Rebased to 83de58ddda20 by Karl Tomlinson <karlt+@karlt.net > r=baku.
MozReview-Commit-ID: Lo8TWtN8qyz
2018-04-12 15:14:48 +12:00
Brian Grinstead
2c3399ccfe
Bug 1446247 - Pass namespace into IsCustomElementName to allow for non-dashed XUL elements;r=e7358d9c+590837,smaug
...
This will make it possible to migrate existing bindings without also needing to
mass-rewrite frontend code at the same time.
MozReview-Commit-ID: IBBqC4eeDDX
2018-03-29 09:34:56 -07:00
Ciure Andrei
ea89df62df
Backed out 8 changesets (bug 1451169) on request from njn a=backout
...
Backed out changeset b92f856e15a8 (bug 1451169)
Backed out changeset 348e825756fa (bug 1451169)
Backed out changeset 624d82428726 (bug 1451169)
Backed out changeset 4d51610ca08e (bug 1451169)
Backed out changeset bb76a9589717 (bug 1451169)
Backed out changeset c145fbd03947 (bug 1451169)
Backed out changeset 6d36289e0f54 (bug 1451169)
Backed out changeset 914fb7cd9fc3 (bug 1451169)
2018-04-11 11:22:05 +03:00
Olli Pettay
6c2e589e94
Bug 1452615 - Reduce unneeded AddRefing/Releasing when unregistering unresolved custom elements, r=emilio
2018-04-09 16:11:49 +03:00
Olli Pettay
a2b0b0917f
Bug 1452608 - Reduce unneeded AddRefing/Releasing when looking up custom element definitions, r=emilio
2018-04-09 15:48:53 +03:00
Emilio Cobos Álvarez
bbc47196da
Bug 1452324: Remove outdated references to bug 1326028. r=smaug
...
DONTBUILD, since it's comment-only.
MozReview-Commit-ID: KzZRo3FhwDr
2018-04-07 19:06:52 +02:00
Andreea Pavel
87d7cc3264
Merge mozilla-central to mozilla-inbound. a=merge on a CLOSED TREE
2018-04-06 13:26:13 +03:00
Andreea Pavel
821f0e6d41
Backed out changeset e220521c6ff6 (bug 1446247) on request a=backout r=smaug
2018-04-06 13:23:59 +03:00
Boris Zbarsky
d54406240d
Bug 1449631 part 6. Remove nsIDOMEventTarget::DispatchEvent. r=smaug
...
MozReview-Commit-ID: 8YMgmMwZkAL
2018-04-05 13:42:41 -04:00
Boris Zbarsky
1dba91f571
Bug 1449631 part 4. Remove nsIDOMEventTarget::GetContextForEventHandlers. r=smaug
...
MozReview-Commit-ID: ID0FDvp28HY
2018-04-05 13:42:40 -04:00
Nicholas Nethercote
7ccd4b9401
Bug 1451169 - Use nsStaticAtom* instead of nsStaticAtom** in Element.h. r=baku
...
And then fix up everything else that needs to change as well.
MozReview-Commit-ID: GDMfERqdQAc
2018-04-03 13:21:06 +10:00
Ciure Andrei
ac39fcba12
Merge mozilla-central to mozilla-inbound. a=merge CLOSED TREE
2018-04-04 00:58:50 +03:00
Brian Grinstead
d0ee11e504
Bug 1446247 - Pass namespace into IsCustomElementName to allow for non-dashed XUL elements;r=e7358d9c+590837,smaug
...
This will make it possible to migrate existing bindings without also needing to
mass-rewrite frontend code at the same time.
MozReview-Commit-ID: IBBqC4eeDDX
2018-03-29 09:34:56 -07:00
Johann Hofmann
fdf223d9d7
Bug 1450315 - Remove document.allowUnsafeHTML. r=bz
...
This attribute was added in bug 1432966 when we started sanitizing
chrome usage of innerHTML to allow devtools to use custom attributes
in React via dangerouslySetInnerHTML.
Devtools removed its usage of dangerouslySetInnerHTML in bug 1434155, so
document.allowUnsafeHTML is no longer used and can be removed.
MozReview-Commit-ID: 8xTVZDmPqRa
2018-03-31 10:27:19 +02:00
Peter Van der Beken
ac0175d820
Bug 1448850 - Empty nsIMessageSender. r=bz.
2018-02-16 10:34:21 +01:00
Peter Van der Beken
d245c134c4
Bug 1448850 - Remove nsIMessageBroadcaster. r=bz.
2018-02-14 17:35:39 +01:00
Christoph Kerschbaumer
56529d1f61
Bug 1439713 - Change nsIContentPolicy shouldLoad to take an <uri, loadInfo> pair instead of the various args. r=bz
2018-03-29 12:16:23 +02:00
Boris Zbarsky
ed060c025a
Bug 1449404 part 3. Get rid of nsIContent::AppendTextTo. r=mccr8
2018-03-28 18:01:47 -04:00
Boris Zbarsky
da3d4d37a5
Bug 1449404 part 1. Get rid of nsIContent::SetText. r=mccr8
2018-03-28 18:01:46 -04:00
Tom Ritter
d44ebbd80e
Bug 1378552 - Reduce the liklihood of inadvertently misusing NullPrincipal::Create(). r=ckerschb
...
NullPrincipal::Create() (will null OA) may cause an OriginAttributes bypass.
We change Create() so OriginAttributes is no longer optional, and rename
Create() with no arguments to make it more explicit about what the caller is doing.
MozReview-Commit-ID: 7DQGlgh1tgJ
2018-03-22 13:36:20 -05:00
Bogdan Tara
fdc4c696b0
Merge inbound to mozilla-central. a=merge
2018-03-27 12:12:57 +03:00
Henri Sivonen
a8de0e3924
Bug 1448584 - Remove nsContentUtils::CopyNewlineNormalizedUnicodeTo() as dead code. r=mccr8.
...
MozReview-Commit-ID: HqHtANlHk41
2018-03-24 21:06:33 +02:00
Boris Zbarsky
f438fde58c
Bug 1442039 part 12. Remove various unused static stuff from nsDOMClassInfo. r=peterv
...
MozReview-Commit-ID: Imt658SuM9w
2018-03-21 23:13:29 -04:00
Boris Zbarsky
152cd3ba6e
Bug 1447098 part 1. Rename FromContent on various DOM classes to FromNode. r=mystor
...
MozReview-Commit-ID: 202nkbmkwfR
2018-03-21 17:39:04 -04:00
Dave Townsend
baa5890074
Bug 1421070: Always enable custom elements in chrome. r=smaug, rs=MattN
...
This allows custom elements to work in any document in the parent process that
allows XUL and XBL. The test takes the easy option of moving the existing XUL
custom element test to a run with the custom element pref disabled.
MozReview-Commit-ID: CMiLzmp60jA
2017-10-20 11:02:33 -07:00
Margareta Eliza Balazs
9ee7d43762
Backed out changeset 794ee6857d83 (bug 1421070) for 15 failures in toolkit/components/payments/test/mochitest/test_ObservedPropertiesMixin.html on a CLOSED TREE
2018-03-23 03:42:25 +02:00
Dave Townsend
fd716c5ce4
Bug 1421070: Always enable custom elements in chrome. r=smaug
...
This allows custom elements to work in any document in the parent process that
allows XUL and XBL. The test takes the easy option of moving the existing XUL
custom element test to a run with the custom element pref disabled.
MozReview-Commit-ID: CMiLzmp60jA
2017-10-20 11:02:33 -07:00
Andrea Marchesini
1bd8af7beb
Bug 1447422 - Better check on aDocument in nsContentUtils::WarnScriptWasIgnored, r=smaug
2018-03-21 11:57:27 +01:00
Catalin Badea
db1718ef1f
Bug 1445792 - Merge nsIWindowMediator_44 back into nsIWindowMediator. r=dbaron
2018-03-20 05:27:00 -04:00
Boris Zbarsky
72b3558850
Bug 1446711 part 7. Switch the nsIDOMMouseEvent::MOZ_SOURCE_* constants over to MouseEventBinding. r=qdot
...
We can't include MouseEventBinding.h in MouseEvents.h because that produces
this include loop:
MouseEventBinding.h -> UIEventBinding.h ->
nsGlobalWindow.h -> nsGlobalWindowInner.h -> nsRefreshDriver.h ->
AnimationEventDispatcher.h -> AnimationComparator.h -> Animation.h ->
EffectCompositor.h -> PseudoElementHashEntry.h -> Element.h ->
PointerEventHandler.h -> MouseEvents.h -> MouseEventBinding.h
MozReview-Commit-ID: 6FNksGil7uD
2018-03-20 00:16:06 -04:00
Boris Zbarsky
1b2e3de398
Bug 1446710. Get rid of nsIDOMXULCommandEvent. r=qdot
...
MozReview-Commit-ID: C2C6oWtagG3
2018-03-19 15:50:37 -04:00
Brian Birtles
5730792840
Bug 1420320 - Drop dom.animations-api.pending-member.enabled pref; r=bz,hiro
...
This pref was introduced in case we encountered compatibility issues from
changing the return value of Animation.playState (bug 1412765). Now that the
change to Animation.playState has shipped to release channel without any known
problems we should drop this pref.
MozReview-Commit-ID: CwMWRRtIf6u
2018-03-16 12:49:55 +09:00
Hector Zhao
fb9db881ba
Bug 1340039 - Set contentPolicyType when copying image, and pass it between processes. r=smaug
...
MozReview-Commit-ID: CJj1a1Lj699
2018-03-14 16:44:36 +08:00
Jonathan Kingston
3c93f0a6e1
Bug 1440701 - Adding in telemetry for upgrading display content. r=ckerschb,valentin
...
MozReview-Commit-ID: 7oEIith4Ehv
2018-03-04 14:33:33 +00:00
Boris Zbarsky
8f5d02dfa9
Bug 1445140 part 5. Remove nsIDOMDocumentType. r=mystor
...
MozReview-Commit-ID: B6iktNYbWn9
2018-03-13 16:24:01 -04:00
Boris Zbarsky
42fd52d36e
Bug 1444686 part 5. Get rid of nsIDOMDataTransfer::Get/SetEffectAllowedInt. r=mystor
...
MozReview-Commit-ID: GIzIU7nWP5j
2018-03-13 16:24:00 -04:00
Boris Zbarsky
5233731aff
Bug 1444686 part 4. Get rid of nsIDOMDataTransfer::Get/SetDropEffectInt. r=mystor
...
MozReview-Commit-ID: EQ8KXMf4mnR
2018-03-13 16:23:59 -04:00
Boris Zbarsky
3d51c49049
Bug 1444686 part 3. Get rid of nsIDOMDataTransfer::Get/SetMozCursor. r=mystor
...
MozReview-Commit-ID: G7vuh1uuWGv
2018-03-13 16:23:59 -04:00
Emilio Cobos Álvarez
923d990216
Bug 1444905: Remove scoped style support from the old style system. r=xidorn,smaug
...
Summary: It uses two node bits that can be better suited for something else.
Reviewers: xidorn, smaug
Bug #: 1444905
Differential Revision: https://phabricator.services.mozilla.com/D709
MozReview-Commit-ID: HIPDtHm6xpM
2018-03-13 10:26:13 +01:00
Andrea Marchesini
cdb15164d7
Bug 1443079 - nsScriptError.isFromPrivateWindow must match the correct value also in e10s mode, r=smaug
2018-03-13 06:40:38 +01:00
Stephen A Pohl
b310ebe51d
Bug 1362303: Avoid crashes when dragging on macOS due to failed allocations of large shmem segments. r=glandium
2018-03-06 13:21:54 -05:00
Olli Pettay
8d2a7b0ad2
Bug 1193394 - Part 1: Microtasks and promises scheduling. r=bevis
2017-11-17 11:01:27 +08:00
Csoregi Natalia
a7fb1721fe
Backed out 7 changesets (bug 1193394) for browser-chrome failures on browser_ext_popup_background.js. CLOSED TREE
...
Backed out changeset 9683f24ff8ec (bug 1193394)
Backed out changeset 0e7140a7c841 (bug 1193394)
Backed out changeset a0e26f6b2784 (bug 1193394)
Backed out changeset 29e1fceaf48d (bug 1193394)
Backed out changeset b8632bbbd273 (bug 1193394)
Backed out changeset a54ef2d8f896 (bug 1193394)
Backed out changeset 55c94c05c57f (bug 1193394)
2018-03-01 16:29:02 +02:00