Bug Tracker

Modify

Ticket #11928 (closed bug: duplicate)

Opened 12 months ago

Last modified 12 months ago

IE6/IE7 security warning when using $.get() to add HTML content with inline CSS background img rules

Reported by: tuomas.salo@… Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.7.2
Keywords: Cc:
Blocking: Blocked by:

Description

When using $.get(...) to add content to an HTTPS page, IE7 gives a false security warning if the content HTML includes an inline CSS rule that loads a background image with a relative url.

Affected browsers: IE6, IE7.

Test case:  https://venko.net/testing/ie7-test.html

jQuery versions: at least v1.7.2 and a recent git copy (v1.8.0pre).

What happened: when I clicked the text, IE loaded the image AND displayed the warning ("this page contains both...").

What I expected to happen: Load the image, no security warning.

This bug might not be worth fixing in jQuery (or even possible), but I did notice that the same doesn't happen with $(selector).load(...).

Possible workarounds:

  • use absolute urls
  • use external stylesheets
  • use $(selector).load(...) or another method

Change History

comment:1 Changed 12 months ago by dmethvin

  • Status changed from new to closed
  • Resolution set to duplicate

comment:2 Changed 12 months ago by dmethvin

Duplicate of #11600.

comment:3 Changed 12 months ago by tuomas.salo@…

I'm not sure whether this is a duplicate of #11600.

This bug is showing on IE6/IE7, while #11600 is reportedly showing on IE7/IE8. (This might also be OS dependent, so might need more testing.)

#11600 is about using $(selector).load(url, selector), while I'm using $.get(...).

If I have time, I'll try to reproduce this bug with $(selector).load(url, selector) and add a link to a test case.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.