Closed
Bug 1422518
Opened 7 years ago
Closed 7 years ago
Using meta refresh element with a target of "about:blank" no longer results in an empty address bar
Categories
(Firefox :: Tabbed Browser, defect)
Tracking
()
VERIFIED
FIXED
Firefox 59
Tracking | Status | |
---|---|---|
firefox-esr52 | --- | unaffected |
firefox57 | --- | unaffected |
firefox58 | + | verified |
firefox59 | --- | verified |
People
(Reporter: u607479, Assigned: valentin)
References
Details
(Keywords: regression)
Attachments
(2 files)
97 bytes,
text/html
|
Details | |
1.13 KB,
patch
|
gchang
:
approval-mozilla-beta+
|
Details | Diff | Splinter Review |
User Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:58.0) Gecko/20100101 Firefox/58.0 Build ID: 20171130160223 Steps to reproduce: Open a document (such as the attached one) that uses a meta redirect element to redirect to the page about:blank. The attached document should refresh after three seconds. mozregression bisection log: https://hg.mozilla.org/integration/mozilla-inbound/pushloghtml?fromchange=3599d43b43adf486ce3a5749329f3015d16daf4c&tochange=229546747cbf04cf71a235275d7c2eb2520a298b Context: This is currently used in the Blank New Tab add-on ( https://addons.mozilla.org/firefox/addon/blank-new-tab/ ) to allow using about:blank as the new tab page, as opposed to including a "pseudo" blank page. Originally this was done to avoid bug 1372996 ( https://bugzilla.mozilla.org/show_bug.cgi?id=1372996 ), but I've continued to use the redirect even after that bug was fixed as it meant the identity box (with extension name) was not shown, giving a tidier look. Actual results: The string "about:blank" remains in the address bar after the refresh, with the address bar focused and the cursor positioned at the end of the string. Expected results: The address bar is empty and focused, showing only the placeholder text "Search or enter address".
Severity: normal → minor
Status: UNCONFIRMED → NEW
Has Regression Range: --- → yes
Has STR: --- → yes
status-firefox57:
--- → unaffected
status-firefox58:
--- → affected
status-firefox59:
--- → affected
tracking-firefox58:
--- → ?
Component: Untriaged → Tabbed Browser
Ever confirmed: true
Keywords: regression
Sorry, there's a small mistake in both the actual and expected results in my report - ignore the part about the address bar being focused. I originally wrote this regarding a new tab page set by an add-on, but then realised it occurred with a normal document too.
Assignee | ||
Comment 2•7 years ago
|
||
I already had a fix for it. Will be landing shortly.
Flags: needinfo?(valentin.gosu)
Assignee | ||
Comment 3•7 years ago
|
||
Reviewed by Boris in Bug 1414425 comment 49. Try: https://treeherder.mozilla.org/#/jobs?repo=try&revision=5de4c84e38e7cae2a3ee7c4625c325eb7e2603c3
Assignee | ||
Comment 4•7 years ago
|
||
Boris, I'm going to use this bug to land the LOAD_FLAGS_DISALLOW_INHERIT_PRINCIPAL change.
Assignee: nobody → valentin.gosu
Assignee | ||
Comment 5•7 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/6f5aec4cde6f874921eaa1b0b9d7e9d4c7feabe0 Bug 1422518 - Use LOAD_FLAGS_DISALLOW_INHERIT_PRINCIPAL for meta refresh r=bz
Pushed by valentin.gosu@gmail.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/6f5aec4cde6f Use LOAD_FLAGS_DISALLOW_INHERIT_PRINCIPAL for meta refresh r=bz
Comment 7•7 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/6f5aec4cde6f
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 59
Assignee | ||
Comment 9•7 years ago
|
||
Comment on attachment 8934362 [details] [diff] [review] Use LOAD_FLAGS_DISALLOW_INHERIT_PRINCIPAL for meta refresh Approval Request Comment [Feature/Bug causing the regression]: bug 1414425 [User impact if declined]: Pages loaded from a meta redirect will have a different principal than expected. [Is this code covered by automated tests?]: Partly, but not this scenario. I will write a unit test. [Has the fix been verified in Nightly?]: Yes [Needs manual test from QE? If yes, steps to reproduce]: Yes. Load attached test case. See comment 0 [List of other uplifts needed for the feature/fix]: none [Is the change risky?]: no. [Why is the change risky/not risky?]: This is a small change that only makes the meta load not inherit the triggering principal (as before bug 1414425) [String changes made/needed]: none.
Attachment #8934362 -
Flags: approval-mozilla-beta?
Comment 10•7 years ago
|
||
Comment on attachment 8934362 [details] [diff] [review] Use LOAD_FLAGS_DISALLOW_INHERIT_PRINCIPAL for meta refresh Fix a meta redirect regression issue. Beta58+.
Attachment #8934362 -
Flags: approval-mozilla-beta? → approval-mozilla-beta+
Comment 11•7 years ago
|
||
bugherder uplift |
https://hg.mozilla.org/releases/mozilla-beta/rev/993ed1384ef7
Updated•7 years ago
|
status-firefox-esr52:
--- → unaffected
Updated•7 years ago
|
Flags: qe-verify+
Comment 12•7 years ago
|
||
I managed to reproduce the bug using Nightly from 2017-12-02 on Windows 10 x64. The string "about:blank" remains in the address bar after the refresh. I tested on latest Nightly 59 and beta 58.0b10 on Windows 10 x64, Mac OS X 10.11 and Ubuntu 16.04 x32, but the bug is not reproducing anymore.
Updated•7 years ago
|
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•