Closed
Bug 1057186
Opened 10 years ago
Closed 10 years ago
Add a way to specify that nsDefaultURIFixup should obey the domain whitelist when not using keyword searches
Categories
(Firefox :: Address Bar, defect)
Tracking
()
People
(Reporter: Unfocused, Assigned: Unfocused)
References
Details
Attachments
(1 file)
17.71 KB,
patch
|
smaug
:
review+
|
Details | Diff | Splinter Review |
Bug 693808 added a domain whitelist for URI fixups. Unfortunately, it currently only applied when using keyword searches. For bug 951624 I want to use this while not allowing keyword searches (so it can reliably handle those separately).
So I'd like to introduce a new flag that specifies that the domain whitelist is required. This flag would be implied when FIXUP_FLAG_ALLOW_KEYWORD_LOOKUP is specified.
Assignee | ||
Comment 1•10 years ago
|
||
This is part of the effort to split up bug 951624, which keeps growing in size.
Assignee: nobody → bmcbride
Status: NEW → ASSIGNED
Points: --- → 5
Flags: qe-verify-
Flags: needinfo?(mmucci)
Flags: firefox-backlog+
Assignee | ||
Comment 2•10 years ago
|
||
Split out from the latest patch in bug 951624, with review comments from bug 951624 comment 42 and bug 951624 comment 43 resolved.
Attachment #8477202 -
Flags: review?(bugs)
Comment 3•10 years ago
|
||
Hi Blair, apologies for the delay. Bug has been added to IT 34.3. Thanks.
Iteration: --- → 34.3
Flags: needinfo?(mmucci)
Comment 4•10 years ago
|
||
Might not be trivial to merge this with bug 494092, but looking both anyway.
Updated•10 years ago
|
Iteration: 34.3 → 35.1
Comment 5•10 years ago
|
||
Comment on attachment 8477202 [details] [diff] [review]
Patch v3
>+bool nsDefaultURIFixup::IsDomainWhitelisted(const nsAutoCString aAsciiHost,
>+ const uint32_t aDotLoc) {
Nit, { goes to its own line
> /**
> * Allow the fixup to use a keyword lookup service to complete the URI.
> * The fixup object implementer should honour this flag and only perform
> * any lengthy keyword (or search) operation if it is set.
>+ *
>+ * Implies FIXUP_FLAG_REQUIRE_WHITELISTED_HOST.
> */
> const unsigned long FIXUP_FLAG_ALLOW_KEYWORD_LOOKUP = 1;
It doesn't really imply that.
FIXUP_FLAG_ALLOW_KEYWORD_LOOKUP doesn't _require_ a whitelisted host
>+ * For an input that may be just a domain with only 1 level (eg, "mozilla"),
>+ * require that the host be whitelisted.
>+ *
>+ * Implied by FIXUP_FLAG_ALLOW_KEYWORD_LOOKUP.
>+ */
>+ const unsigned long FIXUP_FLAG_REQUIRE_WHITELISTED_HOST = 4;
Drop 'Implied by FIXUP_FLAG_ALLOW_KEYWORD_LOOKUP' but add perhaps a comment that
FIXUP_FLAG_ALLOW_KEYWORD_LOOKUP overrides FIXUP_FLAG_REQUIRE_WHITELISTED_HOST.
Attachment #8477202 -
Flags: review?(bugs) → review+
Updated•10 years ago
|
Assignee | ||
Comment 6•10 years ago
|
||
Comment 7•10 years ago
|
||
Backed out in https://hg.mozilla.org/integration/fx-team/rev/ea6607178b55 for xpshell bustage
Assignee | ||
Comment 8•10 years ago
|
||
Comment 9•10 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 35
You need to log in
before you can comment on or make changes to this bug.
Description
•