Closed Bug 475069 Opened 16 years ago Closed 15 years ago

nsNavHistory::AddDocumentRedirect doesn't handle INTERNAL redirects

Categories

(Toolkit :: Places, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla1.9.2a1

People

(Reporter: jrmuizel, Assigned: jrmuizel)

References

Details

(Keywords: fixed1.9.1)

Attachments

(1 file, 1 obsolete file)

Attached patch Ignore INTERNAL redirects (obsolete) — Splinter Review
AddDocumentRedirect() doens't check for or handle INTERNAL redirects. It should likely ignore them. I ran into this when trying land the PAC patch from bug 235853 which causes a INTERNAL redirects to happen much more frequently. The INTERNAL redirects seem to have been breaking toolkit/components/places/tests/test_bug_411966.html.
Attachment #358465 - Flags: review?(mak77)
Blocks: 235853
Comment on attachment 358465 [details] [diff] [review]
Ignore INTERNAL redirects


>+  // ignore internal redirects
>+  if (aFlags & nsIChannelEventSink::REDIRECT_INTERNAL)
>+      return NS_OK;
>+

nit: please fix indentation on the return
looks good otherwise
Attachment #358465 - Flags: review?(mak77) → review+
Attachment #358465 - Attachment is obsolete: true
Attachment #358738 - Flags: superreview?(bzbarsky)
Attachment #358738 - Flags: superreview?(bzbarsky) → superreview?(mconnor)
Comment on attachment 358738 [details] [diff] [review]
Ignore INTERNAL redirects w/ indentation fixed.

Someone like mconnor (or someone else who knows what this code is trying to do) is a better sr here.  That's assuming this patch needs sr at all.
It doesn't need SR.
Attachment #358738 - Flags: superreview?(mconnor)
Whiteboard: checkin-needed
http://hg.mozilla.org/mozilla-central/rev/ace745f31c3e

Jeff, if you want this into 1.9.1, you'll need to ask for approval1.9.1.
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Whiteboard: checkin-needed
Assignee: nobody → jmuizelaar
Comment on attachment 358738 [details] [diff] [review]
Ignore INTERNAL redirects w/ indentation fixed.

askign approval 1.9.1, should have no risk and avoid us to retain useless (for Places) redirect data.
Attachment #358738 - Flags: approval1.9.1?
Attachment #358738 - Flags: approval1.9.1? → approval1.9.1+
Comment on attachment 358738 [details] [diff] [review]
Ignore INTERNAL redirects w/ indentation fixed.

a191=beltzner
Keywords: checkin-needed
Whiteboard: [c-n 191]
http://hg.mozilla.org/releases/mozilla-1.9.1/rev/d2cce66f5097
Whiteboard: [c-n 191]
Target Milestone: --- → mozilla1.9.2a1
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: