Closed
Bug 892357
Opened 11 years ago
Closed 11 years ago
Followup to bug 890454 - [Homescreen] The save-bookmark screen doesn't work fine when "Add to Home Screen" button is pressed continuously.
Categories
(Firefox OS Graveyard :: Gaia::Homescreen, defect, P1)
Tracking
(blocking-b2g:leo+, b2g18 fixed, b2g-v1.1hd fixed)
People
(Reporter: jsmith, Assigned: crdlc)
References
Details
(Whiteboard: [TD-58217], [LeoVB+])
Attachments
(3 files, 2 obsolete files)
Followup to bug 890454. Apparently https://bugzilla.mozilla.org/show_bug.cgi?id=890454#c12 reveals this is still reproducible even with the patch included.
Assignee | ||
Updated•11 years ago
|
Assignee: nobody → crdlc
Status: NEW → ASSIGNED
Assignee | ||
Comment 1•11 years ago
|
||
Attachment #773829 -
Flags: review?(francisco.jordano)
Assignee | ||
Comment 2•11 years ago
|
||
Comment on attachment 773829 [details]
Patch v2
Please could you test it before landing? Thanks
Attachment #773829 -
Flags: feedback?(cschmoeckel)
Severity: normal → critical
blocking-b2g: leo? → leo+
Priority: -- → P1
Whiteboard: [TD-58217]
Target Milestone: --- → 1.1 QE4 (15jul)
When I apply the "Patch v2", same issue is reproduced... Please check it again..
Assignee | ||
Comment 4•11 years ago
|
||
Sorry but I don't understand anything :( If you see the patch, the listener for the save button is removed the first time, I mean, with the first click is received: save: function bookmarkEditor_save(evt) { this.addButton.removeEventListener('click', this.saveListener);
Assignee | ||
Comment 5•11 years ago
|
||
Umm interesting, in v1-train there is not this code https://github.com/mozilla-b2g/gaia/blob/master/apps/homescreen/js/bookmark.js#L50 document.getElementById('bookmark-form').onsubmit = function() { return false; };
Assignee | ||
Comment 6•11 years ago
|
||
Attachment #773829 -
Attachment is obsolete: true
Attachment #773829 -
Flags: review?(francisco.jordano)
Attachment #773829 -
Flags: feedback?(cschmoeckel)
Attachment #773903 -
Flags: feedback?
When I apply v3 patch, same issue is reproduced. I inserted the log in homescreen and test, I found some info When issue is occured, 1. If user select "Add to Home Screen", save and close function are not run. 2. If user select "Add to Home Screen", below log is occured /GeckoConsole(17563): [JavaScript Error: "document.getElementById(...) is null" {file: "app://homescreen.gaiamobile.org/gaia_build_save-bookmark.js" line: 134}] E/GeckoConsole(17563): [JavaScript Error: "NS_ERROR_XPC_JAVASCRIPT_ERROR_WITH_DETAILS: '[JavaScript Error: "document.getElementById(...) is null" {file: "app://homescreen.gaiamobile.org/gaia_build_save-bookmark.js" line: 134}]' when calling method: [nsIDOMSystemMessageCallback::handleMessage]" {file: "jar:file:///system/b2g/omni.ja!/components/SystemMessageManager.js" line: 97}] E/GeckoConsole(17563): [JavaScript Warning: "Expected pseudo-element but found '-moz-placeholder'. Ruleset ignored due to bad selector." {file: "app://homescreen.gaiamobile.org/shared/style/input_areas.css" line: 40}] Please check these information
Flags: needinfo?(leo.bugzilla.gaia)
Assignee | ||
Comment 9•11 years ago
|
||
Hi Leo, I apologize for this problem but I cannot reproduce in my Unagi. This problem is very revealing, there is a race condition, sometimes the BookmarkEditor component is loaded before the DOM and pumm! If you test the new patch [1], at least the race condition should disappear and maybe the editor could finally work fine. Sorry again but it is very difficult to fix something what someone cannot reproduce by himself. Thanks [1] https://github.com/mozilla-b2g/gaia/pull/10936.patch
Flags: needinfo?(leo.bugzilla.gaia)
Comment 10•11 years ago
|
||
(In reply to Cristian Rodriguez de la Cruz (:crdlc) from comment #9) > Hi Leo, I apologize for this problem but I cannot reproduce in my Unagi. > This problem is very revealing, there is a race condition, sometimes the > BookmarkEditor component is loaded before the DOM and pumm! If you test the > new patch [1], at least the race condition should disappear and maybe the > editor could finally work fine. Sorry again but it is very difficult to fix > something what someone cannot reproduce by himself. When I apply comme9 patch, same issue is reproduced. But more rarely. And other log is occured E/GeckoConsole(23960): [JavaScript Error: "document.location is null" {file: "app://homescreen.gaiamobile.org/gaia_build_save-bookmark.js" line: 134}] E/GeckoConsole(23960): [JavaScript Error: "NS_ERROR_XPC_JAVASCRIPT_ERROR_WITH_DETAILS: '[JavaScript Error: "document.location is null" {file: "app://homescreen.gaiamobile.org/gaia_build_save-bookmark.js" line: 134}]' when calling method: [nsIDOMSystemMessageCallback::handleMessage]" {file: "jar:file:///system/b2g/omni.ja!/components/SystemMessageManager.js" line: 97}] E/GeckoConsole(23960): [JavaScript Warning: "Expected pseudo-element but found '-moz-placeholder'. Ruleset ignored due to bad selector." {file: "app://homescreen.gaiamobile.org/shared/style/input_areas.css" line: 40}]
Flags: needinfo?(leo.bugzilla.gaia)
Assignee | ||
Comment 11•11 years ago
|
||
I am lost right now :) I don't know how document.location is null, it is a pain on the neck jejeje this.origin = document.location.protocol + '//homescreen.' + document.location.host.replace(/(^[\w\d]+.)?([\w\d]+.[a-z]+)/, '$2');
Assignee | ||
Comment 12•11 years ago
|
||
one question, is this trace before clicking or after?
Assignee | ||
Comment 13•11 years ago
|
||
Please, I've changed the patch a bit and added some traces, could you test it again? https://github.com/mozilla-b2g/gaia/pull/10936.patch Thanks a lot
Comment 14•11 years ago
|
||
Same issue is occured. I attach log E/GeckoConsole(27269): Content JS LOG at app://homescreen.gaiamobile.org/gaia_build_save-bookmark.js:137 in onActivity: The origin is: app://homescreen.gaiamobile.org E/GeckoConsole(27269): [JavaScript Warning: "Expected pseudo-element but found '-moz-placeholder'. Ruleset ignored due to bad selector." {file: "app://homescreen.gaiamobile.org/shared/style/input_areas.css" line: 40}] E/GeckoConsole(27269): Content JS LOG at app://homescreen.gaiamobile.org/gaia_build_save-bookmark.js:137 in onActivity: The origin is: app://homescreen.gaiamobile.org E/GeckoConsole(27269): [JavaScript Error: "TypeError: this.oncancelled is not a function" {file: "app://homescreen.gaiamobile.org/gaia_build_save-bookmark.js" line: 134}] E/GeckoConsole(27269): [JavaScript Warning: "Expected pseudo-element but found '-moz-placeholder'. Ruleset ignored due to bad selector." {file: "app://homescreen.gaiamobile.org/shared/style/input_areas.css" line: 40}] Please check log. other log is occured also.
Assignee | ||
Comment 15•11 years ago
|
||
please strs?
Comment 16•11 years ago
|
||
And sometimes, E/GeckoConsole(28643): [JavaScript Error: "document.location is null" {file: "app://homescreen.gaiamobile.org/gaia_build_save-bookmark.js" line: 136}] E/GeckoConsole(28643): [JavaScript Error: "NS_ERROR_XPC_JAVASCRIPT_ERROR_WITH_DETAILS: '[JavaScript Error: "document.location is null" {file: "app://homescreen.gaiamobile.org/gaia_build_save-bookmark.js" line: 136}]' when calling method: [nsIDOMSystemMessageCallback::handleMessage]" {file: "jar:file:///system/b2g/omni.ja!/components/SystemMessageManager.js" line: 97}] These logs are shown.
Comment 17•11 years ago
|
||
When this case is occured, When I insert below log, document.location is null. save-bookmark.js : ========================================= console.log("document.location : " + document.location); if (data.type === 'url') { var origin = document.location.protocol + '//homescreen.' + document.location.host. replace(/(^[\w\d]+.)?([\w\d]+.[a-z]+)/, '$2'); console.log('The origin is: ' + origin); =========================================
Assignee | ||
Comment 18•11 years ago
|
||
Try it the last time https://github.com/mozilla-b2g/gaia/pull/10936.patch If the bug is still reproducible, maybe the problem is not in homescreen's code and other person could fix it Thanks
Flags: needinfo?(leo.bugzilla.gaia)
Comment 19•11 years ago
|
||
I apply this patch, this issue is not reproduced. But new issue is occured. Check the image. And device is changed this state, cannot close screen. Only can go home.(x button is not run) Please check
Flags: needinfo?(leo.bugzilla.gaia)
Assignee | ||
Comment 20•11 years ago
|
||
STR? When does it happen?
Comment 21•11 years ago
|
||
I perform same. But, it is rarely occured. I test about 1~200 times, new issue is occured 2~3 times
Comment 22•11 years ago
|
||
Log is : E/GeckoConsole( 483): Content JS LOG at app://homescreen.gaiamobile.org/gaia_build_save-bookmark.js:137 in onActivity: The origin is: app://homescreen.gaiamobile.org E/GeckoConsole( 483): Content JS LOG at app://homescreen.gaiamobile.org/gaia_build_save-bookmark.js:134 in bookmarkEditor_save: The save button was clicked E/GeckoConsole( 483): [JavaScript Warning: "Expected pseudo-element but found '-moz-placeholder'. Ruleset ignored due to bad selector." {file: "app://homescreen.gaiamobile.org/shared/style/input_areas.css" line: 40}] E/GeckoConsole( 483): Content JS LOG at app://homescreen.gaiamobile.org/gaia_build_save-bookmark.js:137 in onActivity: The origin is: app://homescreen.gaiamobile.org E/GeckoConsole( 483): Content JS LOG at app://homescreen.gaiamobile.org/gaia_build_save-bookmark.js:134 in bookmarkEditor_save: The save button was clicked E/GeckoConsole( 483): [JavaScript Warning: "Expected pseudo-element but found '-moz-placeholder'. Ruleset ignored due to bad selector." {file: "app://homescreen.gaiamobile.org/shared/style/input_areas.css" line: 40}] E/GeckoConsole( 483): Content JS LOG at app://homescreen.gaiamobile.org/gaia_build_save-bookmark.js:137 in onActivity: The origin is: app://homescreen.gaiamobile.org In this case, I don't search problem in logs...
Assignee | ||
Comment 23•11 years ago
|
||
I am writing a lot of traces in order to know what's happen when it fails. Although the first time it works fine, right? Thanks
Assignee | ||
Comment 24•11 years ago
|
||
Ready https://github.com/mozilla-b2g/gaia/pull/10936.patch Thanks for your great help!
Flags: needinfo?(leo.bugzilla.gaia)
Assignee | ||
Comment 25•11 years ago
|
||
Please make sure that this code: document.readyState === 'interactive is available in the patch what you are testing right now Thanks a lot
Comment 26•11 years ago
|
||
I test 200 times, original issue and new issue are not reproduced. I think issue is fixed. Thanks for your help!
Flags: needinfo?(leo.bugzilla.gaia)
Assignee | ||
Comment 27•11 years ago
|
||
Thanks to you!! I couldn't fix it without your help
Assignee | ||
Comment 28•11 years ago
|
||
Attachment #773903 -
Attachment is obsolete: true
Attachment #773903 -
Flags: feedback?
Attachment #774578 -
Flags: review?(jmcf)
Assignee | ||
Comment 29•11 years ago
|
||
Attachment #774589 -
Flags: review?(jmcf)
Updated•11 years ago
|
Attachment #774589 -
Flags: review?(jmcf) → review+
Updated•11 years ago
|
Attachment #774578 -
Flags: review?(jmcf) → review+
Assignee | ||
Comment 30•11 years ago
|
||
master: https://github.com/mozilla-b2g/gaia/commit/7cce92f408d64d3c66f9a533d34a477fe456d3e9 v1-train: https://github.com/mozilla-b2g/gaia/commit/55ed5e08a2250ea2d3571fff860c39e66fabed14
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Updated•11 years ago
|
status-b2g18:
--- → fixed
Comment 31•11 years ago
|
||
Not able to reproduce this bug with unagi v1-train 07/19 build: Gecko-6b60535 Gaia-4abea64 ref ril
Status: RESOLVED → VERIFIED
Comment 32•11 years ago
|
||
v1.1.0hd: 55ed5e08a2250ea2d3571fff860c39e66fabed14 v1.1.0hd: bd6659f4c2cb03e09d5ce5bda54a92d2015b9ec5
status-b2g-v1.1hd:
--- → fixed
You need to log in
before you can comment on or make changes to this bug.
Description
•