Closed
Bug 942314
Opened 12 years ago
Closed 12 years ago
pagemod attachTo: ['existing', 'frames'] combination doesn't test iframe URLs against include
Categories
(Add-on SDK Graveyard :: General, defect)
Add-on SDK Graveyard
General
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla28
People
(Reporter: zombie, Assigned: zombie)
Details
Attachments
(1 file)
when using 'existing' and 'frames', pagemod scripts are included on any iframe where the top document (tab) URL matches the `include` option.
for example, on a page at "foo.com" with an iframe from "bar.com", code like:
> attachTo: ['existing', 'frames'],
> include: 'foo.com',
included a script on the iframe from "bar.com", and code like:
> attachTo: ['existing', 'frames'],
> include: 'bar.com',
does not.
Assignee | ||
Comment 1•12 years ago
|
||
to try to make it more clear, the way it currently works without 'existing', if we have:
inside the addon
> attachTo: ['frames'],
> include: 'foo.com',
and we open a page at "foo.com" that has
> <iframe src='http://bar.com'></iframe>
the page-mod will not be attached to anything, as it should only attach to 'frames' from the "foo.com" domain, and our iframe is from the "bar.com" domain.
if we have that same page already open, and we add 'existing' to `attachTo`, the expected behavior would be exactly the same, page-mod not attached to anything.
currently, page-mod attaches to that iframe, when it shouldn't.
Assignee | ||
Comment 2•12 years ago
|
||
Comment 3•12 years ago
|
||
Commits pushed to master at https://github.com/mozilla/addon-sdk
https://github.com/mozilla/addon-sdk/commit/a87414b7e07157f0f4ee1212b839aed995410281
bug 942314 - fix attachTo existing+frame combo
to only attach on iframes that match the include rules.
plus a test to verify it,
test when only iframe matches rules
another thing that didn't work
https://github.com/mozilla/addon-sdk/commit/601c7e4717be871f639171b63138ebce11fa505e
Merge pull request #1306 from zombie/942314-existing-frame
fix bug 942314 - fix attachTo existing+frame combo r=@ZER0
Updated•12 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Comment 4•12 years ago
|
||
Comment on attachment 8337178 [details] [review]
link to pr 1306
Actually forget to r+ on bugzilla after merging the a month ago…
Attachment #8337178 -
Flags: review?(zer0) → review+
Assignee | ||
Updated•11 years ago
|
Target Milestone: --- → mozilla28
You need to log in
before you can comment on or make changes to this bug.
Description
•