Closed Bug 1444138 Opened 7 years ago Closed 7 years ago

onLocationChange() sometimes gives URIs for non-toplevel frames

Categories

(GeckoView :: General, enhancement, P1)

enhancement

Tracking

(firefox61 fixed)

RESOLVED FIXED
mozilla61
Tracking Status
firefox61 --- fixed

People

(Reporter: snorp, Assigned: droeh)

References

(Blocks 1 open bug)

Details

(Whiteboard: [geckoview:klar])

Attachments

(1 file)

+++ This bug was initially created as a clone of Bug #1439013 +++ comment #4 in bug 1439013 indicates that we are firing onLocationChange() for iframes or something. That's bad.
Assignee: nobody → droeh
If we only want to report top-level location changes, this patch should do the trick. Otherwise we could change the API and pass isTopLevel to onLocationChange, if there's some reason that info might be interesting to a consumer.
Attachment #8961540 - Flags: review?(snorp)
Comment on attachment 8961540 [details] [diff] [review] Only report top-level location changes Review of attachment 8961540 [details] [diff] [review]: ----------------------------------------------------------------- Whoops!
Attachment #8961540 - Flags: review?(snorp) → review+
Pushed by droeh@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/5a91e917151b Only report top-level location changes via NavigationDelegate.onLocationChange() r=snorp
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 61
Depends on: 1448583
Product: Firefox for Android → GeckoView
Target Milestone: Firefox 61 → mozilla61
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: