Closed Bug 1378236 Opened 9 years ago Closed 8 years ago

options ui back button issue

Categories

(Toolkit :: Add-ons Manager, defect, P5)

54 Branch
defect

Tracking

()

RESOLVED DUPLICATE of bug 1427991

People

(Reporter: HellBuster, Assigned: aastha.gupta4104, Mentored)

References

Details

(Keywords: good-first-bug)

Attachments

(1 file)

User Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:54.0) Gecko/20100101 Firefox/54.0 Build ID: 20170628075643 Steps to reproduce: All four extensions (favourite-colour, forget-it, google-userinfo and stored-credentials) of the webextensions-examples, which feature an options/settings user interface show following behavior (steps to reproduce): 1. visit about:addons 2. click on settings/options ("Einstellungen" in my language) of one of the mentioned example addons -> options page gets opened 3. click back button -> the user thinks, he will get back to the about:addons page, but instead just the controls of the extension disappear 4. click back button -> now we go back to about:addons Other extensions like Adblock Plus don't show such a behavior. Actual results: the controls of the extension disappear Expected results: get back to the about:addons page
Keywords: good-first-bug
Priority: -- → P5
Mentor: rhelmer
I would like to take this up.
Awesome! Aastha, if you need any help, please feel free to needinfo Rob Helmer. Rob will be mentoring this bug. :)
Assignee: nobody → aastha.gupta4104
Hi! This bug occurs for all the extensions in webextension-examples which have a options_ui key in manifest.json. In the about:addons page for the other extension which don't have this problem they are integrated into the webpage whereas the extensions with these bugs integrate a html doc into the webpage. I think the problem is with how option_ui key is handled in the browser. Can you tell me more about the code which handles manifest.json file of the extensions? Thanks
Flags: needinfo?(rhelmer)
(In reply to Aastha from comment #4) > Hi! > This bug occurs for all the extensions in webextension-examples which have a > options_ui key in manifest.json. > In the about:addons page for the other extension which don't have this > problem they are integrated into the webpage whereas the extensions with > these bugs integrate a html doc into the webpage. > > I think the problem is with how option_ui key is handled in the browser. Can > you tell me more about the code which handles manifest.json file of the > extensions? > > Thanks The manifest.json is parsed here: http://searchfox.org/mozilla-central/rev/e76c0fee79a34a3612740b33508276f4b37c3ee8/toolkit/mozapps/extensions/internal/XPIInstall.jsm#319 Hope that helps, let me know if you need more info!
Flags: needinfo?(rhelmer)
Oh, and thanks for working on this!
On clicking back, the controls of the action disappeared because of the onload event handling on the browser tab. I have added this condition so that it won't load a blank in the browser tag. Kindly review it and let me know if any changes are required.
Flags: needinfo?(rhelmer)
Attachment #8913066 - Flags: review?(rhelmer)
The issue is because on clicking the back button load event fires up which sends a default blank-page to load on the browser. This is because firefox fires up onload event. How do I make sure popstate event is called?
(In reply to Aastha from comment #7) > Created attachment 8913066 [details] [diff] [review] > patch to resolve the bug this is not correct
Comment on attachment 8913066 [details] [diff] [review] patch to resolve the bug Sorry for the delay! Had some access bugzilla access issues, now resolved.
Flags: needinfo?(rhelmer)
Attachment #8913066 - Flags: review?(rhelmer) → review+
Please attach a patch that includes commit information when requesting checkin. http://mozilla-version-control-tools.readthedocs.io/en/latest/mozreview/commits.html#write-detailed-commit-messages
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Keywords: checkin-needed
(In reply to Ryan VanderMeulen [:RyanVM] from comment #12) > Please attach a patch that includes commit information when requesting > checkin. > http://mozilla-version-control-tools.readthedocs.io/en/latest/mozreview/ > commits.html#write-detailed-commit-messages
Flags: needinfo?(aastha.gupta4104)
I hadn't followed this bug closely, but I don't think this is the right fix, see the duplicate bug for details
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Flags: needinfo?(aastha.gupta4104)
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: