Bug 1372405 - Provide names for all runnables in the tree (r=froydnj)
MozReview-Commit-ID: DKR6ROiHRS7
This commit is contained in:
@@ -454,9 +454,12 @@ nsPingListener::StartTimeout(DocGroup* aDocGroup)
|
||||
timer->SetTarget(aDocGroup->EventTargetFor(TaskCategory::Network));
|
||||
|
||||
if (timer) {
|
||||
nsresult rv = timer->InitWithFuncCallback(OnPingTimeout, mLoadGroup,
|
||||
PING_TIMEOUT,
|
||||
nsITimer::TYPE_ONE_SHOT);
|
||||
nsresult rv =
|
||||
timer->InitWithNamedFuncCallback(OnPingTimeout,
|
||||
mLoadGroup,
|
||||
PING_TIMEOUT,
|
||||
nsITimer::TYPE_ONE_SHOT,
|
||||
"nsPingListener::StartTimeout");
|
||||
if (NS_SUCCEEDED(rv)) {
|
||||
mTimer = timer;
|
||||
return NS_OK;
|
||||
@@ -1767,10 +1770,12 @@ nsDocShell::DispatchToTabGroup(const char* aName,
|
||||
NS_IMETHODIMP
|
||||
nsDocShell::DispatchLocationChangeEvent()
|
||||
{
|
||||
return DispatchToTabGroup("nsDocShell::FireDummyOnLocationChange",
|
||||
TaskCategory::Other,
|
||||
NewRunnableMethod(this,
|
||||
&nsDocShell::FireDummyOnLocationChange));
|
||||
return DispatchToTabGroup(
|
||||
"nsDocShell::FireDummyOnLocationChange",
|
||||
TaskCategory::Other,
|
||||
NewRunnableMethod("nsDocShell::FireDummyOnLocationChange",
|
||||
this,
|
||||
&nsDocShell::FireDummyOnLocationChange));
|
||||
}
|
||||
|
||||
bool
|
||||
@@ -9644,13 +9649,20 @@ public:
|
||||
bool aLoadReplace,
|
||||
nsIURI* aReferrer, uint32_t aReferrerPolicy,
|
||||
nsIPrincipal* aTriggeringPrincipal,
|
||||
nsIPrincipal* aPrincipalToInherit, uint32_t aFlags,
|
||||
const char* aTypeHint, nsIInputStream* aPostData,
|
||||
nsIInputStream* aHeadersData, uint32_t aLoadType,
|
||||
nsISHEntry* aSHEntry, bool aFirstParty,
|
||||
const nsAString& aSrcdoc, nsIDocShell* aSourceDocShell,
|
||||
nsIURI* aBaseURI, bool aCheckForPrerender)
|
||||
: mSrcdoc(aSrcdoc)
|
||||
nsIPrincipal* aPrincipalToInherit,
|
||||
uint32_t aFlags,
|
||||
const char* aTypeHint,
|
||||
nsIInputStream* aPostData,
|
||||
nsIInputStream* aHeadersData,
|
||||
uint32_t aLoadType,
|
||||
nsISHEntry* aSHEntry,
|
||||
bool aFirstParty,
|
||||
const nsAString& aSrcdoc,
|
||||
nsIDocShell* aSourceDocShell,
|
||||
nsIURI* aBaseURI,
|
||||
bool aCheckForPrerender)
|
||||
: mozilla::Runnable("InternalLoadEvent")
|
||||
, mSrcdoc(aSrcdoc)
|
||||
, mDocShell(aDocShell)
|
||||
, mURI(aURI)
|
||||
, mOriginalURI(aOriginalURI)
|
||||
@@ -14042,7 +14054,8 @@ OnLinkClickEvent::OnLinkClickEvent(nsDocShell* aHandler,
|
||||
bool aNoOpenerImplied,
|
||||
bool aIsTrusted,
|
||||
nsIPrincipal* aTriggeringPrincipal)
|
||||
: mHandler(aHandler)
|
||||
: mozilla::Runnable("OnLinkClickEvent")
|
||||
, mHandler(aHandler)
|
||||
, mURI(aURI)
|
||||
, mTargetSpec(aTargetSpec)
|
||||
, mFileName(aFileName)
|
||||
|
||||
Reference in New Issue
Block a user