Closed
Bug 1332463
Opened 7 years ago
Closed 7 years ago
Separate progress-related functionality out of ContentDelegate into ProgressDelegate
Categories
(Core Graveyard :: Embedding: APIs, defect)
Core Graveyard
Embedding: APIs
Tracking
(firefox54 fixed)
RESOLVED
FIXED
mozilla54
Tracking | Status | |
---|---|---|
firefox54 | --- | fixed |
People
(Reporter: droeh, Assigned: droeh)
References
Details
Attachments
(1 file, 1 obsolete file)
12.34 KB,
patch
|
droeh
:
review+
|
Details | Diff | Splinter Review |
onPageStart, onPageProgress, onPageStop, and possibly onSecurityChanged should be moved out of ContentDelegate and into ProgressDelegate.
Assignee | ||
Comment 1•7 years ago
|
||
This implements ProgressListener (with onPageStart, onPageStop, and onSecurityChanged) and updates the example app to log those events.
Assignee: nobody → droeh
Attachment #8834572 -
Flags: review?(nchen)
Comment 2•7 years ago
|
||
Comment on attachment 8834572 [details] [diff] [review] GeckoView ProgressListener Review of attachment 8834572 [details] [diff] [review]: ----------------------------------------------------------------- ::: mobile/android/chrome/content/geckoview.js @@ +33,5 @@ > function startup() { > dump("zerdatime " + Date.now() + " - geckoview chrome startup finished."); > > content = new GeckoViewContent(window, document.getElementById("content"), WindowEventDispatcher); > + progress = new GeckoViewProgress(window, document.getElementById("content"), WindowEventDispatcher); Put `document.getElementById("content")` in a variable so you can reuse it ::: mobile/android/geckoview/src/main/java/org/mozilla/gecko/GeckoView.java @@ +529,5 @@ > + * The security status has been updated. > + * @param view The GeckoView that initiated the callback. > + * @param status The new security status. > + */ > + public void onSecurityChanged(GeckoView view, int status); Please define constants for `status` ::: mobile/android/geckoview_example/src/main/java/org/mozilla/geckoview_example/GeckoViewActivity.java @@ +110,5 @@ > + > + @Override > + public void onSecurityChanged(GeckoView view, int status) { > + String statusString; > + if ((status & 1) > 0) { Use constants @@ +117,5 @@ > + statusString = "secure"; > + } else if ((status & 4) > 0) { > + statusString = "insecure"; > + } else { > + statusString = "what?"; "unknown" ::: mobile/android/modules/moz.build @@ +33,5 @@ > > # GeckoView-sepcific modules added separately. > EXTRA_JS_MODULES += [ > + 'GeckoViewContent.jsm', > + 'GeckoViewProgress.jsm' Your patch doesn't include GeckoViewProgress.jsm
Attachment #8834572 -
Flags: review?(nchen) → review+
Assignee | ||
Comment 3•7 years ago
|
||
Updated with Jim's suggested changes and rebased around Eugen's patch for bug 1322592; carrying over Jim's r+.
Attachment #8834572 -
Attachment is obsolete: true
Attachment #8836251 -
Flags: review+
Pushed by droeh@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/f88c8fc68103 Implement ProgressListener. r=jchen
Comment 5•7 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/f88c8fc68103
Status: NEW → RESOLVED
Closed: 7 years ago
status-firefox54:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla54
Updated•5 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•