Skip to content

Commit

Permalink
Wholesale switch remaining code to Goanna
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfbeast committed May 26, 2015
1 parent 1539e28 commit 1c32255
Show file tree
Hide file tree
Showing 589 changed files with 5,965 additions and 3,167 deletions.
4 changes: 1 addition & 3 deletions config/milestone.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
# x.x.x+
#
# Referenced by milestone.pl.
# Hopefully I'll be able to automate replacement of *all*
# hardcoded milestones in the tree from these two files.
#--------------------------------------------------------

25.5.0
1.0.0
2 changes: 1 addition & 1 deletion config/stl-headers
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
new

# FIXME: these headers haven't been reviewed yet, but we use them
# unsafely in Gecko, so we might as well prevent them from
# unsafely in Goanna, so we might as well prevent them from
# throwing exceptions
algorithm
atomic
Expand Down
2 changes: 1 addition & 1 deletion configure.in
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,7 @@ case "$target" in
MOZ_MSVC_STL_WRAP__RAISE=1
AC_DEFINE(MOZ_MSVC_STL_WRAP__RAISE)
else
AC_MSG_ERROR([Gecko exception wrapping doesn't understand your your MSVC/SDK. Please file a bug describing this error and your build configuration.])
AC_MSG_ERROR([Goanna exception wrapping doesn't understand your your MSVC/SDK. Please file a bug describing this error and your build configuration.])
fi
fi

Expand Down
2 changes: 1 addition & 1 deletion content/base/public/nsContentCreatorFunctions.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#include "mozilla/dom/FromParser.h"

/**
* Functions to create content, to be used only inside Gecko
* Functions to create content, to be used only inside Goanna
* (mozilla/content and mozilla/layout).
*/

Expand Down
10 changes: 5 additions & 5 deletions content/base/public/nsIContentPolicy.idl
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ typedef unsigned long nsContentPolicyType;
interface nsIContentPolicy : nsISupports
{
/**
* Gecko/Firefox developers: Do not use TYPE_OTHER under any circumstances.
* Goanna/Pale Moon developers: Do not use TYPE_OTHER under any circumstances.
*
* Extension developers: Whenever it is reasonable, use one of the existing
* content types. If none of the existing content types are right for
Expand All @@ -39,7 +39,7 @@ interface nsIContentPolicy : nsISupports
* value and name your new content type will have; in that interim period,
* use TYPE_OTHER. In your patch, document your new content type in the style
* of the existing ones. In the bug you file, provide a more detailed
* description of the new type of content you want Gecko to support, so that
* description of the new type of content you want Goanna to support, so that
* the existing implementations of nsIContentPolicy can be properly modified
* to deal with that new type of content.
*
Expand Down Expand Up @@ -223,12 +223,12 @@ interface nsIContentPolicy : nsISupports
* attribute); does not reliably reflect the
* actual MIME type of the requested content
*
* @param aExtra an OPTIONAL argument, pass-through for non-Gecko
* @param aExtra an OPTIONAL argument, pass-through for non-Goanna
* callers to pass extra data to callees.
*
* @param aRequestPrincipal an OPTIONAL argument, defines the principal that
* caused the load. This is optional only for
* non-gecko code: all gecko code should set this
* non-goanna code: all goanna code should set this
* argument. For navigation events, this is
* the principal of the page that caused this load.
*
Expand Down Expand Up @@ -285,7 +285,7 @@ interface nsIContentPolicy : nsISupports
* if available (may be empty if inappropriate for
* the type, e.g., TYPE_REFRESH).
*
* @param aExtra an OPTIONAL argument, pass-through for non-Gecko
* @param aExtra an OPTIONAL argument, pass-through for non-Goanna
* callers to pass extra data to callees.
*
* @return ACCEPT or REJECT_*
Expand Down
6 changes: 3 additions & 3 deletions content/base/public/nsIDocument.h
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ NS_GetContentList(nsINode* aRootNode,
//----------------------------------------------------------------------

// Document interface. This is implemented by all document objects in
// Gecko.
// Goanna.
class nsIDocument : public nsINode
{
public:
Expand Down Expand Up @@ -1068,8 +1068,8 @@ class nsIDocument : public nsINode
}

/**
* Only to be used inside Gecko, you can't really do anything with the
* pointer outside Gecko anyway.
* Only to be used inside Goanna, you can't really do anything with the
* pointer outside Goanna anyway.
*/
nsNodeInfoManager* NodeInfoManager() const
{
Expand Down
4 changes: 2 additions & 2 deletions content/base/public/nsINodeInfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,8 @@ class nsINodeInfo : public nsISupports
}

/**
* Get the owning node info manager. Only to be used inside Gecko, you can't
* really do anything with the pointer outside Gecko anyway.
* Get the owning node info manager. Only to be used inside Goanna, you can't
* really do anything with the pointer outside Goanna anyway.
*/
nsNodeInfoManager *NodeInfoManager() const
{
Expand Down
2 changes: 1 addition & 1 deletion content/base/src/Element.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3000,7 +3000,7 @@ ShouldEscape(nsIContent* aParent)
// Per the current spec noscript should be escaped in case
// scripts are disabled or if document doesn't have
// browsing context. However the latter seems to be a spec bug
// and Gecko hasn't traditionally done the former.
// and Goanna hasn't traditionally done the former.
nsGkAtoms::noscript
};
static mozilla::BloomFilter<12, nsIAtom> sFilter;
Expand Down
2 changes: 1 addition & 1 deletion content/base/src/nsContentUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5992,7 +5992,7 @@ nsContentUtils::FindInternalContentViewer(const char* aType,
nsCOMPtr<nsIDocumentLoaderFactory> docFactory;

nsXPIDLCString contractID;
nsresult rv = catMan->GetCategoryEntry("Gecko-Content-Viewers", aType, getter_Copies(contractID));
nsresult rv = catMan->GetCategoryEntry("Goanna-Content-Viewers", aType, getter_Copies(contractID));
if (NS_SUCCEEDED(rv)) {
docFactory = do_GetService(contractID);
if (docFactory && aLoaderType) {
Expand Down
2 changes: 1 addition & 1 deletion content/base/src/nsDOMMutationObserver.h
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ class nsMutationReceiverBase : public nsStubMutationObserver
nsINode* mTarget;
nsDOMMutationObserver* mObserver;
nsRefPtr<nsMutationReceiverBase> mParent; // Cleared after microtask.
// The node to which Gecko-internal nsIMutationObserver was registered to.
// The node to which Goanna-internal nsIMutationObserver was registered to.
// This is different than mTarget when dealing with transient observers.
nsINode* mRegisterTarget;
nsCOMArray<nsMutationReceiverBase> mTransientReceivers;
Expand Down
2 changes: 1 addition & 1 deletion content/base/src/nsDocument.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1021,7 +1021,7 @@ nsExternalResourceMap::PendingLoad::SetupViewer(nsIRequest* aRequest,
do_GetService(NS_CATEGORYMANAGER_CONTRACTID);
NS_ENSURE_TRUE(catMan, NS_ERROR_NOT_AVAILABLE);
nsXPIDLCString contractId;
nsresult rv = catMan->GetCategoryEntry("Gecko-Content-Viewers", type.get(),
nsresult rv = catMan->GetCategoryEntry("Goanna-Content-Viewers", type.get(),
getter_Copies(contractId));
NS_ENSURE_SUCCESS(rv, rv);
nsCOMPtr<nsIDocumentLoaderFactory> docLoaderFactory =
Expand Down
2 changes: 1 addition & 1 deletion content/base/src/nsFrameLoader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
#include "mozilla/dom/Element.h"
#include "mozilla/layout/RenderFrameParent.h"
#include "nsIAppsService.h"
#include "GeckoProfiler.h"
#include "GoannaProfiler.h"

#include "jsapi.h"
#include "mozilla/dom/HTMLIFrameElement.h"
Expand Down
2 changes: 1 addition & 1 deletion content/base/src/nsFrameMessageManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ NS_IMETHODIMP
nsFrameMessageManager::Dump(const nsAString& aStr)
{
#ifdef ANDROID
__android_log_print(ANDROID_LOG_INFO, "Gecko", "%s", NS_ConvertUTF16toUTF8(aStr).get());
__android_log_print(ANDROID_LOG_INFO, "Goanna", "%s", NS_ConvertUTF16toUTF8(aStr).get());
#endif
#ifdef XP_WIN
if (IsDebuggerPresent()) {
Expand Down
2 changes: 1 addition & 1 deletion content/base/src/nsObjectLoadingContent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
#include "nsIChannelPolicy.h"
#include "nsChannelPolicy.h"
#include "mozilla/dom/Element.h"
#include "GeckoProfiler.h"
#include "GoannaProfiler.h"
#include "nsObjectFrame.h"
#include "nsDOMClassInfo.h"
#include "nsWrapperCacheInlines.h"
Expand Down
4 changes: 2 additions & 2 deletions content/base/src/nsScriptLoader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,7 @@ nsScriptLoader::ProcessScriptElement(nsIScriptElement *aElement)
}
if (!aElement->GetParserCreated()) {
// Violate the HTML5 spec in order to make LABjs and the "order" plug-in
// for RequireJS work with their Gecko-sniffed code path. See
// for RequireJS work with their Goanna-sniffed code path. See
// http://lists.w3.org/Archives/Public/public-html/2010Oct/0088.html
mNonAsyncExternalScriptInsertedRequests.AppendElement(request);
if (!request->mLoading) {
Expand Down Expand Up @@ -909,7 +909,7 @@ nsScriptLoader::ProcessPendingRequests()
!mNonAsyncExternalScriptInsertedRequests[0]->mLoading) {
// Violate the HTML5 spec and execute these in the insertion order in
// order to make LABjs and the "order" plug-in for RequireJS work with
// their Gecko-sniffed code path. See
// their Goanna-sniffed code path. See
// http://lists.w3.org/Archives/Public/public-html/2010Oct/0088.html
request.swap(mNonAsyncExternalScriptInsertedRequests[0]);
mNonAsyncExternalScriptInsertedRequests.RemoveElementAt(0);
Expand Down
2 changes: 1 addition & 1 deletion content/base/src/nsTreeSanitizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1321,7 +1321,7 @@ nsTreeSanitizer::SanitizeURL(mozilla::dom::Element* aElement,
} else if (nsGkAtoms::cdgroup_ == aLocalName ||
nsGkAtoms::altimg_ == aLocalName ||
nsGkAtoms::definitionURL_ == aLocalName) {
// Gecko doesn't fetch these now and shouldn't in the future, but
// Goanna doesn't fetch these now and shouldn't in the future, but
// in case someone goofs with these in the future, let's drop them.
rv = NS_ERROR_FAILURE;
} else {
Expand Down
2 changes: 1 addition & 1 deletion content/base/src/nsXMLHttpRequest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
#include "nsDOMFile.h"
#include "nsIFileChannel.h"
#include "jsfriendapi.h"
#include "GeckoProfiler.h"
#include "GoannaProfiler.h"
#include "mozilla/dom/EncodingUtils.h"
#include "mozilla/dom/XMLHttpRequestBinding.h"
#include "nsIDOMFormData.h"
Expand Down
4 changes: 2 additions & 2 deletions content/base/test/test_bug345339.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
iframeDoc.getElementById("select").selectedIndex = 1;
iframeDoc.getElementById("radio2").checked = true;
iframeDoc.getElementById("password").value = "123456";
iframeDoc.getElementById("hidden").value = "gecko";
iframeDoc.getElementById("hidden").value = "goanna";

var file = SpecialPowers.Cc["@mozilla.org/file/directory_service;1"]
.getService(SpecialPowers.Ci.nsIProperties)
Expand Down Expand Up @@ -59,7 +59,7 @@
"radio button #2 value preserved");
isnot(iframeDoc.getElementById("password").value, "123456",
"password field value forgotten");
is(iframeDoc.getElementById("hidden").value, "gecko",
is(iframeDoc.getElementById("hidden").value, "goanna",
"hidden field value preserved");
is(SpecialPowers.wrap(iframeDoc).getElementById("file").value, filePath,
"file field value preserved");
Expand Down
2 changes: 1 addition & 1 deletion content/events/public/nsEventDispatcher.h
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ class MOZ_STACK_CLASS nsDispatchingCallback {

/**
* The generic class for event dispatching.
* Must not be used outside Gecko!
* Must not be used outside Goanna!
*/
class nsEventDispatcher
{
Expand Down
2 changes: 1 addition & 1 deletion content/events/public/nsEventNameList.h
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ EVENT(paste,
NS_PASTE,
EventNameType_HTMLXUL,
NS_CLIPBOARD_EVENT)
// Gecko-specific extensions that apply to elements
// Goanna-specific extensions that apply to elements
EVENT(beforescriptexecute,
NS_BEFORE_SCRIPT_EXECUTE,
EventNameType_HTMLXUL,
Expand Down
2 changes: 1 addition & 1 deletion content/events/public/nsEventStates.h
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ class nsEventStates
// Content is still loading such that there is nothing to show the
// user (eg an image which hasn't started coming in yet).
#define NS_EVENT_STATE_LOADING NS_DEFINE_EVENT_STATE_MACRO(22)
// Content is of a type that gecko can't handle.
// Content is of a type that goanna can't handle.
#define NS_EVENT_STATE_TYPE_UNSUPPORTED NS_DEFINE_EVENT_STATE_MACRO(23)
#define NS_EVENT_STATE_INCREMENT_SCRIPT_LEVEL NS_DEFINE_EVENT_STATE_MACRO(24)
// Handler for the content has been blocked.
Expand Down
2 changes: 1 addition & 1 deletion content/events/src/nsEventDispatcher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#include "nsPIDOMWindow.h"
#include "nsFrameLoader.h"
#include "nsDOMTouchEvent.h"
#include "GeckoProfiler.h"
#include "GoannaProfiler.h"
#include "GeneratedEvents.h"
#include "mozilla/dom/EventTarget.h"

Expand Down
4 changes: 2 additions & 2 deletions content/events/src/nsEventStateManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@

#include "mozilla/Preferences.h"
#include "mozilla/LookAndFeel.h"
#include "GeckoProfiler.h"
#include "GoannaProfiler.h"

#include "nsIDOMClientRect.h"

Expand Down Expand Up @@ -1018,7 +1018,7 @@ nsEventStateManager::PreHandleEvent(nsPresContext* aPresContext,
case NS_DRAGDROP_GESTURE:
if (mClickHoldContextMenu) {
// an external drag gesture event came in, not generated internally
// by Gecko. Make sure we get rid of the click-hold timer.
// by Goanna. Make sure we get rid of the click-hold timer.
KillClickHoldTimer();
}
break;
Expand Down
2 changes: 1 addition & 1 deletion content/events/src/nsEventStateManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ class nsEventStateManager : public nsSupportsWeakReference,

/**
* DispatchLegacyMouseScrollEvents() dispatches NS_MOUSE_SCROLL event and
* NS_MOUSE_PIXEL_SCROLL event for compatiblity with old Gecko.
* NS_MOUSE_PIXEL_SCROLL event for compatiblity with old Goanna.
*/
void DispatchLegacyMouseScrollEvents(nsIFrame* aTargetFrame,
mozilla::widget::WheelEvent* aEvent,
Expand Down
2 changes: 1 addition & 1 deletion content/html/content/src/nsGenericHTMLFrameElement.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#include "nsServiceManagerUtils.h"
#include "nsIDOMApplicationRegistry.h"
#include "nsIPermissionManager.h"
#include "GeckoProfiler.h"
#include "GoannaProfiler.h"

using namespace mozilla;
using namespace mozilla::dom;
Expand Down
2 changes: 1 addition & 1 deletion content/html/content/test/file_iframe_sandbox_d_if13.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
function doIf11TestPart2() {
var if_11 = document.getElementById('if_11');
if_11.sandbox = 'allow-scripts allow-same-origin';
// window.history is no longer cross-origin accessible in gecko.
// window.history is no longer cross-origin accessible in goanna.
SpecialPowers.wrap(if_11).contentWindow.history.back();
}
</script>
Expand Down
2 changes: 1 addition & 1 deletion content/html/content/test/test_bug607145.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

/**
* This is not really reflecting an URL as the HTML5 specs want to.
* It's how .action is reflected in Gecko (might change later).
* It's how .action is reflected in Goanna (might change later).
*
* If this changes, add reflectURL for "formAction" in
* content/html/content/test/forms/test_input_attributes_reflection.html and
Expand Down
2 changes: 1 addition & 1 deletion content/html/document/src/PluginDocument.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#include "nsIPropertyBag2.h"
#include "mozilla/dom/Element.h"
#include "nsObjectLoadingContent.h"
#include "GeckoProfiler.h"
#include "GoannaProfiler.h"

namespace mozilla {
namespace dom {
Expand Down
2 changes: 1 addition & 1 deletion content/media/MediaDecoder.h
Original file line number Diff line number Diff line change
Expand Up @@ -783,7 +783,7 @@ class MediaDecoder : public nsIObserver,
// Estimate of the current playback rate (bytes/second).
double mPlaybackRate;
// Estimate of the current download rate (bytes/second). This
// ignores time that the channel was paused by Gecko.
// ignores time that the channel was paused by Goanna.
double mDownloadRate;
// Total length of media stream in bytes; -1 if not known
int64_t mTotalBytes;
Expand Down
2 changes: 1 addition & 1 deletion content/media/MediaDecoderStateMachine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ MediaDecoderStateMachine::MediaDecoderStateMachine(MediaDecoder* aDecoder,
#if defined(MOZ_OMX_DECODER) || defined(MOZ_MEDIA_PLUGINS)
// On B2G and Android this is decided by a similar value which varies for
// each OMX decoder |OMX_PARAM_PORTDEFINITIONTYPE::nBufferCountMin|. This
// number must be less than the OMX equivalent or gecko will think it is
// number must be less than the OMX equivalent or goanna will think it is
// chronically starved of video frames. All decoders seen so far have a value
// of at least 4.
mAmpleVideoFrames = Preferences::GetUint("media.video-queue.default-size", 3);
Expand Down
2 changes: 1 addition & 1 deletion content/media/MediaResource.h
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ class MediaResource
virtual void Pin() = 0;
virtual void Unpin() = 0;
// Get the estimated download rate in bytes per second (assuming no
// pausing of the channel is requested by Gecko).
// pausing of the channel is requested by Goanna).
// *aIsReliable is set to true if we think the estimate is useful.
virtual double GetDownloadRate(bool* aIsReliable) = 0;
// Get the length of the stream in bytes. Returns -1 if not known.
Expand Down
2 changes: 1 addition & 1 deletion content/media/WebVTTLoadListener.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ namespace mozilla {
namespace dom {
/**
* Class that manages the libwebvtt parsing library and functions as an
* interface between Gecko and libwebvtt.
* interface between Goanna and libwebvtt.
*
* Currently it's only designed to work with an HTMLTrackElement. The
* HTMLTrackElement controls the lifetime of the WebVTTLoadListener.
Expand Down
2 changes: 1 addition & 1 deletion content/media/gstreamer/GStreamerReader.h
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ class GStreamerReader : public MediaDecoderReader
GstAppSrcCallbacks mSrcCallbacks;
GstAppSinkCallbacks mSinkCallbacks;
/* monitor used to synchronize access to shared state between gstreamer
* threads and other gecko threads */
* threads and other goanna threads */
ReentrantMonitor mGstThreadsMonitor;
/* video and audio segments we use to convert absolute timestamps to [0,
* stream_duration]. They're set when the pipeline is started or after a seek.
Expand Down
2 changes: 1 addition & 1 deletion content/media/plugins/MPAPI.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ enum ColorFormat {
};

/*
* A callback for the plugin to use to request a buffer owned by gecko. This can
* A callback for the plugin to use to request a buffer owned by goanna. This can
* save us a copy or two down the line.
*/
class BufferCallback {
Expand Down
4 changes: 2 additions & 2 deletions content/smil/nsSMILCSSProperty.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ nsSMILCSSProperty::ClearAnimValue()
bool
nsSMILCSSProperty::IsPropertyAnimatable(nsCSSProperty aPropID)
{
// NOTE: Right now, Gecko doesn't recognize the following properties from
// NOTE: Right now, Goanna doesn't recognize the following properties from
// the SVG Property Index:
// alignment-baseline
// baseline-shift
Expand Down Expand Up @@ -256,7 +256,7 @@ nsSMILCSSProperty::IsPropertyAnimatable(nsCSSProperty aPropID)
return true;

// EXPLICITLY NON-ANIMATABLE PROPERTIES:
// (Some of these aren't supported at all in Gecko -- I've commented those
// (Some of these aren't supported at all in Goanna -- I've commented those
// ones out. If/when we add support for them, uncomment their line here)
// ----------------------------------------------------------------------
// case eCSSProperty_enable_background:
Expand Down
Loading

0 comments on commit 1c32255

Please sign in to comment.