Commit Graph

11 Commits

Author SHA1 Message Date
Chris Peterson
eab3c189d8 Bug 816298 - Part 1: Allow child elements to override -moz-user-select:none. r=ehsan
--HG--
extra : rebase_source : f4e08713be0691c25b22510977c978088655ec8b
2013-01-08 16:33:17 -08:00
Bobby Holley
9f03f90fb7 Bug 792036 - Automated fixups. r=mccr8
find /files/mozilla/build/d/_tests/testing/mochitest/tests/ | egrep "\.(xhtml|html|xml|js)$" | grep -v SimpleTest | grep -vi mochikit | grep -v simpleThread | grep -v test_ipc_messagemanager_blob.html | grep -v "indexedDB/test" | xargs grep -l Components |  xargs grep -L enablePrivilege | perl -pe 's#.*mochitest/tests/##' | xargs perl -p -i.bakkk -e 's/Components\.interfaces(\s|;|\.|\[)/SpecialPowers\.Ci$1/g, s/SpecialPowers\.wrap\(Components\)\.(.)(lasses|tils|nterfaces|esults)/SpecialPowers.C$1/g, s/(?<![\.a-zA-Z])Components/SpecialPowers\.Components/g, s/window\.Components/window\.SpecialPowers\.Components/g'
2012-09-24 14:46:29 +02:00
Ehsan Akhgari
45fe6d3ae2 Bug 722872 - Part 1: Add nsITransferable::Init(nsILoadContext*), enforce that it's called in debug builds, and add nsIDOMDocument* arguments to nsIClipboardHelper methods; r=roc
This patch does the following:

* It adds nsITransferable::Init(nsILoadContext*).  The load context
  might be null, which means that the transferable is non-private, but
  if it's non-null, we extract the boolean value for the privacy mode
  and store it in the transferable.
* It adds checks in debug builds to make sure that Init is always
  called, in form of fatal assertions.
* It adds nsIDOMDocument* agruments to nsIClipboardHelper methods which
  represent the document that the string is coming from.
  nsIClipboardHelper implementation internally gets the nsILoadContext
  from that and passes it on to the transferable upon creation.  The
  reason that I did this was that nsIClipboardHelper is supposed to be a
  high-level helper, and in most of its call sites, we have easy access
  to a document object.
* It modifies all of the call sites of the above interfaces according to
  this change.
* It adds a GetLoadContext helper to nsIDocument to help with changing
  the call sites.
2012-04-16 22:14:01 -04:00
Bobby Holley
52ddceaaa3 Bug 702353 - Proof-of-concept on some pretty involved tests. r=ted 2012-01-18 19:10:14 -08:00
Malini Das
02665c9658 Bug 367393 - Add a packed MochiKit that contains only SimpleTest dependencies- plain 1/1. r=jmaher, a=test-only 2011-08-12 12:21:42 -04:00
Jonas Sicking
93c3158ba6 Bug 582228. Speed up getting style attributes. r=bzbarsky@mit.edu, a=dbaron@mozilla.com 2010-08-12 23:03:23 -07:00
Mats Palmgren
ba7b7616e3 Make use of SkipInvisibleContent flag to skip invisible content in Selection.toString(). r=dbaron b=564967 2010-05-25 01:24:15 +02:00
Mats Palmgren
b80392e005 Backout bug 564967. 2010-05-21 18:26:33 +02:00
Mats Palmgren
e3676dc03d Make use of SkipInvisibleContent flag to skip invisible content in Selection.toString(). r=dbaron b=564967 2010-05-21 18:02:04 +02:00
Geoff Lankow
9f6ee2918a Skip -moz-user-select=none only when copying. Follow-up to bug 166235. b=558726 r=roc 2010-04-14 16:55:16 +02:00
Geoff Lankow
d0d55901fd Bug 166235: moz-user-select = 'none' should prevent copying to the clipboard. r=mats 2010-04-10 16:05:58 -04:00