Closed
Bug 927451
Opened 12 years ago
Closed 12 years ago
GeckoView profile folder is not created
Categories
(Core Graveyard :: Embedding: GRE Core, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla27
People
(Reporter: mfinkle, Assigned: mfinkle)
References
Details
Attachments
(1 file, 2 obsolete files)
2.35 KB,
patch
|
mfinkle
:
review+
|
Details | Diff | Splinter Review |
GeckoProfile.get(...) is not enough to cause the actual folder to be created. This patch does a profile.detDir() call that forces the folder to be created. It looks like GeckoProfile should provide some other sane way to do this, but it doesn't yet.
Attachment #817887 -
Flags: review?(blassey.bugs)
Assignee | ||
Comment 1•12 years ago
|
||
Note: With this patch, I can run GeckoView demos on my < 4.3 Android devices again. Android 4.3 still seems broken, but the browser.js code is working. It seems to be a layer view issue. More debugging needed in bug 921792.
Comment 2•12 years ago
|
||
Comment on attachment 817887 [details] [diff] [review]
geckoview-force-profile
Review of attachment 817887 [details] [diff] [review]:
-----------------------------------------------------------------
::: mobile/android/base/GeckoView.java
@@ +88,5 @@
> ThreadUtils.setUiThread(Thread.currentThread(), new Handler());
> initializeView(GeckoAppShell.getEventDispatcher());
>
> GeckoProfile profile = GeckoProfile.get(context);
> + profile.getDir();
not a fan of relying on this having a mysterious side effect. I'd rather add an ensureDir() method to GeckoProfile or a bool to the constructor to indicate that it should be created if it doesn't exist.
Attachment #817887 -
Flags: review?(blassey.bugs) → review-
Assignee | ||
Comment 3•12 years ago
|
||
I went with "ensureExists" to better tell us what it's doing. Added Wes too so he knows what's happening.
Assignee: nobody → mark.finkle
Attachment #817887 -
Attachment is obsolete: true
Attachment #817963 -
Flags: review?(wjohnston)
Attachment #817963 -
Flags: review?(blassey.bugs)
Updated•12 years ago
|
Attachment #817963 -
Flags: review?(blassey.bugs) → review+
Comment 4•12 years ago
|
||
Comment on attachment 817963 [details] [diff] [review]
geckoview-force-profile v2
Review of attachment 817963 [details] [diff] [review]:
-----------------------------------------------------------------
::: mobile/android/base/GeckoView.java
@@ +88,5 @@
> ThreadUtils.setUiThread(Thread.currentThread(), new Handler());
> initializeView(GeckoAppShell.getEventDispatcher());
>
> GeckoProfile profile = GeckoProfile.get(context);
> + profile.ensureExists();
I think I'd like this slightly better if it read something like:
GeckoProfile profile = GeckoProfile.get(context).forceCreate();
Attachment #817963 -
Flags: review?(wjohnston) → review+
Assignee | ||
Comment 5•12 years ago
|
||
Wes' requested changes were enough for me to get another review. Make sure the "fluent" stuff looks right in forceCreate()
Attachment #817963 -
Attachment is obsolete: true
Attachment #818018 -
Flags: review?(wjohnston)
Assignee | ||
Comment 6•12 years ago
|
||
Comment on attachment 818018 [details] [diff] [review]
geckoview-force-profile v3
Wes gave a thumbs up on IRC
Attachment #818018 -
Flags: review?(wjohnston) → review+
Assignee | ||
Comment 7•12 years ago
|
||
Comment 8•12 years ago
|
||
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla27
Updated•9 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•