Closed
Bug 464222
Opened 16 years ago
Closed 11 years ago
Relative links not linkified in "View Selection Source"
Categories
(Core :: DOM: HTML Parser, enhancement)
Tracking
()
RESOLVED
FIXED
mozilla30
People
(Reporter: me, Assigned: jkitch)
References
Details
Attachments
(4 files, 1 obsolete file)
9.32 KB,
patch
|
bzbarsky
:
review+
|
Details | Diff | Splinter Review |
1.87 KB,
patch
|
hsivonen
:
review+
|
Details | Diff | Splinter Review |
3.55 KB,
patch
|
Dolske
:
review+
|
Details | Diff | Splinter Review |
3.88 KB,
patch
|
Details | Diff | Splinter Review |
Steps to Reproduce:
1. Highlight a relative link on a page.
2. On context menu go to "View Selection Source".
Only absolute links are linkified in selection/DOM source, whereas all links are linkified in normal view source.
Using:
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1b2pre) Gecko/20081110 Minefield/3.1b2pre
Comment 1•16 years ago
|
||
Note to would-be implementors, if they aren't named Curtis: See bug 17612 for original implementation of source linking. :)
Updated•16 years ago
|
Status: UNCONFIRMED → NEW
Ever confirmed: true
Assignee | ||
Updated•11 years ago
|
Assignee: nobody → jkitch.bug
Assignee | ||
Comment 2•11 years ago
|
||
Stores baseURI within nsIViewSourceChannels for use in non-srcdoc documents.
Nothing terribly exciting.
Attachment #8372993 -
Flags: review?(bzbarsky)
Assignee | ||
Comment 3•11 years ago
|
||
This adds a new method to nsIWebNavigation to allow a loadURI variant with an extra argument. (The existing loadURI is used in too many places to consider changing it).
I've tried to make it clear within the interface comments that the new method will only differ in specific situations (namely view-source: URIs and then only some of the time). Any other possible behaviour is unimplemented.
Attachment #8372994 -
Flags: review?(bzbarsky)
Assignee | ||
Comment 4•11 years ago
|
||
We now check every (view-source) channel for presence of baseURI, before falling back to the old method. This gives the data URIs of view selection source an awareness
In principle, non-srcdoc, non-selection channels will also use the channel baseURI rather than the fallback method. But this requires a deliberate choice to implement the appropriate codepaths to enable ir.
Attachment #8372995 -
Flags: review?(hsivonen)
Assignee | ||
Comment 5•11 years ago
|
||
This passes a base URI to a variant of the webnav LoadURI function to allow relative URIs to work in view selection source.
Attachment #8372996 -
Flags: review?(dolske)
Comment 6•11 years ago
|
||
Comment on attachment 8372993 [details] [diff] [review]
Part 1: protocol changes
> Returns a nullptr when it isn't set or isn't a
s/a nullptr/null/
r=me
Attachment #8372993 -
Flags: review?(bzbarsky) → review+
Comment 7•11 years ago
|
||
Comment on attachment 8372994 [details] [diff] [review]
Part2: WebNavigation Changes
This seems like it might better go on the settings object bug 965413 will add. Maybe file a followup to consider moving it there once that bug lands?
Attachment #8372994 -
Flags: review?(bzbarsky) → review+
Updated•11 years ago
|
Attachment #8372996 -
Flags: review?(dolske) → review+
Attachment #8372995 -
Flags: review?(hsivonen) → review+
Assignee | ||
Comment 8•11 years ago
|
||
Attachment #8372993 -
Attachment is obsolete: true
Assignee | ||
Updated•11 years ago
|
Keywords: checkin-needed
Comment 9•11 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/f0412d2e262c
https://hg.mozilla.org/integration/mozilla-inbound/rev/af8283de5112
https://hg.mozilla.org/integration/mozilla-inbound/rev/08ed6226573d
https://hg.mozilla.org/integration/mozilla-inbound/rev/3ad497d0c250
Flags: in-testsuite+
Keywords: checkin-needed
Comment 10•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/f0412d2e262c
https://hg.mozilla.org/mozilla-central/rev/af8283de5112
https://hg.mozilla.org/mozilla-central/rev/08ed6226573d
https://hg.mozilla.org/mozilla-central/rev/3ad497d0c250
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla30
You need to log in
before you can comment on or make changes to this bug.
Description
•