Closed
Bug 1271436
Opened 8 years ago
Closed 8 years ago
some docshell cleanups
Categories
(Core :: DOM: Navigation, defect)
Core
DOM: Navigation
Tracking
()
RESOLVED
FIXED
mozilla49
Tracking | Status | |
---|---|---|
firefox49 | --- | fixed |
People
(Reporter: tbsaunde, Unassigned)
Details
(Whiteboard: btpp-active)
Attachments
(4 files)
3.06 KB,
patch
|
smaug
:
review+
|
Details | Diff | Splinter Review |
6.82 KB,
patch
|
smaug
:
review+
|
Details | Diff | Splinter Review |
7.79 KB,
patch
|
smaug
:
review+
|
Details | Diff | Splinter Review |
2.83 KB,
patch
|
smaug
:
review+
|
Details | Diff | Splinter Review |
No description provided.
Reporter | ||
Comment 1•8 years ago
|
||
Attachment #8750472 -
Flags: review?(bugs)
Reporter | ||
Comment 2•8 years ago
|
||
Attachment #8750473 -
Flags: review?(bugs)
Reporter | ||
Comment 3•8 years ago
|
||
Attachment #8750474 -
Flags: review?(bugs)
Reporter | ||
Comment 4•8 years ago
|
||
Attachment #8750475 -
Flags: review?(bugs)
Updated•8 years ago
|
Whiteboard: btpp-active
Comment 5•8 years ago
|
||
Comment on attachment 8750472 [details] [diff] [review] use nsIDocShellTreeItem::GetWindow() more do_GetInterface can be actually quite nice, as can be seen here, since it deals with null checks. But fine.
Attachment #8750472 -
Flags: review?(bugs) → review+
Comment 6•8 years ago
|
||
Comment on attachment 8750473 [details] [diff] [review] use nsIDocShellTreeItem::GetDocument() more >+++ b/dom/base/nsFrameLoader.cpp >@@ -3178,17 +3178,17 @@ nsFrameLoader::StartPersistence(uint64_t aOuterWindowID, > if (!aRecv) { > return NS_ERROR_INVALID_POINTER; > } > > if (mRemoteBrowser) { > return mRemoteBrowser->StartPersistence(aOuterWindowID, aRecv); > } > >- nsCOMPtr<nsIDocument> rootDoc = do_GetInterface(mDocShell); >+ nsCOMPtr<nsIDocument> rootDoc = mDocShell->GetDocument(); You need to null check mDocShell here.
Attachment #8750473 -
Flags: review?(bugs) → review+
Comment 7•8 years ago
|
||
Comment on attachment 8750474 [details] [diff] [review] add nsIDocShell::GetCommandManager() >+++ b/docshell/base/nsIDocShell.idl ... >+ >+[noscript,nostdcall,notxpcom] nsICommandManager GetCommandManager(); Missing indentation.
Attachment #8750474 -
Flags: review?(bugs) → review+
Comment 8•8 years ago
|
||
Comment on attachment 8750475 [details] [diff] [review] use do_GetInterface() a little less > SpeakerManager::Init(nsPIDOMWindowInner* aWindow) > { > BindToOwner(aWindow); > >- nsCOMPtr<nsIDocShell> docshell = do_GetInterface(GetOwner()); >+ nsCOMPtr<nsIDocShell> docshell = GetOwner()->GetDocShell(); Ok, so this is fine because the only caller of Init happens to pass always non-null.
Attachment #8750475 -
Flags: review?(bugs) → review+
https://hg.mozilla.org/integration/mozilla-inbound/rev/78cac68e8c4d https://hg.mozilla.org/integration/mozilla-inbound/rev/969913024af1 https://hg.mozilla.org/integration/mozilla-inbound/rev/5e2d4fd85333 https://hg.mozilla.org/integration/mozilla-inbound/rev/9fff8c6a9844
Comment 10•8 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/78cac68e8c4d https://hg.mozilla.org/mozilla-central/rev/969913024af1 https://hg.mozilla.org/mozilla-central/rev/5e2d4fd85333 https://hg.mozilla.org/mozilla-central/rev/9fff8c6a9844
Status: NEW → RESOLVED
Closed: 8 years ago
status-firefox49:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla49
You need to log in
before you can comment on or make changes to this bug.
Description
•