gecko-dev/xpcom/base
Matt Woodrow e060a86c42 Bug 1631405 - Move nsISecureBrowserUI to be owned by the canonical browsing context instead of docshell. r=nika,ckerschb,Gijs,webcompat-reviewers,twisniewski
This removes all docshell nsISecureBrowserUI and mixed content properties, and moves them into CanonicalBrowsingContext/WindowGlobalParent. It makes the mixed content blocker just compute the state for the current load, and then send the results to the parent process, where we update the security state accordingly.

I think we could in the future remove onSecurityChange entirely, and instead just fire an event to the <browser> element notifying it of changes to the queryable securityUI.

Unfortunately we have a lot of existing code that depends on specific ordering between onSecurityChange and onLocationChange, so I had to hook into the RemoteWebProgress implementation in BrowserParent to mimic the same timings.

Differential Revision: https://phabricator.services.mozilla.com/D75447
2020-05-27 00:28:59 +00:00
..
AppShutdown.cpp Bug 1639553 - Only flush xulstore writes if using new xulstore r=lina 2020-05-20 16:32:07 +00:00
AppShutdown.h Bug 1615921 - Skip writing to pdf file if shutting down r=jwatt 2020-02-24 17:54:09 +00:00
AutoRestore.h
AvailableMemoryTracker.cpp Bug 1519636 - Reformat recent changes to the Google coding style r=andi 2020-05-25 07:42:38 +00:00
AvailableMemoryTracker.h
ClearOnShutdown.cpp Bug 1637890 - P1. Process ClearOnShutdown listeners in LIFO order. r=froydnj 2020-05-16 07:10:11 +00:00
ClearOnShutdown.h Bug 1610067 - Remove nsAutoPtr. r=xpcom-reviewers,nika' 2020-04-29 17:28:06 +00:00
CodeAddressService.h
CountingAllocatorBase.h Bug 1609815 - Remove Web Replay C++ implementation. r=jgilbert,jandem,gbrown 2020-02-27 17:39:15 +00:00
CycleCollectedJSContext.cpp Bug 1633468 - Make dom/bindings/Codegen.py compare against JSID_VOID to detect uninitialized jsid members r=mccr8 2020-04-28 18:12:12 +00:00
CycleCollectedJSContext.h Bug 1618258 - Part 1: Rename FinalizationGroup to FinalizationRegistry. r=jonco 2020-03-16 10:41:08 +00:00
CycleCollectedJSRuntime.cpp Bug 1626322 - Add an API to get the zone of a possibly-nursery allocated GC thing and use it in CheckZoneTracer r=sfink,mccr8 2020-04-28 22:26:59 +00:00
CycleCollectedJSRuntime.h Bug 1425450 - Only trace JS holders in collecting zones r=mccr8 2020-04-20 17:08:54 +00:00
Debug.cpp
Debug.h
DebuggerOnGCRunnable.cpp Bug 1627392 - Add missing includes and namespaces to xpcom/base. r=xpcom-reviewers,sg 2020-04-08 10:12:33 +00:00
DebuggerOnGCRunnable.h
DeferredFinalize.cpp
DeferredFinalize.h Bug 1627392 - Add missing includes and namespaces to xpcom/base. r=xpcom-reviewers,sg 2020-04-08 10:12:33 +00:00
EnumeratedArrayCycleCollection.h
ErrorList.py Bug 1640964 - Remove NS_ERROR_XPC_CANT_PASS_CPOW_TO_NATIVE. r=kmag 2020-05-26 22:19:33 +00:00
ErrorNames.cpp Bug 1265030 - Show symbolic nsresult name in NS_ENSURE_SUCCESS warning. r=mccr8 2020-04-13 23:39:19 +00:00
ErrorNames.h Bug 1265030 - Show symbolic nsresult name in NS_ENSURE_SUCCESS warning. r=mccr8 2020-04-13 23:39:19 +00:00
GkRustUtils.cpp
GkRustUtils.h
HoldDropJSObjects.cpp Bug 1425450 - Pass zone information through when preserving wrappers r=mccr8 2020-04-20 17:07:58 +00:00
HoldDropJSObjects.h Bug 1425450 - Pass zone information through when preserving wrappers r=mccr8 2020-04-20 17:07:58 +00:00
IntentionalCrash.h
JSObjectHolder.cpp
JSObjectHolder.h Bug 1620594 - Part 1: Rework NS_ReleaseOnMainThreadSystemGroup. r=nika 2020-04-07 15:16:23 +00:00
LogCommandLineHandler.cpp
LogCommandLineHandler.h
LogModulePrefWatcher.cpp Bug 1627392 - Add missing includes and namespaces to xpcom/base. r=xpcom-reviewers,sg 2020-04-08 10:12:33 +00:00
LogModulePrefWatcher.h Bug 1613985 - Use default for equivalent-to-default constructors/destructors in xpcom. r=froydnj 2020-02-12 11:13:33 +00:00
Logging.cpp Bug 1624090 - Make it possible to forward rust logging into the Gecko logger r=froydnj 2020-05-09 11:24:33 +00:00
Logging.h Bug 1624090 - Make it possible to forward rust logging into the Gecko logger r=froydnj 2020-05-09 11:24:33 +00:00
MacHelpers.h
MacHelpers.mm
MacStringHelpers.h
MacStringHelpers.mm
MemoryInfo.cpp
MemoryInfo.h
MemoryMapping.cpp
MemoryMapping.h
MemoryReportingProcess.h Bug 1613985 - Use default for equivalent-to-default constructors/destructors in xpcom. r=froydnj 2020-02-12 11:13:33 +00:00
MemoryTelemetry.cpp Bug 1620594 - Part 5: Use GetMainThreadSerialEventTarget instead of SystemGroup::EventTargetFor. r=nika 2020-04-07 15:17:07 +00:00
MemoryTelemetry.h Bug 1613985 - Use default for equivalent-to-default constructors/destructors in xpcom. r=froydnj 2020-02-12 11:13:33 +00:00
NSPRLogModulesParser.cpp Bug 1624090 - Make it possible to forward rust logging into the Gecko logger r=froydnj 2020-05-09 11:24:33 +00:00
NSPRLogModulesParser.h
OwningNonNull.h Bug 1620632 - Ensure nsTArray_Impl only declares a copy-constructor/assignment operator if E is copy-constructible. r=froydnj 2020-03-20 17:13:51 +00:00
ShutdownPhase.h
SizeOfState.h
StaticLocalPtr.h Bug 1610067 - Remove nsAutoPtr. r=xpcom-reviewers,nika' 2020-04-29 17:28:06 +00:00
StaticMonitor.h
StaticMutex.h Bug 1618186 - Remove AnyStaticMutex. r=froydnj 2020-02-28 14:24:21 +00:00
StaticPtr.h Bug 1610067 - Remove nsAutoPtr. r=xpcom-reviewers,nika' 2020-04-29 17:28:06 +00:00
TupleCycleCollection.h
components.conf
moz.build Bug 1610067 - Remove nsAutoPtr. r=xpcom-reviewers,nika' 2020-04-29 17:28:06 +00:00
nsAlgorithm.h
nsAutoRef.h Bug 1613985 - Use default for equivalent-to-default constructors/destructors in xpcom. r=froydnj 2020-02-12 11:13:33 +00:00
nsCOMPtr.cpp
nsCOMPtr.h Bug 1637605 - Add support for polymorphic return values to ToResultInvoke. r=froydnj 2020-05-19 09:07:08 +00:00
nsCRTGlue.cpp Bug 1615921 - Suspend late write checks in Windows vprintf_stderr r=froydnj 2020-02-21 18:51:37 +00:00
nsCRTGlue.h
nsClassInfoImpl.cpp
nsCom.h
nsConsoleMessage.cpp
nsConsoleMessage.h Bug 1613985 - Use default for equivalent-to-default constructors/destructors in xpcom. r=froydnj 2020-02-12 11:13:33 +00:00
nsConsoleService.cpp Bug 1631405 - Move nsISecureBrowserUI to be owned by the canonical browsing context instead of docshell. r=nika,ckerschb,Gijs,webcompat-reviewers,twisniewski 2020-05-27 00:28:59 +00:00
nsConsoleService.h
nsCrashOnException.cpp
nsCrashOnException.h
nsCycleCollectionNoteChild.h Bug 1625138 - Part 41: Remove no longer needed includes for mozilla/TypeTraits. r=froydnj 2020-03-28 16:00:09 +00:00
nsCycleCollectionNoteRootCallback.h
nsCycleCollectionParticipant.cpp
nsCycleCollectionParticipant.h Bug 1624810 - Add a nsCycleCollectionParticipant flag for JS holders that can have GC things in multiple zones r=mccr8 2020-03-26 10:48:30 +00:00
nsCycleCollectionTraversalCallback.h
nsCycleCollector.cpp Bug 1630254, part 2 - Run tasks after every shutdown cycle collection. r=smaug 2020-04-15 19:03:03 +00:00
nsCycleCollector.h
nsCycleCollectorTraceJSHelpers.cpp Bug 1633145 - Replace JSID_IS_GCTHING. r=arai 2020-04-26 17:03:01 +00:00
nsDebug.h Bug 1265030 - Show symbolic nsresult name in NS_ENSURE_SUCCESS warning. r=mccr8 2020-04-13 23:39:19 +00:00
nsDebugImpl.cpp Bug 1589493 - Extending BrowserTestUtils.crashFrame to allow crashing with an OOM;r=mconley,froydnj,dmajor 2020-03-10 14:00:27 +00:00
nsDebugImpl.h
nsDumpUtils.cpp Bug 1613985 - Use default for equivalent-to-default constructors/destructors in xpcom. r=froydnj 2020-02-12 11:13:33 +00:00
nsDumpUtils.h
nsError.h
nsErrorService.cpp
nsErrorService.h
nsGZFileWriter.cpp
nsGZFileWriter.h Bug 1624776 - Replace MOZ_MUST_USE with [[nodiscard]] in xpcom. r=xpcom-reviewers,KrisWright 2020-03-27 17:21:48 +00:00
nsIClassInfoImpl.h
nsIConsoleListener.idl
nsIConsoleMessage.idl
nsIConsoleService.idl
nsICycleCollectorListener.idl Bug 1621359 - Update .idl files to work with ply3 r=mccr8 2020-04-14 17:17:38 +00:00
nsID.cpp
nsID.h Backed out changeset adcfa8af679c (bug 1631533) for causing test_useractivation_transient.html failures CLOSED TREE 2020-04-20 23:09:32 +03:00
nsIDebug2.idl Bug 1589493 - Extending BrowserTestUtils.crashFrame to allow crashing with an OOM;r=mconley,froydnj,dmajor 2020-03-10 14:00:27 +00:00
nsIErrorService.idl
nsIException.idl
nsIGZFileWriter.idl Bug 1624776 - Replace MOZ_MUST_USE with [[nodiscard]] in xpcom. r=xpcom-reviewers,KrisWright 2020-03-27 17:21:48 +00:00
nsIInterfaceRequestor.idl
nsIInterfaceRequestorUtils.cpp
nsIInterfaceRequestorUtils.h
nsIMacPreferencesReader.idl
nsIMacUtils.idl
nsIMemory.idl
nsIMemoryInfoDumper.idl
nsIMemoryReporter.idl Bug 1624776 - Replace MOZ_MUST_USE with [[nodiscard]] in xpcom. r=xpcom-reviewers,KrisWright 2020-03-27 17:21:48 +00:00
nsIMessageLoop.idl
nsINIParser.cpp
nsINIParser.h Bug 1613985 - Use default for equivalent-to-default constructors/destructors in xpcom. r=froydnj 2020-02-12 11:13:33 +00:00
nsISecurityConsoleMessage.idl
nsISizeOf.h
nsISupports.idl
nsISupportsBase.h
nsISupportsImpl.cpp
nsISupportsImpl.h Bug 1638124 - Part 1: Add NS_INLINE_DECL_THREADSAFE_REFCOUNTING_WITH_DESTROY, r=froydnj 2020-05-19 18:30:52 +00:00
nsISupportsUtils.h Bug 1625138 - Part 41: Remove no longer needed includes for mozilla/TypeTraits. r=froydnj 2020-03-28 16:00:09 +00:00
nsIUUIDGenerator.idl
nsIVersionComparator.idl
nsIWeakReference.idl
nsIWeakReferenceUtils.h
nsInterfaceRequestorAgg.cpp
nsInterfaceRequestorAgg.h
nsMacPreferencesReader.h
nsMacPreferencesReader.mm Bug 1512991 - Add JsonWriteFunc::Write to take string length. r=botond 2020-05-08 16:24:31 +00:00
nsMacUtilsImpl.cpp
nsMacUtilsImpl.h
nsMaybeWeakPtr.h Bug 1626570 - Improve handling of copying arrays in xpcom/. r=froydnj 2020-05-05 11:27:18 +00:00
nsMemory.cpp
nsMemory.h
nsMemoryImpl.cpp
nsMemoryImpl.h
nsMemoryInfoDumper.cpp Bug 1512991 - Add JsonWriteFunc::Write to take string length. r=botond 2020-05-08 16:24:31 +00:00
nsMemoryInfoDumper.h
nsMemoryReporterManager.cpp Bug 1624776 - Replace MOZ_MUST_USE with [[nodiscard]] in xpcom. r=xpcom-reviewers,KrisWright 2020-03-27 17:21:48 +00:00
nsMemoryReporterManager.h Bug 1624776 - Replace MOZ_MUST_USE with [[nodiscard]] in xpcom. r=xpcom-reviewers,KrisWright 2020-03-27 17:21:48 +00:00
nsMessageLoop.cpp Bug 1613985 - Use default for equivalent-to-default constructors/destructors in xpcom. r=froydnj 2020-02-12 11:13:33 +00:00
nsMessageLoop.h Bug 1613985 - Use default for equivalent-to-default constructors/destructors in xpcom. r=froydnj 2020-02-12 11:13:33 +00:00
nsObjCExceptions.h
nsQueryObject.h
nsSecurityConsoleMessage.cpp Bug 1613985 - Use default for equivalent-to-default constructors/destructors in xpcom. r=froydnj 2020-02-12 11:13:33 +00:00
nsSecurityConsoleMessage.h
nsSystemInfo.cpp Bug 1637452: Part 3 - Fix JNI includes in xpcom; r=froydnj 2020-05-15 17:04:15 +00:00
nsSystemInfo.h Bug 1625553, change cpuCount value to int to avoid incorrect telemetry r=mconley 2020-04-09 19:33:13 +00:00
nsTraceRefcnt.cpp Bug 1627392 - Add missing includes and namespaces to xpcom/base. r=xpcom-reviewers,sg 2020-04-08 10:12:33 +00:00
nsTraceRefcnt.h
nsUUIDGenerator.cpp Bug 1613985 - Use default for equivalent-to-default constructors/destructors in xpcom. r=froydnj 2020-02-12 11:13:33 +00:00
nsUUIDGenerator.h
nsVersionComparator.cpp
nsVersionComparator.h
nsVersionComparatorImpl.cpp
nsVersionComparatorImpl.h Bug 1613985 - Use default for equivalent-to-default constructors/destructors in xpcom. r=froydnj 2020-02-12 11:13:33 +00:00
nsWeakReference.cpp
nsWeakReference.h Bug 1535617: Part 1 - Add macros to clear weak references on unlink. r=mccr8 2020-02-25 19:44:27 +00:00
nsWindowsHelpers.h
nscore.h
nsrootidl.idl