Closed
Bug 1315506
Opened 7 years ago
Closed 7 years ago
Remove app.update.url.override preference
Categories
(Toolkit :: Application Update, defect, P2)
Toolkit
Application Update
Tracking
()
RESOLVED
FIXED
mozilla52
Tracking | Status | |
---|---|---|
firefox52 | --- | fixed |
People
(Reporter: robert.strong.bugs, Assigned: robert.strong.bugs)
References
Details
(Keywords: dev-doc-needed)
Attachments
(3 files, 1 obsolete file)
2.87 KB,
patch
|
mhowell
:
review+
|
Details | Diff | Splinter Review |
9.72 KB,
patch
|
mhowell
:
review+
|
Details | Diff | Splinter Review |
28.79 KB,
patch
|
robert.strong.bugs
:
review+
|
Details | Diff | Splinter Review |
This test preference has been abused in the real world so another method should be used for testing when the entire url needs to be modified.
![]() |
Assignee | |
Comment 1•7 years ago
|
||
Henrik, heads up that the app.update.url.override preference will be removed in the very near future. Instead of using this preference the app.update.url default preference should be used. Please adjust your tests accordingly.
Flags: needinfo?(hskupin)
Comment 2•7 years ago
|
||
Thanks for the information ahead of time. I assume it means that this value has to be set before Firefox gets started, or we need an additional restart. Is that correct?
Flags: needinfo?(hskupin)
![]() |
Assignee | |
Comment 3•7 years ago
|
||
No, you can set default preferences from code and the value is not cached.
Comment 4•7 years ago
|
||
I see. I will file a separate bug to work on this once the related pref is no longer available.
![]() |
Assignee | |
Comment 5•7 years ago
|
||
I could remove these but the b2g community is still using app update and this change is trivial.
Assignee: nobody → robert.strong.bugs
Status: NEW → ASSIGNED
![]() |
Assignee | |
Comment 6•7 years ago
|
||
![]() |
Assignee | |
Comment 7•7 years ago
|
||
![]() |
Assignee | |
Comment 8•7 years ago
|
||
Pushed to try https://treeherder.mozilla.org/#/jobs?repo=try&revision=68b26b964a57f7dac70d435b1c37ba88498a74da
![]() |
Assignee | |
Updated•7 years ago
|
Attachment #8809539 -
Flags: review?(mhowell)
![]() |
Assignee | |
Updated•7 years ago
|
Attachment #8809540 -
Flags: review?(mhowell)
![]() |
Assignee | |
Updated•7 years ago
|
Attachment #8809541 -
Flags: review?(mhowell)
Updated•7 years ago
|
Attachment #8809541 -
Flags: review?(mhowell) → review+
Updated•7 years ago
|
Attachment #8809540 -
Flags: review?(mhowell) → review+
Updated•7 years ago
|
Attachment #8809539 -
Flags: review?(mhowell) → review+
![]() |
Assignee | |
Comment 9•7 years ago
|
||
Ben and Nick, just a heads up that the app.update.url.override preference will be removed soonish... likely Friday afternoon Mountain View time.
Flags: needinfo?(nthomas)
Flags: needinfo?(bhearsum)
Comment 10•7 years ago
|
||
(In reply to Robert Strong [:rstrong] (use needinfo to contact me) from comment #3) > No, you can set default preferences from code and the value is not cached. When you say "from code" does this mean that it's not possible to change app.update.url without building Firefox? Or is there some way to change it with an addon or some such?
Flags: needinfo?(bhearsum)
Comment 11•7 years ago
|
||
Ben, please see comment 3. I assume that would help you too.
Comment 12•7 years ago
|
||
(In reply to Henrik Skupin (:whimboo) from comment #11) > Ben, please see comment 3. I assume that would help you too. That's what I replied to. I don't understand what "set default preferences from code" means, though.
![]() |
Assignee | |
Comment 13•7 years ago
|
||
Youcan set the value of the default preference from code running in Firefox. There are examples within the first two patches.
![]() |
Assignee | |
Comment 14•7 years ago
|
||
Removed to additional instances where test configs were trying to use this pref to disable updates but were a noop.
Attachment #8809540 -
Attachment is obsolete: true
Attachment #8809935 -
Flags: review+
Comment 15•7 years ago
|
||
Pushed by rstrong@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/b333ba0fdd87 marionette tests fixes - Bug 1315506 - Remove app.update.url.override preference. r=mhowell https://hg.mozilla.org/integration/mozilla-inbound/rev/993e106e331f test code for Bug 1315506 - Remove app.update.url.override preference. r=mhowell https://hg.mozilla.org/integration/mozilla-inbound/rev/355cce73963e client code for Bug 1315506 - Remove app.update.url.override preference. r=mhowell
Comment 16•7 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/b333ba0fdd87 https://hg.mozilla.org/mozilla-central/rev/993e106e331f https://hg.mozilla.org/mozilla-central/rev/355cce73963e
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
status-firefox52:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla52
Updated•7 years ago
|
Flags: needinfo?(nthomas)
Comment 17•6 years ago
|
||
We need to update the docs. https://developer.mozilla.org/en-US/docs/Mozilla/Setting_up_an_update_server
Keywords: dev-doc-needed
![]() |
Assignee | |
Comment 18•6 years ago
|
||
I've added a simple update to the page though it might be good if someone provided examples of setting default prefs. Not sure if that page is used all that often though.
Comment 19•6 years ago
|
||
(In reply to Robert Strong [:rstrong] (use needinfo to contact me) from comment #18) > I've added a simple update to the page though it might be good if someone > provided examples of setting default prefs. Not sure if that page is used > all that often though. Just to confirm: setting default prefs must be done from an extension or other privileged code, correct?
Comment 20•6 years ago
|
||
> Just to confirm: setting default prefs must be done from an extension or other privileged code, correct?
It can also be via autoconfig or defaults/prefs.
But you are correct, no way for the user to set default prefs (I guess via scratchpad)
Comment 21•6 years ago
|
||
(In reply to Mike Kaply [:mkaply] from comment #20) > > Just to confirm: setting default prefs must be done from an extension or other privileged code, correct? > > It can also be via autoconfig or defaults/prefs. > > But you are correct, no way for the user to set default prefs (I guess via > scratchpad) It doesn't look like it works from default/prefs/channel-prefs.js, for what it's worth.
Comment 22•6 years ago
|
||
(In reply to Mike Kaply [:mkaply] from comment #17) > We need to update the docs. > > https://developer.mozilla.org/en-US/docs/Mozilla/Setting_up_an_update_server I updated this doc with updated instructions for using a custom update server.
Comment 23•6 years ago
|
||
> It doesn't look like it works from default/prefs/channel-prefs.js, for what it's worth.
I've verified it does work from Autoconfig.
Comment 24•5 years ago
|
||
This wiki page probably needs an update as it is still using app.update.url.override: https://wiki.mozilla.org/Software_Update:HowToTestMajorUpdateUI
You need to log in
before you can comment on or make changes to this bug.
Description
•