Closed Bug 568925 Opened 12 years ago Closed 12 years ago

[e10s] remote History Set Title for URI

Categories

(Core :: IPC, defect)

x86
Windows CE
defect
Not set
normal

Tracking

()

RESOLVED FIXED
Tracking Status
fennec 2.0a1+ ---

People

(Reporter: dougt, Assigned: dougt)

References

Details

Attachments

(1 file, 1 obsolete file)

No description provided.
Attached patch patch v.1 (obsolete) — Splinter Review
Assignee: nobody → dougt
Attachment #448069 - Flags: review?(sdwilsh)
Attachment #448069 - Flags: review?(sdwilsh) → review?(jones.chris.g)
Comment on attachment 448069 [details] [diff] [review]
patch v.1

>diff --git a/toolkit/components/places/src/History.cpp b/toolkit/components/places/src/History.cpp
>--- a/toolkit/components/places/src/History.cpp
>+++ b/toolkit/components/places/src/History.cpp
>@@ -1162,18 +1162,28 @@ History::UnregisterVisitedCallback(nsIUR
> 
>   return NS_OK;
> }
> 
> NS_IMETHODIMP
> History::SetURITitle(nsIURI* aURI, const nsString& aTitle)
> {
>   NS_PRECONDITION(aURI, "Must pass a non-null URI!");
>+#ifdef MOZ_IPC
>+  if (XRE_GetProcessType() == GeckoProcessType_Content) {
>+    mozilla::dom::ContentProcessChild * cpc = 

Inconsistent pointer formatting (|Foo*| above).

>+      mozilla::dom::ContentProcessChild::GetSingleton();
>+    NS_ASSERTION(cpc, "Content Protocol is NULL!");
>+    (void) cpc->SendSetURITitle(IPC::URI(aURI), aTitle);
>+    return NS_OK;
>+  } 
>+#endif /* MOZ_IPC */
> 
>   nsNavHistory* history = nsNavHistory::GetHistoryService();
>+

Accidental newline?
Attachment #448069 - Flags: review?(jones.chris.g) → review+
http://hg.mozilla.org/projects/electrolysis/rev/87122ab4c9b2
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
This was backed out a few days ago because the required places patches were backed out.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Attached patch patch v1.1Splinter Review
just the patch Doug pushed to tryserver, that applies.
Attachment #448069 - Attachment is obsolete: true
Depends on: 556400
tracking-fennec: --- → 2.0+
tracking-fennec: 2.0+ → 2.0a1+
Blocks: 516521
Could we add the relevant places patches as dependencies please?  I'm having trouble figuring out what all needs to patched in what order.
OS: Linux → Windows CE
Comment on attachment 457429 [details] [diff] [review]
patch v1.1

moving review forward.
Attachment #457429 - Flags: review+
http://hg.mozilla.org/mozilla-central/rev/2900644a71c6
Status: REOPENED → RESOLVED
Closed: 12 years ago12 years ago
Resolution: --- → FIXED
Comment on attachment 457429 [details] [diff] [review]
patch v1.1

>@@ -1259,6 +1259,16 @@ History::SetURITitle(nsIURI* aURI, const nsAString& aTitle)
>     return NS_OK;
>   }
> 
>+#ifdef MOZ_IPC
>+  if (XRE_GetProcessType() == GeckoProcessType_Content) {
>+    mozilla::dom::ContentProcessChild* cpc = 
>+      mozilla::dom::ContentProcessChild::GetSingleton();
>+    NS_ASSERTION(cpc, "Content Protocol is NULL!");
>+    (void)cpc->SendSetURITitle(IPC::URI(aURI), nsDependentString(aTitle));
aTitle isn't guaranteed to be null-terminated. Did you mean PromiseFlatString?
no please file a new bug, and lets track it there.  Thanks for noticing this issue!
Depends on: 624742
You need to log in before you can comment on or make changes to this bug.