Closed
Bug 598122
Opened 14 years ago
Closed 14 years ago
nsDocument.cpp: In member function ‘nsresult nsDocument::CheckFrameOptions()’: warning: unused variable ‘thisPrincipal’
Categories
(Core :: DOM: Core & HTML, defect)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
DUPLICATE
of bug 581226
People
(Reporter: dholbert, Assigned: juca)
References
Details
(Whiteboard: [build_warning])
Attachments
(1 file)
1.03 KB,
patch
|
dholbert
:
review+
|
Details | Diff | Splinter Review |
This changeset for Bug 593387:
http://hg.mozilla.org/mozilla-central/rev/f5c0015afe0e
added this chunk:
> 2402 // Find the top docshell in our parent chain that doesn't have the system
> 2403 // principal and use it for the principal comparison. Finding the top
> 2404 // content-type docshell doesn't work because some chrome documents are
> 2405 // loaded in content docshells (see bug 593387).
> 2406 nsIPrincipal* thisPrincipal = NodePrincipal();
Based on the comment there, it sounds like |thisPrincipal| might be something we're interested in using. However, GCC says (and a string-search confirms) that |thisPrincipal| is unused.
bsterne: Is this as simple as just "remove line 2406", or should we actually be using thisPrincipal somewhere?
Reporter | ||
Updated•14 years ago
|
Whiteboard: [build_warning]
Comment 1•14 years ago
|
||
Good catch dholbert. Yes, that line was left over from a previous version of the patch which used a different (principal-based) approach. We can just remove it.
Assignee | ||
Comment 2•14 years ago
|
||
Attachment #476911 -
Flags: review?(dholbert)
Reporter | ||
Updated•14 years ago
|
Attachment #476911 -
Flags: review?(dholbert) → review+
Reporter | ||
Comment 3•14 years ago
|
||
Comment on attachment 476911 [details] [diff] [review]
remove it
Requesting approval to remove an unused variable that was introduced by a blocker's checkin. (bug 593387)
Attachment #476911 -
Flags: approval2.0?
Reporter | ||
Updated•14 years ago
|
Assignee: nobody → juca
Status: NEW → ASSIGNED
Comment 4•14 years ago
|
||
This is being fixed in bug 581226, duping (for lack of a better way to deal with a case like this).
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → DUPLICATE
Updated•14 years ago
|
Attachment #476911 -
Flags: approval2.0?
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•